tina4-nodejs 3.13.120 → 3.13.121

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.
@@ -115,3 +115,19 @@ export interface GeneratorSpec {
115
115
  }
116
116
  export declare const GENERATORS: Record<string, GeneratorSpec>;
117
117
  export declare function generate(what: string, name: string, extraArgs?: string[]): Promise<void>;
118
+ /**
119
+ * Programmatic entry point for in-process consumers (MCP tools, tests, hosted
120
+ * agents) — does everything `generate()` does EXCEPT print.
121
+ *
122
+ * Reset the resolution → dispatch to the requested generator → populate `next[]`
123
+ * → return the envelope. Files still land on disk (unless `--dry-run` is passed
124
+ * in `extraArgs`); only the human "Created …" per-file log and the
125
+ * `printResolution()` output are suppressed (via `jsonMode: true`, the same
126
+ * suppression `--json` uses on the CLI).
127
+ *
128
+ * Used by the MCP `migration_create` tool (packages/core/src/mcp.ts) so the
129
+ * ADR-0063 `generate_v1_1` envelope drives every surface (CLI, MCP, tests)
130
+ * without a subprocess round-trip.
131
+ */
132
+ export declare function generateProgrammatic(what: string, name: string, extraArgs?: string[]): Promise<ResolutionEnvelope>;
133
+ export declare function generateMigration(name: string, flags: Record<string, string | boolean>, fieldsOverride?: Array<[string, string]>, tableOverride?: string, emitTest?: boolean): void;
@@ -1 +1 @@
1
- export declare function createMigration(description?: string): Promise<void>;
1
+ export declare function createMigration(args?: string[]): Promise<void>;