@drzl/cli 4.26.0 → 4.27.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/cli.js CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  ConfigValidationError,
5
5
  GENERATOR_KINDS,
6
6
  addressableName,
7
+ aiOutDir,
7
8
  ambiguousPatternWarnings,
8
9
  computeGeneratorOutputDirs,
9
10
  computeWatchTargets,
@@ -26,7 +27,7 @@ import {
26
27
  tableAliases,
27
28
  tableFilterWarnings,
28
29
  trpcOutDir
29
- } from "./chunk-67XCOBVS.js";
30
+ } from "./chunk-O66F7W63.js";
30
31
 
31
32
  // src/cli.ts
32
33
  import { qualifiedTableName as qualifiedTableName2, SchemaAnalyzer as SchemaAnalyzer2 } from "@drzl/analyzer";
@@ -338,6 +339,18 @@ function jsonSchemaOptions(g, cfg, outDir) {
338
339
  };
339
340
  }
340
341
 
342
+ // src/ai-options.ts
343
+ function aiOptions(g, cfg) {
344
+ return {
345
+ outputDir: aiOutDir(g, cfg),
346
+ naming: g.naming,
347
+ outputHeader: g.outputHeader,
348
+ format: g.format,
349
+ importExtension: g.importExtension,
350
+ validation: g.validation
351
+ };
352
+ }
353
+
341
354
  // src/mcp-options.ts
342
355
  function mcpOptions(g, cfg) {
343
356
  return {
@@ -556,6 +569,15 @@ var GENERATORS = [
556
569
  outputDir: (g, cfg) => nextOutDir(g, cfg),
557
570
  options: (g, cfg) => nextOptions(g, cfg)
558
571
  },
572
+ {
573
+ kind: "ai",
574
+ // Optional for the same reason as `mcp` and `next` above, and for the same one release only.
575
+ specifier: "@drzl/generator-ai",
576
+ load: () => import("@drzl/generator-ai"),
577
+ construct: (m, analysis) => new m.AIGenerator(analysis),
578
+ outputDir: (g, cfg) => aiOutDir(g, cfg),
579
+ options: (g, cfg) => aiOptions(g, cfg)
580
+ },
559
581
  {
560
582
  kind: "service",
561
583
  specifier: "@drzl/generator-service",