tina4-nodejs 3.13.119 → 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.
@@ -138,10 +138,14 @@ export function buildCommandManifest(): CommandManifest {
138
138
  framework: "nodejs",
139
139
  version: readCliVersion(),
140
140
  commands,
141
- // Feature B (3.13.117): declare the resolution envelope this framework
142
- // emits for `generate <what> --json`. Consumers read this to know which
143
- // schema to parse — never hard-code the shape.
144
- resolution_contract: { version: "1", envelope: RESOLUTION_ENVELOPE_VERSION },
141
+ // Declare the resolution envelope this framework emits for
142
+ // `generate <what> --json`. Consumers read this to know which schema to
143
+ // parse — never hard-code the shape.
144
+ // 3.13.117: `generate_v1` at version "1"
145
+ // 3.13.120: `generate_v1_1` at version "1.1" — additive superset
146
+ // (adds edit_hints[] + next[]; surfaces existing test_paths[]
147
+ // in the human block). ADR-0063.
148
+ resolution_contract: { version: "1.1", envelope: RESOLUTION_ENVELOPE_VERSION },
145
149
  };
146
150
  }
147
151
 
@@ -341,10 +345,13 @@ export const COMMANDS: Record<string, CommandSpec> = {
341
345
  summary: "Run pending SQL migrations",
342
346
  },
343
347
  "migrate:create": {
344
- handler: async (a) => { await createMigration(a.join(" ") || undefined); },
348
+ // Pass the full argv through so `migrate:create "add users" --json --dry-run`
349
+ // reaches the same envelope machinery as `generate migration ...` (ADR-0063).
350
+ // The delegation itself lives in commands/migrateCreate.ts.
351
+ handler: async (a) => { await createMigration(a); },
345
352
  usage: "<desc>",
346
353
  args: ["description"],
347
- summary: "Create a new migration file",
354
+ summary: "Create a new migration file (delegates to generate migration)",
348
355
  },
349
356
  "migrate:status": {
350
357
  handler: async (a) => { await migrateStatus(a[0]); },