@drzl/cli 4.31.0 → 4.34.0

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/config.d.cts CHANGED
@@ -122,11 +122,14 @@ declare const GeneratorKindSchema: z.ZodEnum<{
122
122
  graphql: "graphql";
123
123
  ai: "ai";
124
124
  "effect-http": "effect-http";
125
+ elysia: "elysia";
125
126
  h3: "h3";
126
127
  mcp: "mcp";
127
128
  next: "next";
128
129
  "tanstack-start": "tanstack-start";
129
130
  "ts-rest": "ts-rest";
131
+ seed: "seed";
132
+ "fast-check": "fast-check";
130
133
  service: "service";
131
134
  zod: "zod";
132
135
  valibot: "valibot";
@@ -150,11 +153,14 @@ declare const GeneratorSchema: z.ZodObject<{
150
153
  graphql: "graphql";
151
154
  ai: "ai";
152
155
  "effect-http": "effect-http";
156
+ elysia: "elysia";
153
157
  h3: "h3";
154
158
  mcp: "mcp";
155
159
  next: "next";
156
160
  "tanstack-start": "tanstack-start";
157
161
  "ts-rest": "ts-rest";
162
+ seed: "seed";
163
+ "fast-check": "fast-check";
158
164
  service: "service";
159
165
  zod: "zod";
160
166
  valibot: "valibot";
@@ -177,6 +183,9 @@ declare const GeneratorSchema: z.ZodObject<{
177
183
  }>>;
178
184
  apiName: z.ZodOptional<z.ZodString>;
179
185
  contractName: z.ZodOptional<z.ZodString>;
186
+ appName: z.ZodOptional<z.ZodString>;
187
+ count: z.ZodOptional<z.ZodNumber>;
188
+ prefix: z.ZodOptional<z.ZodString>;
180
189
  pathPrefix: z.ZodOptional<z.ZodString>;
181
190
  serverName: z.ZodOptional<z.ZodString>;
182
191
  serverVersion: z.ZodOptional<z.ZodString>;
@@ -313,6 +322,7 @@ declare const GeneratorSchema: z.ZodObject<{
313
322
  zod: "zod";
314
323
  valibot: "valibot";
315
324
  arktype: "arktype";
325
+ typebox: "typebox";
316
326
  }>>>;
317
327
  importPath: z.ZodOptional<z.ZodString>;
318
328
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -396,11 +406,14 @@ declare const ConfigSchema: z.ZodObject<{
396
406
  graphql: "graphql";
397
407
  ai: "ai";
398
408
  "effect-http": "effect-http";
409
+ elysia: "elysia";
399
410
  h3: "h3";
400
411
  mcp: "mcp";
401
412
  next: "next";
402
413
  "tanstack-start": "tanstack-start";
403
414
  "ts-rest": "ts-rest";
415
+ seed: "seed";
416
+ "fast-check": "fast-check";
404
417
  service: "service";
405
418
  zod: "zod";
406
419
  valibot: "valibot";
@@ -423,6 +436,9 @@ declare const ConfigSchema: z.ZodObject<{
423
436
  }>>;
424
437
  apiName: z.ZodOptional<z.ZodString>;
425
438
  contractName: z.ZodOptional<z.ZodString>;
439
+ appName: z.ZodOptional<z.ZodString>;
440
+ count: z.ZodOptional<z.ZodNumber>;
441
+ prefix: z.ZodOptional<z.ZodString>;
426
442
  pathPrefix: z.ZodOptional<z.ZodString>;
427
443
  serverName: z.ZodOptional<z.ZodString>;
428
444
  serverVersion: z.ZodOptional<z.ZodString>;
@@ -559,6 +575,7 @@ declare const ConfigSchema: z.ZodObject<{
559
575
  zod: "zod";
560
576
  valibot: "valibot";
561
577
  arktype: "arktype";
578
+ typebox: "typebox";
562
579
  }>>>;
563
580
  importPath: z.ZodOptional<z.ZodString>;
564
581
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -816,6 +833,40 @@ declare function tsRestOutDir(g: {
816
833
  }, cfg: {
817
834
  outDir: string;
818
835
  }): string;
836
+ /**
837
+ * Where the Elysia generator writes.
838
+ *
839
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
840
+ * which is the assembled app. Its own function rather than a call to one of the others, for the
841
+ * reason `honoOutDir` records.
842
+ */
843
+ declare function elysiaOutDir(g: {
844
+ path?: string;
845
+ }, cfg: {
846
+ outDir: string;
847
+ }): string;
848
+ /**
849
+ * Where the seed generator writes.
850
+ *
851
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own.
852
+ * Its own function rather than a call to one of the others, for the reason `honoOutDir` records.
853
+ */
854
+ declare function seedOutDir(g: {
855
+ path?: string;
856
+ }, cfg: {
857
+ outDir: string;
858
+ }): string;
859
+ /**
860
+ * Where the fast-check generator writes.
861
+ *
862
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own.
863
+ * Its own function rather than a call to one of the others, for the reason `honoOutDir` records.
864
+ */
865
+ declare function fastCheckOutDir(g: {
866
+ path?: string;
867
+ }, cfg: {
868
+ outDir: string;
869
+ }): string;
819
870
  /**
820
871
  * Fill in cross-generator defaults and refuse configs whose generators would disagree.
821
872
  *
@@ -913,4 +964,4 @@ declare function tableFilterWarnings(tables: readonly {
913
964
  }): string[];
914
965
  declare function computeWatchTargets(cfg: DrzlConfig, cwd?: string, source?: ResolvedSchemaSource): string[];
915
966
 
916
- export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, expressOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
967
+ export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, elysiaOutDir, expressOutDir, fastCheckOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, seedOutDir, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
package/dist/config.d.ts CHANGED
@@ -122,11 +122,14 @@ declare const GeneratorKindSchema: z.ZodEnum<{
122
122
  graphql: "graphql";
123
123
  ai: "ai";
124
124
  "effect-http": "effect-http";
125
+ elysia: "elysia";
125
126
  h3: "h3";
126
127
  mcp: "mcp";
127
128
  next: "next";
128
129
  "tanstack-start": "tanstack-start";
129
130
  "ts-rest": "ts-rest";
131
+ seed: "seed";
132
+ "fast-check": "fast-check";
130
133
  service: "service";
131
134
  zod: "zod";
132
135
  valibot: "valibot";
@@ -150,11 +153,14 @@ declare const GeneratorSchema: z.ZodObject<{
150
153
  graphql: "graphql";
151
154
  ai: "ai";
152
155
  "effect-http": "effect-http";
156
+ elysia: "elysia";
153
157
  h3: "h3";
154
158
  mcp: "mcp";
155
159
  next: "next";
156
160
  "tanstack-start": "tanstack-start";
157
161
  "ts-rest": "ts-rest";
162
+ seed: "seed";
163
+ "fast-check": "fast-check";
158
164
  service: "service";
159
165
  zod: "zod";
160
166
  valibot: "valibot";
@@ -177,6 +183,9 @@ declare const GeneratorSchema: z.ZodObject<{
177
183
  }>>;
178
184
  apiName: z.ZodOptional<z.ZodString>;
179
185
  contractName: z.ZodOptional<z.ZodString>;
186
+ appName: z.ZodOptional<z.ZodString>;
187
+ count: z.ZodOptional<z.ZodNumber>;
188
+ prefix: z.ZodOptional<z.ZodString>;
180
189
  pathPrefix: z.ZodOptional<z.ZodString>;
181
190
  serverName: z.ZodOptional<z.ZodString>;
182
191
  serverVersion: z.ZodOptional<z.ZodString>;
@@ -313,6 +322,7 @@ declare const GeneratorSchema: z.ZodObject<{
313
322
  zod: "zod";
314
323
  valibot: "valibot";
315
324
  arktype: "arktype";
325
+ typebox: "typebox";
316
326
  }>>>;
317
327
  importPath: z.ZodOptional<z.ZodString>;
318
328
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -396,11 +406,14 @@ declare const ConfigSchema: z.ZodObject<{
396
406
  graphql: "graphql";
397
407
  ai: "ai";
398
408
  "effect-http": "effect-http";
409
+ elysia: "elysia";
399
410
  h3: "h3";
400
411
  mcp: "mcp";
401
412
  next: "next";
402
413
  "tanstack-start": "tanstack-start";
403
414
  "ts-rest": "ts-rest";
415
+ seed: "seed";
416
+ "fast-check": "fast-check";
404
417
  service: "service";
405
418
  zod: "zod";
406
419
  valibot: "valibot";
@@ -423,6 +436,9 @@ declare const ConfigSchema: z.ZodObject<{
423
436
  }>>;
424
437
  apiName: z.ZodOptional<z.ZodString>;
425
438
  contractName: z.ZodOptional<z.ZodString>;
439
+ appName: z.ZodOptional<z.ZodString>;
440
+ count: z.ZodOptional<z.ZodNumber>;
441
+ prefix: z.ZodOptional<z.ZodString>;
426
442
  pathPrefix: z.ZodOptional<z.ZodString>;
427
443
  serverName: z.ZodOptional<z.ZodString>;
428
444
  serverVersion: z.ZodOptional<z.ZodString>;
@@ -559,6 +575,7 @@ declare const ConfigSchema: z.ZodObject<{
559
575
  zod: "zod";
560
576
  valibot: "valibot";
561
577
  arktype: "arktype";
578
+ typebox: "typebox";
562
579
  }>>>;
563
580
  importPath: z.ZodOptional<z.ZodString>;
564
581
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -816,6 +833,40 @@ declare function tsRestOutDir(g: {
816
833
  }, cfg: {
817
834
  outDir: string;
818
835
  }): string;
836
+ /**
837
+ * Where the Elysia generator writes.
838
+ *
839
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
840
+ * which is the assembled app. Its own function rather than a call to one of the others, for the
841
+ * reason `honoOutDir` records.
842
+ */
843
+ declare function elysiaOutDir(g: {
844
+ path?: string;
845
+ }, cfg: {
846
+ outDir: string;
847
+ }): string;
848
+ /**
849
+ * Where the seed generator writes.
850
+ *
851
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own.
852
+ * Its own function rather than a call to one of the others, for the reason `honoOutDir` records.
853
+ */
854
+ declare function seedOutDir(g: {
855
+ path?: string;
856
+ }, cfg: {
857
+ outDir: string;
858
+ }): string;
859
+ /**
860
+ * Where the fast-check generator writes.
861
+ *
862
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own.
863
+ * Its own function rather than a call to one of the others, for the reason `honoOutDir` records.
864
+ */
865
+ declare function fastCheckOutDir(g: {
866
+ path?: string;
867
+ }, cfg: {
868
+ outDir: string;
869
+ }): string;
819
870
  /**
820
871
  * Fill in cross-generator defaults and refuse configs whose generators would disagree.
821
872
  *
@@ -913,4 +964,4 @@ declare function tableFilterWarnings(tables: readonly {
913
964
  }): string[];
914
965
  declare function computeWatchTargets(cfg: DrzlConfig, cwd?: string, source?: ResolvedSchemaSource): string[];
915
966
 
916
- export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, expressOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
967
+ export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, elysiaOutDir, expressOutDir, fastCheckOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, seedOutDir, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
package/dist/config.js CHANGED
@@ -17,7 +17,9 @@ import {
17
17
  configFromKinds,
18
18
  defineConfig,
19
19
  effectHttpOutDir,
20
+ elysiaOutDir,
20
21
  expressOutDir,
22
+ fastCheckOutDir,
21
23
  fastifyOutDir,
22
24
  filterTables,
23
25
  graphqlOutDir,
@@ -30,11 +32,12 @@ import {
30
32
  nextOutDir,
31
33
  resolveConfig,
32
34
  resolveTemplateDirsSync,
35
+ seedOutDir,
33
36
  tableFilterWarnings,
34
37
  tanstackStartOutDir,
35
38
  trpcOutDir,
36
39
  tsRestOutDir
37
- } from "./chunk-FURPHLQS.js";
40
+ } from "./chunk-S5JWTWWU.js";
38
41
  export {
39
42
  AffixSchema,
40
43
  AnalyzerSchema,
@@ -54,7 +57,9 @@ export {
54
57
  configFromKinds,
55
58
  defineConfig,
56
59
  effectHttpOutDir,
60
+ elysiaOutDir,
57
61
  expressOutDir,
62
+ fastCheckOutDir,
58
63
  fastifyOutDir,
59
64
  filterTables,
60
65
  graphqlOutDir,
@@ -67,6 +72,7 @@ export {
67
72
  nextOutDir,
68
73
  resolveConfig,
69
74
  resolveTemplateDirsSync,
75
+ seedOutDir,
70
76
  tableFilterWarnings,
71
77
  tanstackStartOutDir,
72
78
  trpcOutDir,
@@ -116,11 +116,14 @@
116
116
  "graphql",
117
117
  "ai",
118
118
  "effect-http",
119
+ "elysia",
119
120
  "h3",
120
121
  "mcp",
121
122
  "next",
122
123
  "tanstack-start",
123
124
  "ts-rest",
125
+ "seed",
126
+ "fast-check",
124
127
  "service",
125
128
  "zod",
126
129
  "valibot",
@@ -157,6 +160,17 @@
157
160
  "contractName": {
158
161
  "type": "string"
159
162
  },
163
+ "appName": {
164
+ "type": "string"
165
+ },
166
+ "count": {
167
+ "type": "integer",
168
+ "exclusiveMinimum": 0,
169
+ "maximum": 9007199254740991
170
+ },
171
+ "prefix": {
172
+ "type": "string"
173
+ },
160
174
  "pathPrefix": {
161
175
  "type": "string"
162
176
  },
@@ -602,7 +616,8 @@
602
616
  "enum": [
603
617
  "zod",
604
618
  "valibot",
605
- "arktype"
619
+ "arktype",
620
+ "typebox"
606
621
  ]
607
622
  },
608
623
  "importPath": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drzl/cli",
3
- "version": "4.31.0",
3
+ "version": "4.34.0",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -31,6 +31,7 @@
31
31
  "zod": "^4.4.3",
32
32
  "@drzl/analyzer": "^1.21.5",
33
33
  "@drzl/generator-ai": "^0.1.0",
34
+ "@drzl/generator-arktype": "^3.17.5",
34
35
  "@drzl/generator-effect": "^0.5.4",
35
36
  "@drzl/generator-express": "^0.2.2",
36
37
  "@drzl/generator-fastify": "^0.2.2",
@@ -39,16 +40,15 @@
39
40
  "@drzl/generator-json-schema": "^0.9.3",
40
41
  "@drzl/generator-mcp": "^0.1.0",
41
42
  "@drzl/generator-nestjs": "^0.2.3",
43
+ "@drzl/generator-next": "^0.1.0",
42
44
  "@drzl/generator-orpc": "^2.9.2",
43
45
  "@drzl/generator-service": "^2.5.3",
44
- "@drzl/generator-next": "^0.1.0",
45
46
  "@drzl/generator-tanstack-start": "^0.1.0",
46
47
  "@drzl/generator-trpc": "^0.3.2",
47
48
  "@drzl/generator-typebox": "^0.14.6",
48
49
  "@drzl/generator-valibot": "^3.20.5",
49
- "@drzl/validation-core": "^3.22.6",
50
50
  "@drzl/generator-zod": "^3.21.5",
51
- "@drzl/generator-arktype": "^3.17.5"
51
+ "@drzl/validation-core": "^3.22.6"
52
52
  },
53
53
  "devDependencies": {
54
54
  "ajv": "^8.17.1",
@@ -76,7 +76,10 @@
76
76
  },
77
77
  "optionalDependencies": {
78
78
  "@drzl/generator-effect-http": "^0.1.0",
79
+ "@drzl/generator-elysia": "^0.2.0",
80
+ "@drzl/generator-fast-check": "^0.2.0",
79
81
  "@drzl/generator-h3": "^0.1.0",
82
+ "@drzl/generator-seed": "^0.2.0",
80
83
  "@drzl/generator-ts-rest": "^0.2.0"
81
84
  },
82
85
  "scripts": {