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.
- package/CLAUDE.md +2 -2
- package/package.json +2 -1
- package/packages/cli/dist/bin.js +21604 -21370
- package/packages/cli/src/bin.ts +13 -6
- package/packages/cli/src/commands/generate.ts +391 -32
- package/packages/cli/src/commands/migrateCreate.ts +32 -37
- package/packages/core/dist/index.js +2394 -339
- package/packages/core/src/mcp.ts +62 -11
- package/packages/orm/dist/index.js +2443 -388
- package/types/cli/src/commands/generate.d.ts +37 -1
- package/types/cli/src/commands/migrateCreate.d.ts +1 -1
package/packages/cli/src/bin.ts
CHANGED
|
@@ -138,10 +138,14 @@ export function buildCommandManifest(): CommandManifest {
|
|
|
138
138
|
framework: "nodejs",
|
|
139
139
|
version: readCliVersion(),
|
|
140
140
|
commands,
|
|
141
|
-
//
|
|
142
|
-
//
|
|
143
|
-
//
|
|
144
|
-
|
|
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
|
-
|
|
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]); },
|