From 65e916f76184764d70168698b054193b43a67b0f Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 16:41:19 +0000 Subject: [PATCH 01/11] chore(deps): move to @prisma/cli-engine 0.10.0 0.10.0 lets a redirect name its own error code and summary, a help page and a docs URL, and several replacement steps or none, which the Prisma 7 command redirects need. The engine now stores a redirect's replacement as a list of steps, so the family test reads it that way. deploy --stage settles with the same code, summary, reason and next action as on 0.9.0. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- package.json | 2 +- .../0-framework/3-tooling/cli/package.json | 2 +- .../cli/src/family/__tests__/family.test.ts | 2 +- .../1-extensions/target/package.json | 2 +- packages/9-public/composer-cli/package.json | 4 +- pnpm-lock.yaml | 128 +++++++++--------- 6 files changed, 70 insertions(+), 70 deletions(-) diff --git a/package.json b/package.json index 6a6961a81..7e4d7c9dc 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "pnpm": { "overrides": { "@prisma/composer-cli": "workspace:*", - "@prisma/cli-engine": "0.9.0" + "@prisma/cli-engine": "0.10.0" }, "onlyBuiltDependencies": [ "prisma", diff --git a/packages/0-framework/3-tooling/cli/package.json b/packages/0-framework/3-tooling/cli/package.json index bff185ea8..085651a95 100644 --- a/packages/0-framework/3-tooling/cli/package.json +++ b/packages/0-framework/3-tooling/cli/package.json @@ -23,7 +23,7 @@ "@internal/assemble": "workspace:0.38.0", "@internal/core": "workspace:0.38.0", "@internal/foundation": "workspace:0.38.0", - "@prisma/cli-engine": "0.9.0", + "@prisma/cli-engine": "0.10.0", "chokidar": "^4.0.3", "cross-spawn": "^7.0.6", "dotenv-flow": "4.1.0" diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts index 5312e755e..1ecf68279 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts @@ -38,7 +38,7 @@ describe('createComposerFamily()', () => { { from: 'deploy', flag: 'stage', - replacement: 'deploy --environment ', + replacement: ['deploy --environment '], reason: 'A place the app runs is now called an environment.', }, ]); diff --git a/packages/1-prisma-cloud/1-extensions/target/package.json b/packages/1-prisma-cloud/1-extensions/target/package.json index b993ea384..6b52d2f27 100644 --- a/packages/1-prisma-cloud/1-extensions/target/package.json +++ b/packages/1-prisma-cloud/1-extensions/target/package.json @@ -44,7 +44,7 @@ "@aws-sdk/client-s3": "^3.1085.0", "@distilled.cloud/prisma": "catalog:", "@internal/tsdown-config": "workspace:0.38.0", - "@prisma/cli-engine": "0.9.0", + "@prisma/cli-engine": "0.10.0", "@types/bun": "^1.3.13", "tsdown": "^0.22.7", "typescript": "^6.0.3", diff --git a/packages/9-public/composer-cli/package.json b/packages/9-public/composer-cli/package.json index 0d6dc3d5d..a70ec8c31 100644 --- a/packages/9-public/composer-cli/package.json +++ b/packages/9-public/composer-cli/package.json @@ -27,7 +27,7 @@ "esbuild": "^0.28.1" }, "peerDependencies": { - "@prisma/cli-engine": "0.9.0" + "@prisma/cli-engine": "0.10.0" }, "devDependencies": { "@internal/cli": "workspace:0.38.0", @@ -36,7 +36,7 @@ "@internal/lowering": "workspace:0.38.0", "@internal/tsdown-config": "workspace:0.38.0", "@types/bun": "^1.3.13", - "@prisma/cli-engine": "0.9.0", + "@prisma/cli-engine": "0.10.0", "@types/node": "^26.0.1", "tsdown": "^0.22.7", "typescript": "^6.0.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9dfe80d8..a0e7df525 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,7 +33,7 @@ catalogs: overrides: '@prisma/composer-cli': workspace:* - '@prisma/cli-engine': 0.9.0 + '@prisma/cli-engine': 0.10.0 importers: @@ -89,7 +89,7 @@ importers: version: link:../../packages/9-public/composer-prisma-cloud '@prisma/orm-postgres': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) arktype: specifier: ^2.2.3 version: 2.2.7 @@ -253,7 +253,7 @@ importers: version: link:../../packages/9-public/composer-prisma-cloud '@prisma/orm-postgres': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) effect: specifier: 'catalog:' version: 4.1.0 @@ -358,7 +358,7 @@ importers: dependencies: '@prisma/orm-postgres': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) arktype: specifier: ^2.2.3 version: 2.2.7 @@ -386,7 +386,7 @@ importers: dependencies: '@prisma/orm-postgres': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@store/catalog': specifier: workspace:0.38.0 version: link:../catalog @@ -836,8 +836,8 @@ importers: specifier: workspace:0.38.0 version: link:../../0-foundation/foundation '@prisma/cli-engine': - specifier: 0.9.0 - version: 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + specifier: 0.10.0 + version: 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) chokidar: specifier: ^4.0.3 version: 4.0.3 @@ -850,7 +850,7 @@ importers: devDependencies: '@alchemy.run/prisma': specifier: 'catalog:' - version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) + version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) '@internal/tsdown-config': specifier: workspace:0.38.0 version: link:../../0-foundation/tsdown-config @@ -941,7 +941,7 @@ importers: dependencies: '@alchemy.run/prisma': specifier: 'catalog:' - version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) + version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) '@internal/bundle-paths': specifier: workspace:0.38.0 version: link:../../../0-framework/2-authoring/bundle-paths @@ -1005,7 +1005,7 @@ importers: dependencies: '@alchemy.run/prisma': specifier: 'catalog:' - version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) + version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) '@distilled.cloud/prisma': specifier: 'catalog:' version: 1.0.0-rc.18(effect@4.1.0) @@ -1075,7 +1075,7 @@ importers: dependencies: '@alchemy.run/prisma': specifier: 'catalog:' - version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) + version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) '@internal/core': specifier: workspace:0.38.0 version: link:../../../0-framework/1-core/core @@ -1108,10 +1108,10 @@ importers: version: link:../../../0-framework/2-authoring/service-rpc '@prisma/orm-postgres': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@prisma/orm-toolchain': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@standard-schema/spec': specifier: ^1.1.0 version: 1.1.0 @@ -1141,8 +1141,8 @@ importers: specifier: workspace:0.38.0 version: link:../../../0-framework/0-foundation/tsdown-config '@prisma/cli-engine': - specifier: 0.9.0 - version: 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + specifier: 0.10.0 + version: 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@types/bun': specifier: ^1.3.13 version: 1.3.14 @@ -1181,10 +1181,10 @@ importers: version: link:../../../0-framework/2-authoring/service-rpc '@prisma/orm-postgres': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@prisma/orm-toolchain': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) arktype: specifier: ^2.2.3 version: 2.2.7 @@ -1493,8 +1493,8 @@ importers: specifier: workspace:0.38.0 version: link:../../0-framework/0-foundation/tsdown-config '@prisma/cli-engine': - specifier: 0.9.0 - version: 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + specifier: 0.10.0 + version: 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@types/bun': specifier: ^1.3.13 version: 1.3.14 @@ -1512,7 +1512,7 @@ importers: dependencies: '@alchemy.run/prisma': specifier: 'catalog:' - version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) + version: 2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2) '@distilled.cloud/prisma': specifier: 'catalog:' version: 1.0.0-rc.18(effect@4.1.0) @@ -1536,7 +1536,7 @@ importers: version: 1.80.0 '@prisma/orm-toolchain': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@standard-schema/spec': specifier: ^1.1.0 version: 1.1.0 @@ -1618,7 +1618,7 @@ importers: version: link:../../0-framework/0-foundation/tsdown-config '@prisma/orm-postgres': specifier: 8.0.0-rc.23 - version: 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + version: 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@types/node': specifier: ^26.0.1 version: 26.1.1 @@ -2504,8 +2504,8 @@ packages: '@oxc-project/types@0.153.0': resolution: {integrity: sha512-jSNrRIyvPVLL5E1z/tS5zLAprosGz/FuI1PWwEOz59j3E4TTTzSpqKb/RDGqJhhW0QHYISGXxq582wGx6T11Tw==} - '@prisma/cli-engine@0.9.0': - resolution: {integrity: sha512-M53Xx/KiPQ02iT8FXT2c9X+3fVgMVfWK/emf/tq+jRNFi7b0Ffwaeo1yz8XS4UKOza5DaKRwMs+K8U44z9corg==} + '@prisma/cli-engine@0.10.0': + resolution: {integrity: sha512-GdeeXQg5dmlY5aBX+coqtO8AbUwszGL/Sa9z5NcRQkUKIS7hk4EBG8mhwZFN9dKOVwahw7e9dWfpM7skl2MyGg==} engines: {node: '>=22.12.0'} peerDependencies: '@prisma/management-api-sdk': ^1.55.0 @@ -2595,7 +2595,7 @@ packages: '@prisma/orm-toolchain@8.0.0-rc.23': resolution: {integrity: sha512-mctCtrOZbT/xHjtHSGA+dNOpzJeAgtcwbJsz7NuGdxHRy2gy5x1eOG0dekAdi/ij2JVZ8EwlXQDBNRPKrgQqeA==} peerDependencies: - '@prisma/cli-engine': 0.9.0 + '@prisma/cli-engine': 0.10.0 typescript: '>=5.9' vite: ^7.0.0 || ^8.0.0 peerDependenciesMeta: @@ -5709,7 +5709,7 @@ snapshots: chokidar: 5.0.0 rolldown: 1.2.13 - '@alchemy.run/prisma@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2)': + '@alchemy.run/prisma@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2)': dependencies: '@distilled.cloud/aws': 1.0.0-rc.18(effect@4.1.0) '@distilled.cloud/core': 1.0.0-rc.18(effect@4.1.0) @@ -5721,7 +5721,7 @@ snapshots: optionalDependencies: '@effect/platform-bun': 4.1.0(effect@4.1.0) '@effect/platform-node': 4.1.0(effect@4.1.0)(redis@6.2.1) - '@prisma/orm-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@vercel/nft': 1.10.2 prisma: 8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) ws: 8.22.2 @@ -5729,7 +5729,7 @@ snapshots: - typescript - vite - '@alchemy.run/prisma@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2)': + '@alchemy.run/prisma@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(@vercel/nft@1.10.2)(alchemy@2.0.0-beta.85(@effect/platform-bun@4.1.0(effect@4.1.0))(@effect/platform-node@4.1.0(effect@4.1.0)(redis@6.2.1))(@types/react@19.2.17)(effect@4.1.0)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2))(effect@4.1.0)(prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))(ws@8.22.2)': dependencies: '@distilled.cloud/aws': 1.0.0-rc.18(effect@4.1.0) '@distilled.cloud/core': 1.0.0-rc.18(effect@4.1.0) @@ -5741,7 +5741,7 @@ snapshots: optionalDependencies: '@effect/platform-bun': 4.1.0(effect@4.1.0) '@effect/platform-node': 4.1.0(effect@4.1.0)(redis@6.2.1) - '@prisma/orm-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@vercel/nft': 1.10.2 prisma: 8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) ws: 8.22.2 @@ -6504,7 +6504,7 @@ snapshots: '@oxc-project/types@0.153.0': {} - '@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5)': + '@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5)': dependencies: '@clack/prompts': 1.5.0 '@prisma/management-api-sdk': 1.80.0 @@ -6652,10 +6652,10 @@ snapshots: dependencies: openapi-fetch: 0.14.0 - '@prisma/orm-family-sql@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-family-sql@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@standard-schema/spec': 1.1.0 arktype: 2.2.7 pathe: 2.0.3 @@ -6670,10 +6670,10 @@ snapshots: - typanion - vite - '@prisma/orm-family-sql@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-family-sql@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@standard-schema/spec': 1.1.0 arktype: 2.2.7 pathe: 2.0.3 @@ -6699,12 +6699,12 @@ snapshots: optionalDependencies: typescript: 6.0.3 - '@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) - '@prisma/orm-target-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-target-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@types/node': 26.1.2 '@types/pg': 8.20.4 arktype: 2.2.7 @@ -6722,12 +6722,12 @@ snapshots: - typanion - vite - '@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) - '@prisma/orm-target-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-target-postgres': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@types/node': 26.1.2 '@types/pg': 8.20.4 arktype: 2.2.7 @@ -6745,11 +6745,11 @@ snapshots: - typanion - vite - '@prisma/orm-target-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-target-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@standard-schema/spec': 1.1.0 '@types/node': 26.1.2 '@types/pg': 8.20.4 @@ -6770,11 +6770,11 @@ snapshots: - typanion - vite - '@prisma/orm-target-postgres@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-target-postgres@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(temporal-polyfill@1.0.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-family-sql': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@standard-schema/spec': 1.1.0 '@types/node': 26.1.2 '@types/pg': 8.20.4 @@ -6795,9 +6795,9 @@ snapshots: - typanion - vite - '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) '@vercel/detect-agent': 1.2.5 arktype: 2.2.7 @@ -6824,9 +6824,9 @@ snapshots: - magicast - typanion - '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) '@vercel/detect-agent': 1.2.5 arktype: 2.2.7 @@ -6853,9 +6853,9 @@ snapshots: - magicast - typanion - '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) '@vercel/detect-agent': 1.2.5 arktype: 2.2.7 @@ -6882,9 +6882,9 @@ snapshots: - magicast - typanion - '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': + '@prisma/orm-toolchain@8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/orm-framework': 8.0.0-rc.23(typescript@6.0.3) '@vercel/detect-agent': 1.2.5 arktype: 2.2.7 @@ -9042,11 +9042,11 @@ snapshots: prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)): dependencies: '@manypkg/tools': 2.1.2 - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/composer-cli': link:packages/9-public/composer-cli '@prisma/compute-sdk': 0.43.0(@prisma/management-api-sdk@1.80.0) '@prisma/management-api-sdk': 1.80.0 - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@vercel/detect-agent': 1.2.5 better-result: 2.9.2 cross-spawn: 7.0.6 @@ -9071,11 +9071,11 @@ snapshots: prisma@8.0.0-rc.32(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)): dependencies: '@manypkg/tools': 2.1.2 - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/composer-cli': link:packages/9-public/composer-cli '@prisma/compute-sdk': 0.43.0(@prisma/management-api-sdk@1.80.0) '@prisma/management-api-sdk': 1.80.0 - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5))(magicast@0.5.5)(typanion@3.14.0)(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@vercel/detect-agent': 1.2.5 better-result: 2.9.2 cross-spawn: 7.0.6 @@ -9099,11 +9099,11 @@ snapshots: prisma@8.0.0-rc.32(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)): dependencies: '@manypkg/tools': 2.1.2 - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/composer-cli': link:packages/9-public/composer-cli '@prisma/compute-sdk': 0.43.0(@prisma/management-api-sdk@1.80.0) '@prisma/management-api-sdk': 1.80.0 - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.1)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@vercel/detect-agent': 1.2.5 better-result: 2.9.2 cross-spawn: 7.0.6 @@ -9127,11 +9127,11 @@ snapshots: prisma@8.0.0-rc.32(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)): dependencies: '@manypkg/tools': 2.1.2 - '@prisma/cli-engine': 0.9.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) + '@prisma/cli-engine': 0.10.0(@prisma/management-api-sdk@1.80.0)(magicast@0.5.5) '@prisma/composer-cli': link:packages/9-public/composer-cli '@prisma/compute-sdk': 0.43.0(@prisma/management-api-sdk@1.80.0) '@prisma/management-api-sdk': 1.80.0 - '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.9.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) + '@prisma/orm-toolchain': 8.0.0-rc.23(@prisma/cli-engine@0.10.0(@prisma/management-api-sdk@1.80.0))(typescript@6.0.3)(vite@8.1.2(@types/node@26.1.2)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)) '@vercel/detect-agent': 1.2.5 better-result: 2.9.2 cross-spawn: 7.0.6 From 878af77b6df1aff76fd005b9ea9ddf414535840c Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 16:47:16 +0000 Subject: [PATCH 02/11] test(cli): mount the whole family, with its dev group, as the prisma host does The harnesses mounted only the commands each test ran, with dev at the root and no group, because an older engine could not make dev both a command and a group. The engine allows that now, and a flag redirect on dev or dev stop requires the command it names to be mounted. Every harness now mounts the family's commands with the dev group, as the prisma host does, through one helper; the composer-cli tests add the dev group the same way. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- .../cli/src/family/__tests__/command-at.ts | 11 ----------- .../cli/src/family/__tests__/deploy.test.ts | 7 ++----- .../family/__tests__/dev-current-commands.test.ts | 9 ++------- .../cli/src/family/__tests__/dev-detach.test.ts | 4 ++-- .../src/family/__tests__/dev-emulators-dir.test.ts | 4 ++-- .../cli/src/family/__tests__/dev-interrupt.test.ts | 4 ++-- .../cli/src/family/__tests__/dev-servers.test.ts | 4 ++-- .../src/family/__tests__/dev-target-warning.test.ts | 4 ++-- .../src/family/__tests__/dev-values-changed.test.ts | 4 ++-- .../cli/src/family/__tests__/host-mount.ts | 9 +++++++++ .../9-public/composer-cli/test/deploy-list.test.ts | 13 ++++++++----- .../composer-cli/test/emulator-list.test.ts | 7 ++----- 12 files changed, 35 insertions(+), 45 deletions(-) delete mode 100644 packages/0-framework/3-tooling/cli/src/family/__tests__/command-at.ts create mode 100644 packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/command-at.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/command-at.ts deleted file mode 100644 index 6704de2c5..000000000 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/command-at.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { CommandFamily } from '@prisma/cli-engine'; - -/** The family's command at `key`; a test that names a command the family lacks fails here. */ -export function commandAt( - family: CommandFamily, - key: string, -): CommandFamily['commands'][string] & {} { - const command = family.commands[key]; - if (command === undefined) throw new Error(`the family has no "${key}" command`); - return command; -} diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts index 75a6c3cec..75490314b 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts @@ -13,8 +13,8 @@ import type { ScriptedChildProgram, TestCli } from '@prisma/cli-engine/testing'; import { createTestCli, mintTestJwt } from '@prisma/cli-engine/testing'; import { createOperationsDouble, type OperationsDouble } from '../../testing/operations-double.ts'; import { createComposerFamily } from '../family.ts'; -import { commandAt } from './command-at.ts'; import { validComposerSection } from './fixtures/composer-section.ts'; +import { mountAsHost } from './host-mount.ts'; type Fixtures = Parameters[0]; @@ -71,10 +71,7 @@ function composerCli( const family = createComposerFamily({ operations: double.operations }); const cli = createTestCli({ commandFamilies: [family], - // The two product verbs, at the root. `dev url` and `dev stop` mount - // beneath `dev`, which needs an engine that lets a command also be a - // group; their own tests mount them alone. - commands: { deploy: commandAt(family, 'deploy'), dev: commandAt(family, 'dev') }, + ...mountAsHost(family), config: { composer: validComposerSection() }, ...(spec.signedIn === false ? {} : { credential: activeCredential() }), ...(spec.spawnScript === undefined ? {} : { spawnScript: spec.spawnScript }), diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-current-commands.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-current-commands.test.ts index 3aaa1ecf8..e8614d316 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-current-commands.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-current-commands.test.ts @@ -12,7 +12,7 @@ import { type OperationsDoubleFixtures, } from '../../testing/operations-double.ts'; import { createComposerFamily } from '../family.ts'; -import { commandAt } from './command-at.ts'; +import { mountAsHost } from './host-mount.ts'; function composerConfig() { return { @@ -26,12 +26,7 @@ function cliWith(fixtures: OperationsDoubleFixtures = {}) { const family = createComposerFamily({ operations: double.operations }); const cli = createTestCli({ commandFamilies: [family], - commands: { - deploy: commandAt(family, 'deploy'), - 'dev url': commandAt(family, 'dev url'), - 'dev stop': commandAt(family, 'dev stop'), - }, - groups: { dev: { brief: 'Run the app on this machine.' } }, + ...mountAsHost(family), config: { composer: composerConfig() }, }); return { cli, calls: double.calls }; diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-detach.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-detach.test.ts index a23a6ee32..48930ba30 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-detach.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-detach.test.ts @@ -4,8 +4,8 @@ import type { EngineEvent } from '@prisma/cli-engine'; import { createTestCli } from '@prisma/cli-engine/testing'; import { createOperationsDouble } from '../../testing/operations-double.ts'; import { createComposerFamily } from '../family.ts'; -import { commandAt } from './command-at.ts'; import { validComposerSection } from './fixtures/composer-section.ts'; +import { mountAsHost } from './host-mount.ts'; const AS_TTY = { isTty: { stdout: true, stderr: true } } as const; @@ -13,7 +13,7 @@ function cliOver(double: ReturnType) { const family = createComposerFamily({ operations: double.operations }); return createTestCli({ commandFamilies: [family], - commands: { deploy: commandAt(family, 'deploy'), dev: commandAt(family, 'dev') }, + ...mountAsHost(family), config: { composer: validComposerSection() }, }); } diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-emulators-dir.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-emulators-dir.test.ts index b5fe7d85f..b56b987dc 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-emulators-dir.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-emulators-dir.test.ts @@ -17,7 +17,7 @@ import { createTestCli } from '@prisma/cli-engine/testing'; import * as Layer from 'effect/Layer'; import { devWithDeps } from '../../operations/dev.ts'; import { createComposerFamily, realOperations } from '../family.ts'; -import { commandAt } from './command-at.ts'; +import { mountAsHost } from './host-mount.ts'; const coreIndex = path.resolve(import.meta.dir, '../../../../../1-core/core/src/exports/index.ts'); @@ -127,7 +127,7 @@ describe.skipIf(process.platform === 'win32')( }); const cli = createTestCli({ commandFamilies: [family], - commands: { deploy: commandAt(family, 'deploy'), dev: commandAt(family, 'dev') }, + ...mountAsHost(family), config: { composer: configWhoseEmulatorsThrow() }, }); diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-interrupt.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-interrupt.test.ts index f1cd0a0b2..5c5e914db 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-interrupt.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-interrupt.test.ts @@ -14,8 +14,8 @@ import type { EngineEvent } from '@prisma/cli-engine'; import { createTestCli } from '@prisma/cli-engine/testing'; import { createOperationsDouble } from '../../testing/operations-double.ts'; import { createComposerFamily } from '../family.ts'; -import { commandAt } from './command-at.ts'; import { validComposerSection } from './fixtures/composer-section.ts'; +import { mountAsHost } from './host-mount.ts'; const AS_TTY = { isTty: { stdout: true, stderr: true } } as const; @@ -27,7 +27,7 @@ describe('dev, interrupted', () => { const family = createComposerFamily({ operations: double.operations }); const cli = createTestCli({ commandFamilies: [family], - commands: { deploy: commandAt(family, 'deploy'), dev: commandAt(family, 'dev') }, + ...mountAsHost(family), config: { composer: validComposerSection() }, }); diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-servers.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-servers.test.ts index d4ac6449d..09b7e13b9 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-servers.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-servers.test.ts @@ -5,8 +5,8 @@ import type { EngineEvent } from '@prisma/cli-engine'; import { createTestCli } from '@prisma/cli-engine/testing'; import { createOperationsDouble } from '../../testing/operations-double.ts'; import { createComposerFamily } from '../family.ts'; -import { commandAt } from './command-at.ts'; import { validComposerSection } from './fixtures/composer-section.ts'; +import { mountAsHost } from './host-mount.ts'; const AS_TTY = { isTty: { stdout: true, stderr: true } } as const; @@ -32,7 +32,7 @@ describe('dev — dev servers', () => { const family = createComposerFamily({ operations: double.operations }); const cli = createTestCli({ commandFamilies: [family], - commands: { deploy: commandAt(family, 'deploy'), dev: commandAt(family, 'dev') }, + ...mountAsHost(family), config: { composer: validComposerSection() }, }); const interrupt = new AbortController(); diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-target-warning.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-target-warning.test.ts index cc5938495..2231edb40 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-target-warning.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-target-warning.test.ts @@ -4,8 +4,8 @@ import type { EngineEvent } from '@prisma/cli-engine'; import { createTestCli } from '@prisma/cli-engine/testing'; import { createOperationsDouble } from '../../testing/operations-double.ts'; import { createComposerFamily } from '../family.ts'; -import { commandAt } from './command-at.ts'; import { validComposerSection } from './fixtures/composer-section.ts'; +import { mountAsHost } from './host-mount.ts'; const WARNING = 'shop.site names the hostname shop.com. prisma dev ignores it and serves the service on its local URL.'; @@ -19,7 +19,7 @@ describe('dev — target warnings', () => { const family = createComposerFamily({ operations: double.operations }); const cli = createTestCli({ commandFamilies: [family], - commands: { deploy: commandAt(family, 'deploy'), dev: commandAt(family, 'dev') }, + ...mountAsHost(family), config: { composer: validComposerSection() }, }); const interrupt = new AbortController(); diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-values-changed.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-values-changed.test.ts index 5c6af89a1..abb75e806 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-values-changed.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/dev-values-changed.test.ts @@ -4,8 +4,8 @@ import type { EngineEvent } from '@prisma/cli-engine'; import { createTestCli } from '@prisma/cli-engine/testing'; import { createOperationsDouble } from '../../testing/operations-double.ts'; import { createComposerFamily } from '../family.ts'; -import { commandAt } from './command-at.ts'; import { validComposerSection } from './fixtures/composer-section.ts'; +import { mountAsHost } from './host-mount.ts'; const WARNING = 'The values the config or secrets adapters return changed since dev started. Restart dev to apply them; rebuilds are paused until then.'; @@ -19,7 +19,7 @@ describe('dev — changed adapter values', () => { const family = createComposerFamily({ operations: double.operations }); const cli = createTestCli({ commandFamilies: [family], - commands: { deploy: commandAt(family, 'deploy'), dev: commandAt(family, 'dev') }, + ...mountAsHost(family), config: { composer: validComposerSection() }, }); const interrupt = new AbortController(); diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts new file mode 100644 index 000000000..d6e5b32c4 --- /dev/null +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts @@ -0,0 +1,9 @@ +import type { CommandFamily } from '@prisma/cli-engine'; + +/** The family's commands and the `dev` group, mounted as the `prisma` host mounts them. */ +export function mountAsHost(family: CommandFamily) { + return { + commands: family.commands, + groups: { dev: { brief: 'Run the app on this machine.' } }, + }; +} diff --git a/packages/9-public/composer-cli/test/deploy-list.test.ts b/packages/9-public/composer-cli/test/deploy-list.test.ts index e593099f6..f58e5c2d1 100644 --- a/packages/9-public/composer-cli/test/deploy-list.test.ts +++ b/packages/9-public/composer-cli/test/deploy-list.test.ts @@ -83,15 +83,18 @@ const COMPOSER_CONFIG = { }, }; +const HOST_GROUPS = { + deploy: { brief: 'Deploy the app.' }, + dev: { brief: 'Run the app on this machine.' }, + emulator: { brief: 'The local emulators on this machine.' }, +}; + function cliWith(api: FakeApi, requests: Request[] = []) { const family = createComposerFamily(); - const command = family.commands['deploy list']; - const deploy = family.commands['deploy']; - if (command === undefined || deploy === undefined) throw new Error('no deploy list command'); return createTestCli({ commandFamilies: [family], - commands: { deploy, 'deploy list': command }, - groups: { deploy: { brief: 'Deploy the app.' } }, + commands: family.commands, + groups: HOST_GROUPS, config: { composer: COMPOSER_CONFIG }, credential: { token: mintTestJwt({ diff --git a/packages/9-public/composer-cli/test/emulator-list.test.ts b/packages/9-public/composer-cli/test/emulator-list.test.ts index ce484431c..fe5af8b02 100644 --- a/packages/9-public/composer-cli/test/emulator-list.test.ts +++ b/packages/9-public/composer-cli/test/emulator-list.test.ts @@ -41,15 +41,12 @@ const listing: EmulatorList = { function cliWith(list: Parameters[0]) { const family = createComposerFamily(list); - const { deploy, 'deploy list': deployList, 'emulator list': command } = family.commands; - if (command === undefined || deploy === undefined || deployList === undefined) { - throw new Error('no emulator list command'); - } return createTestCli({ commandFamilies: [family], - commands: { deploy, 'deploy list': deployList, 'emulator list': command }, + commands: family.commands, groups: { deploy: { brief: 'Deploy the app.' }, + dev: { brief: 'Run the app on this machine.' }, emulator: { brief: 'The local emulators on this machine.' }, }, }); From 2579fdf0116270aa57c2ecab7b6f212f6d287cba Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 16:48:31 +0000 Subject: [PATCH 03/11] feat(cli): Prisma 7 dev subcommands and flags say what to run in Prisma 8 prisma dev ls, dev rm and dev start, and --port, --db-port, --shadow-db-port and --debug on dev and --debug on dev stop, failed with CLI.INVALID_ARGUMENTS ("Too many arguments" or "No flag registered") and no next step. They now fail with CLI.V7_COMMAND or CLI.V7_FLAG, exit 2, the summary the prisma shell uses for its own Prisma 7 redirects, a reason that says what Prisma 8 does instead, and next actions: emulator list for dev ls, dev --detach for dev start, the CLI docs for dev rm, and the help of dev or dev stop for the flags. The dev ls entry names emulator list, which only the published family mounts. It stays in the base family because the engine does not check that a help path is mounted; a composer-cli test runs dev ls and emulator list --help against the published family. A flag redirect does require its command to be mounted, so a host that mounts this family must mount dev and dev stop. The deploy --stage test now asserts its whole settlement, which is the same as on engine 0.9.0. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- .../cli/src/family/__tests__/deploy.test.ts | 14 +- .../cli/src/family/__tests__/family.test.ts | 46 +++++- .../src/family/__tests__/v7-redirects.test.ts | 156 ++++++++++++++++++ .../3-tooling/cli/src/family/family.ts | 68 +++++++- .../composer-cli/test/emulator-list.test.ts | 28 ++++ 5 files changed, 298 insertions(+), 14 deletions(-) create mode 100644 packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts index 75490314b..69137f663 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/deploy.test.ts @@ -9,6 +9,7 @@ import * as os from 'node:os'; import * as path from 'node:path'; import { CliStructuredError } from '@internal/foundation/errors'; import { notOk, ok } from '@internal/foundation/result'; +import type { NextAction } from '@prisma/cli-engine/protocol'; import type { ScriptedChildProgram, TestCli } from '@prisma/cli-engine/testing'; import { createTestCli, mintTestJwt } from '@prisma/cli-engine/testing'; import { createOperationsDouble, type OperationsDouble } from '../../testing/operations-double.ts'; @@ -162,9 +163,16 @@ describe('argument validation', () => { if (last?.kind !== 'result' || last.envelope.ok) throw new Error('expected an errored result'); expect(last.envelope.error.code).toBe('CLI.COMMAND_MOVED'); expect(last.envelope.error.summary).toBe('`--stage` on `deploy` has been replaced'); - expect(last.envelope.nextActions).toEqual([ - expect.objectContaining({ command: expect.stringContaining('deploy --environment ') }), - ]); + expect(last.envelope.error.why).toBe('A place the app runs is now called an environment.'); + const nextActions: NextAction[] = [ + { + kind: 'run-command', + label: 'Use the replacement', + command: 'prisma-test deploy --environment ', + }, + ]; + expect(last.envelope.nextActions).toEqual(nextActions); + expect(last.envelope.error.nextActions).toEqual(nextActions); expect(double.calls.deploy).toEqual([]); }); diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts index 1ecf68279..72ff551d0 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/family.test.ts @@ -33,15 +33,43 @@ describe('createComposerFamily()', () => { ).toEqual(['deploy', 'dev', 'dev stop', 'dev url', 'emulator list']); }); - test('the family redirects only the retired --stage on deploy', () => { - expect(createComposerFamily().redirects).toEqual([ - { - from: 'deploy', - flag: 'stage', - replacement: ['deploy --environment '], - reason: 'A place the app runs is now called an environment.', - }, - ]); + test('the family redirects the retired --stage on deploy and the Prisma 7 dev subcommands and flags', () => { + const redirects = createComposerFamily().redirects; + expect(redirects[0]).toEqual({ + from: 'deploy', + flag: 'stage', + replacement: ['deploy --environment '], + reason: 'A place the app runs is now called an environment.', + code: undefined, + summary: undefined, + help: undefined, + docsUrl: undefined, + }); + expect( + redirects + .slice(1) + .map((redirect) => [redirect.code, redirect.from, redirect.flag]) + .sort(), + ).toEqual( + [ + ['CLI.V7_COMMAND', 'dev ls', undefined], + ['CLI.V7_COMMAND', 'dev rm', undefined], + ['CLI.V7_COMMAND', 'dev start', undefined], + ['CLI.V7_FLAG', 'dev', 'dbPort'], + ['CLI.V7_FLAG', 'dev', 'debug'], + ['CLI.V7_FLAG', 'dev', 'port'], + ['CLI.V7_FLAG', 'dev', 'shadowDbPort'], + ['CLI.V7_FLAG', 'dev stop', 'debug'], + ].sort(), + ); + }); + + test('a host’s redirects follow the family’s own', () => { + const extra = { from: 'emulator ls', replacement: 'emulator list' }; + expect(createComposerFamily({ redirects: [extra] }).redirects.at(-1)).toMatchObject({ + from: 'emulator ls', + replacement: ['emulator list'], + }); }); test('the operations seam defaults to the real control operations', () => { diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts new file mode 100644 index 000000000..5379f1217 --- /dev/null +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts @@ -0,0 +1,156 @@ +/** The Prisma 7 `dev` subcommands and flags, run through the engine with the family mounted as the `prisma` host mounts it. */ +import { describe, expect, test } from 'bun:test'; +import type { NextAction } from '@prisma/cli-engine/protocol'; +import { createTestCli, type TestCli } from '@prisma/cli-engine/testing'; +import { createOperationsDouble } from '../../testing/operations-double.ts'; +import { createComposerFamily } from '../family.ts'; +import { validComposerSection } from './fixtures/composer-section.ts'; +import { mountAsHost } from './host-mount.ts'; + +const BIN = 'prisma-test'; +const UPPERCASE_LETTER = /[A-Z]/g; +const WHY_LINE = /^ {2}why: /; +const ANSI = new RegExp(`${String.fromCharCode(27)}\\[[0-9;]*m`, 'g'); + +function composerCli() { + const double = createOperationsDouble({}); + const family = createComposerFamily({ operations: double.operations }); + const cli = createTestCli({ + commandFamilies: [family], + ...mountAsHost(family), + config: { composer: validComposerSection() }, + }); + return { cli, calls: double.calls }; +} + +function step(label: string, command: string): NextAction { + return { kind: 'run-command', label, command }; +} + +function help(path: string): NextAction { + return step('Read its help', `${BIN} ${path} --help`); +} + +const PATHS: Readonly> = { + 'dev ls': [step('Use the replacement', `${BIN} emulator list`), help('emulator list')], + 'dev rm': [{ kind: 'open-url', label: 'Read the docs', url: 'https://www.prisma.io/docs/cli' }], + 'dev start': [step('Use the replacement', `${BIN} dev --detach`), help('dev')], +}; + +const FLAGS: Readonly> = { + 'dev --port': [help('dev')], + 'dev --db-port': [help('dev')], + 'dev --shadow-db-port': [help('dev')], + 'dev --debug': [help('dev')], + 'dev stop --debug': [help('dev stop')], +}; + +function splitFlagCase(invocation: string): { command: string; flag: string } { + const at = invocation.indexOf(' --'); + return { command: invocation.slice(0, at), flag: invocation.slice(at + 3) }; +} + +function failedEnvelope(result: Awaited>) { + const last = result.json.at(-1); + if (last?.kind !== 'result' || last.envelope.ok) { + throw new Error(`expected a failed result frame, got: ${JSON.stringify(last)}`); + } + return last.envelope; +} + +describe('Prisma 7 dev subcommands', () => { + test('the family declares exactly the paths this test covers', () => { + expect( + createComposerFamily() + .redirects.filter((redirect) => redirect.code === 'CLI.V7_COMMAND') + .map((redirect) => redirect.from) + .sort(), + ).toEqual(Object.keys(PATHS).sort()); + }); + + test.each(Object.entries(PATHS))( + '`%s` settles as CLI.V7_COMMAND in --json output', + async (path, nextActions) => { + const { cli, calls } = composerCli(); + + const result = await cli.run([...path.split(' '), '--json']); + + expect(result.exitCode).toBe(2); + const envelope = failedEnvelope(result); + expect(envelope.commandId).toBe(path.replaceAll(' ', '.')); + expect(envelope.error.code).toBe('CLI.V7_COMMAND'); + expect(envelope.error.summary).toBe( + `\`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, + ); + expect(envelope.error.why).toEqual(expect.any(String)); + expect(envelope.nextActions).toEqual(nextActions); + expect(envelope.error.nextActions).toEqual(nextActions); + expect(calls.dev).toEqual([]); + }, + ); + + test.each(Object.entries(PATHS))( + '`%s` settles as CLI.V7_COMMAND in human output', + async (path, nextActions) => { + const { cli } = composerCli(); + + const result = await cli.run(path.split(' '), { isTty: { stdout: true, stderr: true } }); + + expect(result.exitCode).toBe(2); + const lines = result.stderr.replace(ANSI, '').trimEnd().split('\n'); + expect(lines[0]).toBe( + `✘ [CLI.V7_COMMAND] \`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, + ); + expect(lines[1]).toMatch(WHY_LINE); + expect(lines.slice(-nextActions.length)).toEqual( + nextActions.map((action) => `→ ${action.label}: ${action.command ?? action.url}`), + ); + }, + ); +}); + +describe('Prisma 7 flags on dev and dev stop', () => { + test('the family declares exactly the flags this test covers', () => { + expect( + createComposerFamily() + .redirects.filter((redirect) => redirect.code === 'CLI.V7_FLAG') + .map( + (redirect) => + `${redirect.from} --${redirect.flag?.replace(UPPERCASE_LETTER, (letter) => `-${letter.toLowerCase()}`)}`, + ) + .sort(), + ).toEqual(Object.keys(FLAGS).sort()); + }); + + test.each(Object.entries(FLAGS))( + '`%s` settles as CLI.V7_FLAG in --json output', + async (invocation, nextActions) => { + const { cli, calls } = composerCli(); + const { command, flag } = splitFlagCase(invocation); + + const result = await cli.run([...command.split(' '), `--${flag}`, '--json']); + + expect(result.exitCode).toBe(2); + const envelope = failedEnvelope(result); + expect(envelope.commandId).toBe(command.replaceAll(' ', '.')); + expect(envelope.error.code).toBe('CLI.V7_FLAG'); + expect(envelope.error.summary).toBe( + `\`--${flag}\` on \`${BIN} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, + ); + expect(envelope.error.why).toEqual(expect.any(String)); + expect(envelope.nextActions).toEqual(nextActions); + expect(envelope.error.nextActions).toEqual(nextActions); + expect(calls.dev).toEqual([]); + expect(calls.devStop).toEqual([]); + }, + ); + + test('a v7 flag that takes a value settles the same way when it is given one', async () => { + const { cli } = composerCli(); + + const result = await cli.run(['dev', '--port', '5555', '--json']); + + expect(result.exitCode).toBe(2); + expect(failedEnvelope(result).error.code).toBe('CLI.V7_FLAG'); + }); +}); diff --git a/packages/0-framework/3-tooling/cli/src/family/family.ts b/packages/0-framework/3-tooling/cli/src/family/family.ts index 288472430..277ae7bee 100644 --- a/packages/0-framework/3-tooling/cli/src/family/family.ts +++ b/packages/0-framework/3-tooling/cli/src/family/family.ts @@ -63,8 +63,10 @@ export interface CreateComposerFamilyOptions { readonly redirects?: readonly RedirectSpec[] | undefined; } +const CLI_DOCS_URL = 'https://www.prisma.io/docs/cli'; + /** The `prisma` CLI's error reference; the engine appends `/` to it for every error envelope. */ -const CLI_DOCS_BASE = 'https://www.prisma.io/docs/cli/error-reference/'; +const CLI_DOCS_BASE = `${CLI_DOCS_URL}/error-reference/`; /** Retires `--stage` on `command` in favour of `--environment`, so typing it fails with `CLI.COMMAND_MOVED`. */ function retiredStageFlagRedirect(command: string): RedirectSpec { @@ -76,6 +78,68 @@ function retiredStageFlagRedirect(command: string): RedirectSpec { }; } +type V7RedirectEntry = Omit; + +function v7Command(from: string, entry: V7RedirectEntry): RedirectSpec { + return { + from, + code: 'CLI.V7_COMMAND', + summary: `\`{bin} ${from}\` is a Prisma 7 command and is not available in Prisma 8`, + ...entry, + }; +} + +function v7Flag(command: string, flag: string, entry: V7RedirectEntry): RedirectSpec { + return { + from: command, + flag, + code: 'CLI.V7_FLAG', + summary: `\`--${flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}\` on \`{bin} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, + ...entry, + }; +} + +const DEV_PORTS_REASON = + '`dev` takes no port options. Each environment of the app gets its own ports for its ' + + 'services, databases and buckets, and keeps them between runs; `dev url` prints the local ' + + 'URL of one of them while `dev` runs.'; + +const V7_REDIRECTS: readonly RedirectSpec[] = [ + v7Command('dev ls', { + replacement: '{bin} emulator list', + help: 'emulator list', + reason: + '`emulator list` lists the local emulators on this machine, the programs `dev` starts to ' + + "run the app's services, databases and buckets, with every instance each one holds.", + }), + v7Command('dev rm', { + docsUrl: CLI_DOCS_URL, + reason: + "Prisma 8 keeps no named local servers to remove. `dev stop` stops the app's local copy: " + + 'its service processes and local database servers.', + }), + v7Command('dev start', { + replacement: '{bin} dev --detach', + help: 'dev', + reason: + '`dev --detach` runs the app locally in the background: it returns once every service ' + + 'answers and leaves the app running, without watching for changes, until `dev stop`.', + }), + ...['port', 'dbPort', 'shadowDbPort'].map((flag) => + v7Flag('dev', flag, { help: 'dev', reason: DEV_PORTS_REASON }), + ), + v7Flag('dev', 'debug', { + help: 'dev', + reason: + '`dev` has no debug output option. It shows the output of each service that runs a dev ' + + "server, such as `next dev`, prefixed with the service's address.", + }), + v7Flag('dev stop', 'debug', { + help: 'dev stop', + reason: '`dev stop` has no debug output option.', + }), +]; + export function createComposerFamily(options: CreateComposerFamilyOptions = {}): CommandFamily { const operations = options.operations ?? realOperations; return defineCommandFamily({ @@ -88,6 +152,6 @@ export function createComposerFamily(options: CreateComposerFamilyOptions = {}): ...options.commands, }, docsBaseUrl: CLI_DOCS_BASE, - redirects: [retiredStageFlagRedirect('deploy'), ...(options.redirects ?? [])], + redirects: [retiredStageFlagRedirect('deploy'), ...V7_REDIRECTS, ...(options.redirects ?? [])], }); } diff --git a/packages/9-public/composer-cli/test/emulator-list.test.ts b/packages/9-public/composer-cli/test/emulator-list.test.ts index fe5af8b02..5ba9117c2 100644 --- a/packages/9-public/composer-cli/test/emulator-list.test.ts +++ b/packages/9-public/composer-cli/test/emulator-list.test.ts @@ -64,6 +64,34 @@ describe('emulator list', () => { ]); }); + test('the Prisma 7 `dev ls` points to it, and its help is mounted', async () => { + const cli = cliWith({ listEmulators: async () => ok(listing) }); + + const moved = await cli.run(['dev', 'ls', '--json']); + + expect(moved.exitCode).toBe(2); + expect(moved.json.at(-1)).toMatchObject({ + envelope: { + ok: false, + error: { code: 'CLI.V7_COMMAND' }, + nextActions: [ + { + kind: 'run-command', + label: 'Use the replacement', + command: 'prisma-test emulator list', + }, + { + kind: 'run-command', + label: 'Read its help', + command: 'prisma-test emulator list --help', + }, + ], + }, + }); + const help = await cli.run(['emulator', 'list', '--help']); + expect(help.exitCode).toBe(0); + }); + test('returns every emulator and its instances as the JSON result, with no config', async () => { const cli = cliWith({ listEmulators: async () => ok(listing) }); From 8bb13b362888b196525145ec110c78006240e1bc Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 16:48:44 +0000 Subject: [PATCH 04/11] docs: Prisma 7 dev subcommands and flags in the running-locally guide and the skill Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- docs/guides/running-locally.md | 8 ++++++++ skills/prisma-composer-core-concepts/SKILL.md | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/docs/guides/running-locally.md b/docs/guides/running-locally.md index 4c98bc9bd..4b937ad04 100644 --- a/docs/guides/running-locally.md +++ b/docs/guides/running-locally.md @@ -312,6 +312,14 @@ a code a script can branch on: Each command's piped lines are listed in [Piped output](#piped-output). +Prisma 7's `prisma dev ls`, `prisma dev rm` and `prisma dev start` fail with +`CLI.V7_COMMAND`. Its `--port`, `--db-port`, `--shadow-db-port` and `--debug` +on `prisma dev`, and `--debug` on `prisma dev stop`, fail with `CLI.V7_FLAG`. +Both exit with status 2 and say what to run instead: `prisma emulator list` +for `dev ls`, and `prisma dev --detach` for `dev start`. There is no port to +pass: `prisma dev` gives each environment its own ports and keeps them between +runs, and `prisma dev url` prints where a node answers. + `--fresh` is also the fix when a framework upgrade leaves stale rows in this app's local dev state — the symptom is a plan-time error naming an unregistered resource type (for example diff --git a/skills/prisma-composer-core-concepts/SKILL.md b/skills/prisma-composer-core-concepts/SKILL.md index 759c2cf45..5291abd4f 100644 --- a/skills/prisma-composer-core-concepts/SKILL.md +++ b/skills/prisma-composer-core-concepts/SKILL.md @@ -614,6 +614,11 @@ that surprise: writes one tab-separated line per instance: emulator kind, instance id, URL, state, node address, directory, environment. `prisma emulator start` and `stop` are planned. + Prisma 7's `dev ls`, `dev rm` and `dev start` fail with `CLI.V7_COMMAND`, + and `--port`, `--db-port`, `--shadow-db-port` and `--debug` on `dev` (and + `--debug` on `dev stop`) with `CLI.V7_FLAG`, both exit 2: use + `emulator list` for `dev ls` and `dev --detach` for `dev start`. Ports + cannot be set; ask `dev url` where a node answers. For agents, scripts and CI, `prisma dev --detach` runs the app in the background: it exits 0 once every service answers and prints the URLs, does not watch for changes, and leaves the app running until From a193979c15d56614c15a01d80c7c7e983b0b55ad Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 17:05:31 +0000 Subject: [PATCH 05/11] test(cli): drop the doc comment from the host-mount helper Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- .../0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts index d6e5b32c4..f802d2fd9 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/host-mount.ts @@ -1,6 +1,5 @@ import type { CommandFamily } from '@prisma/cli-engine'; -/** The family's commands and the `dev` group, mounted as the `prisma` host mounts them. */ export function mountAsHost(family: CommandFamily) { return { commands: family.commands, From c399fd8106eb4273c6713d22c12e54b7a8b5bd13 Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 17:06:09 +0000 Subject: [PATCH 06/11] fix(cli): dev rm points to dev --fresh, and each v7 reason is asserted word for word Prisma 7's dev rm deleted a local server and its data. Its redirect said Prisma 8 keeps no local servers to remove and offered only dev stop, which keeps the data. It now names dev --fresh as the replacement, with dev's help, and says that dev --fresh deletes the app's local services, databases and buckets and their data in one environment, while dev stop only stops them. The ports reason now says what an environment is and that dev url takes a node's address. Both reasons define an environment the same way, from the --environment flag's own help. The tests compare every path's and flag's reason exactly, in --json and in human output, and the human-output test now runs the five flags as well. The test file's opening doc comment is removed. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- .../src/family/__tests__/v7-redirects.test.ts | 110 ++++++++++++++---- .../3-tooling/cli/src/family/family.ts | 22 ++-- 2 files changed, 99 insertions(+), 33 deletions(-) diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts index 5379f1217..7e59cdeb6 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts @@ -1,4 +1,3 @@ -/** The Prisma 7 `dev` subcommands and flags, run through the engine with the family mounted as the `prisma` host mounts it. */ import { describe, expect, test } from 'bun:test'; import type { NextAction } from '@prisma/cli-engine/protocol'; import { createTestCli, type TestCli } from '@prisma/cli-engine/testing'; @@ -9,7 +8,6 @@ import { mountAsHost } from './host-mount.ts'; const BIN = 'prisma-test'; const UPPERCASE_LETTER = /[A-Z]/g; -const WHY_LINE = /^ {2}why: /; const ANSI = new RegExp(`${String.fromCharCode(27)}\\[[0-9;]*m`, 'g'); function composerCli() { @@ -31,20 +29,66 @@ function help(path: string): NextAction { return step('Read its help', `${BIN} ${path} --help`); } -const PATHS: Readonly> = { - 'dev ls': [step('Use the replacement', `${BIN} emulator list`), help('emulator list')], - 'dev rm': [{ kind: 'open-url', label: 'Read the docs', url: 'https://www.prisma.io/docs/cli' }], - 'dev start': [step('Use the replacement', `${BIN} dev --detach`), help('dev')], +interface Expected { + readonly why: string; + readonly nextActions: readonly NextAction[]; +} + +const ENVIRONMENT = + 'environment (a separate local copy of the app: `dev` unless `--environment` names another)'; + +const PORTS_WHY = + `\`dev\` takes no port options. Each ${ENVIRONMENT} gets its own ports for its services, ` + + 'databases and buckets and keeps them between runs. While `dev` runs, `dev url
` ' + + 'prints where one service, database or bucket answers; its address is its path from the app ' + + 'name, with dots between names, such as `shop.catalog.database`.'; + +const PATHS: Readonly> = { + 'dev ls': { + why: + '`emulator list` lists the local emulators on this machine, the programs `dev` starts to ' + + "run the app's services, databases and buckets, with every instance each one holds.", + nextActions: [step('Use the replacement', `${BIN} emulator list`), help('emulator list')], + }, + 'dev rm': { + why: + "`dev --fresh` deletes this app's local services, databases and buckets, and their data, " + + `in one ${ENVIRONMENT}, then starts the app again. \`dev stop\` only stops the app's ` + + 'service processes and local database servers, and keeps their data.', + nextActions: [step('Use the replacement', `${BIN} dev --fresh`), help('dev')], + }, + 'dev start': { + why: + '`dev --detach` runs the app locally in the background: it returns once every service ' + + 'answers and leaves the app running, without watching for changes, until `dev stop`.', + nextActions: [step('Use the replacement', `${BIN} dev --detach`), help('dev')], + }, }; -const FLAGS: Readonly> = { - 'dev --port': [help('dev')], - 'dev --db-port': [help('dev')], - 'dev --shadow-db-port': [help('dev')], - 'dev --debug': [help('dev')], - 'dev stop --debug': [help('dev stop')], +const FLAGS: Readonly> = { + 'dev --port': { why: PORTS_WHY, nextActions: [help('dev')] }, + 'dev --db-port': { why: PORTS_WHY, nextActions: [help('dev')] }, + 'dev --shadow-db-port': { why: PORTS_WHY, nextActions: [help('dev')] }, + 'dev --debug': { + why: + '`dev` has no debug output option. It shows the output of each service that runs a dev ' + + "server, such as `next dev`, prefixed with the service's address.", + nextActions: [help('dev')], + }, + 'dev stop --debug': { + why: '`dev stop` has no debug output option.', + nextActions: [help('dev stop')], + }, }; +function humanLines(stderr: string): string[] { + return stderr.replace(ANSI, '').trimEnd().split('\n'); +} + +function actionLine(action: NextAction): string { + return `→ ${action.label}: ${action.command ?? action.url}`; +} + function splitFlagCase(invocation: string): { command: string; flag: string } { const at = invocation.indexOf(' --'); return { command: invocation.slice(0, at), flag: invocation.slice(at + 3) }; @@ -70,7 +114,7 @@ describe('Prisma 7 dev subcommands', () => { test.each(Object.entries(PATHS))( '`%s` settles as CLI.V7_COMMAND in --json output', - async (path, nextActions) => { + async (path, { why, nextActions }) => { const { cli, calls } = composerCli(); const result = await cli.run([...path.split(' '), '--json']); @@ -82,7 +126,7 @@ describe('Prisma 7 dev subcommands', () => { expect(envelope.error.summary).toBe( `\`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, ); - expect(envelope.error.why).toEqual(expect.any(String)); + expect(envelope.error.why).toBe(why); expect(envelope.nextActions).toEqual(nextActions); expect(envelope.error.nextActions).toEqual(nextActions); expect(calls.dev).toEqual([]); @@ -91,20 +135,18 @@ describe('Prisma 7 dev subcommands', () => { test.each(Object.entries(PATHS))( '`%s` settles as CLI.V7_COMMAND in human output', - async (path, nextActions) => { + async (path, { why, nextActions }) => { const { cli } = composerCli(); const result = await cli.run(path.split(' '), { isTty: { stdout: true, stderr: true } }); expect(result.exitCode).toBe(2); - const lines = result.stderr.replace(ANSI, '').trimEnd().split('\n'); - expect(lines[0]).toBe( + expect(result.stdout).toBe(''); + expect(humanLines(result.stderr)).toEqual([ `✘ [CLI.V7_COMMAND] \`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, - ); - expect(lines[1]).toMatch(WHY_LINE); - expect(lines.slice(-nextActions.length)).toEqual( - nextActions.map((action) => `→ ${action.label}: ${action.command ?? action.url}`), - ); + ` why: ${why}`, + ...nextActions.map(actionLine), + ]); }, ); }); @@ -124,7 +166,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { test.each(Object.entries(FLAGS))( '`%s` settles as CLI.V7_FLAG in --json output', - async (invocation, nextActions) => { + async (invocation, { why, nextActions }) => { const { cli, calls } = composerCli(); const { command, flag } = splitFlagCase(invocation); @@ -137,7 +179,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { expect(envelope.error.summary).toBe( `\`--${flag}\` on \`${BIN} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, ); - expect(envelope.error.why).toEqual(expect.any(String)); + expect(envelope.error.why).toBe(why); expect(envelope.nextActions).toEqual(nextActions); expect(envelope.error.nextActions).toEqual(nextActions); expect(calls.dev).toEqual([]); @@ -145,6 +187,26 @@ describe('Prisma 7 flags on dev and dev stop', () => { }, ); + test.each(Object.entries(FLAGS))( + '`%s` settles as CLI.V7_FLAG in human output', + async (invocation, { why, nextActions }) => { + const { cli } = composerCli(); + const { command, flag } = splitFlagCase(invocation); + + const result = await cli.run([...command.split(' '), `--${flag}`], { + isTty: { stdout: true, stderr: true }, + }); + + expect(result.exitCode).toBe(2); + expect(result.stdout).toBe(''); + expect(humanLines(result.stderr)).toEqual([ + `✘ [CLI.V7_FLAG] \`--${flag}\` on \`${BIN} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, + ` why: ${why}`, + ...nextActions.map(actionLine), + ]); + }, + ); + test('a v7 flag that takes a value settles the same way when it is given one', async () => { const { cli } = composerCli(); diff --git a/packages/0-framework/3-tooling/cli/src/family/family.ts b/packages/0-framework/3-tooling/cli/src/family/family.ts index 277ae7bee..c71afb8b6 100644 --- a/packages/0-framework/3-tooling/cli/src/family/family.ts +++ b/packages/0-framework/3-tooling/cli/src/family/family.ts @@ -63,10 +63,8 @@ export interface CreateComposerFamilyOptions { readonly redirects?: readonly RedirectSpec[] | undefined; } -const CLI_DOCS_URL = 'https://www.prisma.io/docs/cli'; - /** The `prisma` CLI's error reference; the engine appends `/` to it for every error envelope. */ -const CLI_DOCS_BASE = `${CLI_DOCS_URL}/error-reference/`; +const CLI_DOCS_BASE = 'https://www.prisma.io/docs/cli/error-reference/'; /** Retires `--stage` on `command` in favour of `--environment`, so typing it fails with `CLI.COMMAND_MOVED`. */ function retiredStageFlagRedirect(command: string): RedirectSpec { @@ -99,10 +97,14 @@ function v7Flag(command: string, flag: string, entry: V7RedirectEntry): Redirect }; } +const ENVIRONMENT = + 'environment (a separate local copy of the app: `dev` unless `--environment` names another)'; + const DEV_PORTS_REASON = - '`dev` takes no port options. Each environment of the app gets its own ports for its ' + - 'services, databases and buckets, and keeps them between runs; `dev url` prints the local ' + - 'URL of one of them while `dev` runs.'; + `\`dev\` takes no port options. Each ${ENVIRONMENT} gets its own ports for its services, ` + + 'databases and buckets and keeps them between runs. While `dev` runs, `dev url
` ' + + 'prints where one service, database or bucket answers; its address is its path from the app ' + + 'name, with dots between names, such as `shop.catalog.database`.'; const V7_REDIRECTS: readonly RedirectSpec[] = [ v7Command('dev ls', { @@ -113,10 +115,12 @@ const V7_REDIRECTS: readonly RedirectSpec[] = [ "run the app's services, databases and buckets, with every instance each one holds.", }), v7Command('dev rm', { - docsUrl: CLI_DOCS_URL, + replacement: '{bin} dev --fresh', + help: 'dev', reason: - "Prisma 8 keeps no named local servers to remove. `dev stop` stops the app's local copy: " + - 'its service processes and local database servers.', + "`dev --fresh` deletes this app's local services, databases and buckets, and their data, " + + `in one ${ENVIRONMENT}, then starts the app again. \`dev stop\` only stops the ` + + "app's service processes and local database servers, and keeps their data.", }), v7Command('dev start', { replacement: '{bin} dev --detach', From 7a5f71bc18162c0056b01ee1c5087be92c08aabc Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 17:06:46 +0000 Subject: [PATCH 07/11] docs: the v7 dev errors say why, and only dev ls, dev rm and dev start name a command The guide said every Prisma 7 dev error names a command to run. The flags point only to the command's help. The guide and the skill now say that, and name dev --fresh for dev rm. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- docs/guides/running-locally.md | 11 +++++++---- skills/prisma-composer-core-concepts/SKILL.md | 8 +++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/guides/running-locally.md b/docs/guides/running-locally.md index 4b937ad04..30e780b79 100644 --- a/docs/guides/running-locally.md +++ b/docs/guides/running-locally.md @@ -315,10 +315,13 @@ Each command's piped lines are listed in [Piped output](#piped-output). Prisma 7's `prisma dev ls`, `prisma dev rm` and `prisma dev start` fail with `CLI.V7_COMMAND`. Its `--port`, `--db-port`, `--shadow-db-port` and `--debug` on `prisma dev`, and `--debug` on `prisma dev stop`, fail with `CLI.V7_FLAG`. -Both exit with status 2 and say what to run instead: `prisma emulator list` -for `dev ls`, and `prisma dev --detach` for `dev start`. There is no port to -pass: `prisma dev` gives each environment its own ports and keeps them between -runs, and `prisma dev url` prints where a node answers. +Both exit with status 2 and say why. `dev ls` points to `prisma emulator list`, +`dev start` to `prisma dev --detach`, and `dev rm` to `prisma dev --fresh`, +which deletes the app's local services, databases and buckets in one +environment, and their data, then starts the app again. The flags point to the +command's help. There is no port to pass: `prisma dev` gives each environment +its own ports and keeps them between runs, and `prisma dev url` prints where a +node answers. `--fresh` is also the fix when a framework upgrade leaves stale rows in this app's local dev state — the symptom is a plan-time error naming an diff --git a/skills/prisma-composer-core-concepts/SKILL.md b/skills/prisma-composer-core-concepts/SKILL.md index 5291abd4f..945c88989 100644 --- a/skills/prisma-composer-core-concepts/SKILL.md +++ b/skills/prisma-composer-core-concepts/SKILL.md @@ -616,9 +616,11 @@ that surprise: `prisma emulator start` and `stop` are planned. Prisma 7's `dev ls`, `dev rm` and `dev start` fail with `CLI.V7_COMMAND`, and `--port`, `--db-port`, `--shadow-db-port` and `--debug` on `dev` (and - `--debug` on `dev stop`) with `CLI.V7_FLAG`, both exit 2: use - `emulator list` for `dev ls` and `dev --detach` for `dev start`. Ports - cannot be set; ask `dev url` where a node answers. + `--debug` on `dev stop`) with `CLI.V7_FLAG`, both exit 2 and say why: + use `emulator list` for `dev ls`, `dev --detach` for `dev start`, and + `dev --fresh` (deletes the app's local services, databases and buckets in + one environment, and their data) for `dev rm`; the flags point to the + command's help. Ports cannot be set; ask `dev url` where a node answers. For agents, scripts and CI, `prisma dev --detach` runs the app in the background: it exits 0 once every service answers and prints the URLs, does not watch for changes, and leaves the app running until From e922827584c998756401c5b19f78f1c09b7341ab Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 17:09:16 +0000 Subject: [PATCH 08/11] fix(cli): the v7 reasons name the default environment so it does not read as the dev command Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- .../3-tooling/cli/src/family/__tests__/v7-redirects.test.ts | 2 +- packages/0-framework/3-tooling/cli/src/family/family.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts index 7e59cdeb6..b6679d7df 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts @@ -35,7 +35,7 @@ interface Expected { } const ENVIRONMENT = - 'environment (a separate local copy of the app: `dev` unless `--environment` names another)'; + 'environment (a separate local copy of the app: the one named dev unless `--environment` names another)'; const PORTS_WHY = `\`dev\` takes no port options. Each ${ENVIRONMENT} gets its own ports for its services, ` + diff --git a/packages/0-framework/3-tooling/cli/src/family/family.ts b/packages/0-framework/3-tooling/cli/src/family/family.ts index c71afb8b6..1942ef444 100644 --- a/packages/0-framework/3-tooling/cli/src/family/family.ts +++ b/packages/0-framework/3-tooling/cli/src/family/family.ts @@ -98,7 +98,7 @@ function v7Flag(command: string, flag: string, entry: V7RedirectEntry): Redirect } const ENVIRONMENT = - 'environment (a separate local copy of the app: `dev` unless `--environment` names another)'; + 'environment (a separate local copy of the app: the one named dev unless `--environment` names another)'; const DEV_PORTS_REASON = `\`dev\` takes no port options. Each ${ENVIRONMENT} gets its own ports for its services, ` + From 6178645f54a5a0d95a77991e39059e5eb6bcedd2 Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 17:40:10 +0000 Subject: [PATCH 09/11] feat(cli): every v7 dev error says how to install and run Prisma 7's CLI The v7Command and v7Flag helpers end each reason with one sentence: install Prisma 7's CLI with npm install --save-dev @prisma/prisma7@7 and run prisma7 followed by the Prisma 7 invocation, which includes the flag for a flag entry. @prisma/prisma7 installs that CLI as a prisma7 binary next to Prisma 8's prisma. The tests assert the full reason, and the guide and the skill say what the errors add. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- docs/guides/running-locally.md | 3 +++ .../src/family/__tests__/v7-redirects.test.ts | 24 +++++++++++++++---- .../3-tooling/cli/src/family/family.ts | 16 +++++++++++-- skills/prisma-composer-core-concepts/SKILL.md | 5 +++- 4 files changed, 41 insertions(+), 7 deletions(-) diff --git a/docs/guides/running-locally.md b/docs/guides/running-locally.md index 30e780b79..c0d3d1e13 100644 --- a/docs/guides/running-locally.md +++ b/docs/guides/running-locally.md @@ -322,6 +322,9 @@ environment, and their data, then starts the app again. The flags point to the command's help. There is no port to pass: `prisma dev` gives each environment its own ports and keeps them between runs, and `prisma dev url` prints where a node answers. +Each error also says how to keep using Prisma 7: install its CLI with +`npm install --save-dev @prisma/prisma7@7` and run the same command with +`prisma7`, such as `prisma7 dev ls` or `prisma7 dev --port`. `--fresh` is also the fix when a framework upgrade leaves stale rows in this app's local dev state — the symptom is a plan-time error naming an diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts index b6679d7df..9ac10ee59 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts @@ -81,6 +81,10 @@ const FLAGS: Readonly> = { }, }; +function prisma7(invocation: string): string { + return `To keep using Prisma 7, install its CLI with \`npm install --save-dev @prisma/prisma7@7\` and run \`prisma7 ${invocation}\`.`; +} + function humanLines(stderr: string): string[] { return stderr.replace(ANSI, '').trimEnd().split('\n'); } @@ -126,7 +130,7 @@ describe('Prisma 7 dev subcommands', () => { expect(envelope.error.summary).toBe( `\`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, ); - expect(envelope.error.why).toBe(why); + expect(envelope.error.why).toBe(`${why} ${prisma7(path)}`); expect(envelope.nextActions).toEqual(nextActions); expect(envelope.error.nextActions).toEqual(nextActions); expect(calls.dev).toEqual([]); @@ -144,7 +148,7 @@ describe('Prisma 7 dev subcommands', () => { expect(result.stdout).toBe(''); expect(humanLines(result.stderr)).toEqual([ `✘ [CLI.V7_COMMAND] \`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, - ` why: ${why}`, + ` why: ${why} ${prisma7(path)}`, ...nextActions.map(actionLine), ]); }, @@ -179,7 +183,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { expect(envelope.error.summary).toBe( `\`--${flag}\` on \`${BIN} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, ); - expect(envelope.error.why).toBe(why); + expect(envelope.error.why).toBe(`${why} ${prisma7(invocation)}`); expect(envelope.nextActions).toEqual(nextActions); expect(envelope.error.nextActions).toEqual(nextActions); expect(calls.dev).toEqual([]); @@ -201,12 +205,24 @@ describe('Prisma 7 flags on dev and dev stop', () => { expect(result.stdout).toBe(''); expect(humanLines(result.stderr)).toEqual([ `✘ [CLI.V7_FLAG] \`--${flag}\` on \`${BIN} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, - ` why: ${why}`, + ` why: ${why} ${prisma7(invocation)}`, ...nextActions.map(actionLine), ]); }, ); + test('the Prisma 7 sentence names the flag and never suggests npx', async () => { + const { cli } = composerCli(); + + const result = await cli.run(['dev', 'stop', '--debug', '--json']); + + expect(failedEnvelope(result).error.why).toBe( + '`dev stop` has no debug output option. To keep using Prisma 7, install its CLI with ' + + '`npm install --save-dev @prisma/prisma7@7` and run `prisma7 dev stop --debug`.', + ); + expect(result.stdout).not.toContain('npx'); + }); + test('a v7 flag that takes a value settles the same way when it is given one', async () => { const { cli } = composerCli(); diff --git a/packages/0-framework/3-tooling/cli/src/family/family.ts b/packages/0-framework/3-tooling/cli/src/family/family.ts index 1942ef444..e2c597fab 100644 --- a/packages/0-framework/3-tooling/cli/src/family/family.ts +++ b/packages/0-framework/3-tooling/cli/src/family/family.ts @@ -76,7 +76,17 @@ function retiredStageFlagRedirect(command: string): RedirectSpec { }; } -type V7RedirectEntry = Omit; +type V7RedirectEntry = Omit & { + readonly reason: string; +}; + +function withPrisma7Cli(reason: string, invocation: string): string { + return `${reason} To keep using Prisma 7, install its CLI with \`npm install --save-dev @prisma/prisma7@7\` and run \`prisma7 ${invocation}\`.`; +} + +function kebabCase(flag: string): string { + return flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`); +} function v7Command(from: string, entry: V7RedirectEntry): RedirectSpec { return { @@ -84,6 +94,7 @@ function v7Command(from: string, entry: V7RedirectEntry): RedirectSpec { code: 'CLI.V7_COMMAND', summary: `\`{bin} ${from}\` is a Prisma 7 command and is not available in Prisma 8`, ...entry, + reason: withPrisma7Cli(entry.reason, from), }; } @@ -92,8 +103,9 @@ function v7Flag(command: string, flag: string, entry: V7RedirectEntry): Redirect from: command, flag, code: 'CLI.V7_FLAG', - summary: `\`--${flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}\` on \`{bin} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, + summary: `\`--${kebabCase(flag)}\` on \`{bin} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, ...entry, + reason: withPrisma7Cli(entry.reason, `${command} --${kebabCase(flag)}`), }; } diff --git a/skills/prisma-composer-core-concepts/SKILL.md b/skills/prisma-composer-core-concepts/SKILL.md index 945c88989..61f18cac3 100644 --- a/skills/prisma-composer-core-concepts/SKILL.md +++ b/skills/prisma-composer-core-concepts/SKILL.md @@ -620,7 +620,10 @@ that surprise: use `emulator list` for `dev ls`, `dev --detach` for `dev start`, and `dev --fresh` (deletes the app's local services, databases and buckets in one environment, and their data) for `dev rm`; the flags point to the - command's help. Ports cannot be set; ask `dev url` where a node answers. + command's help. Each error also says how to keep using Prisma 7: install + its CLI with `npm install --save-dev @prisma/prisma7@7` and run the same + command as `prisma7 …` (e.g. `prisma7 dev ls`). Ports cannot be set; ask + `dev url` where a node answers. For agents, scripts and CI, `prisma dev --detach` runs the app in the background: it exits 0 once every service answers and prints the URLs, does not watch for changes, and leaves the app running until From 99aa00ac766a177c0314442a09d3cdb4ef5bcae8 Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 17:48:45 +0000 Subject: [PATCH 10/11] fix(cli): each prisma7 invocation names the values Prisma 7 requires Prisma 7's dev rm, dev start and dev stop require a server name, and --port, --db-port and --shadow-db-port take a port, so the install sentence's prisma7 command failed when run as written. An entry can now give its Prisma 7 command line, and the sentence names prisma7 dev rm , prisma7 dev start , prisma7 dev stop --debug and prisma7 dev --port (and the same for the other two port flags). dev ls and dev --debug need no value. Checked against prisma7 dev --help and each subcommand's --help from @prisma/prisma7 7.10.1. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- docs/guides/running-locally.md | 5 +-- .../src/family/__tests__/v7-redirects.test.ts | 34 ++++++++++++------- .../3-tooling/cli/src/family/family.ts | 20 ++++++++--- skills/prisma-composer-core-concepts/SKILL.md | 5 +-- 4 files changed, 43 insertions(+), 21 deletions(-) diff --git a/docs/guides/running-locally.md b/docs/guides/running-locally.md index c0d3d1e13..3f0579bed 100644 --- a/docs/guides/running-locally.md +++ b/docs/guides/running-locally.md @@ -323,8 +323,9 @@ command's help. There is no port to pass: `prisma dev` gives each environment its own ports and keeps them between runs, and `prisma dev url` prints where a node answers. Each error also says how to keep using Prisma 7: install its CLI with -`npm install --save-dev @prisma/prisma7@7` and run the same command with -`prisma7`, such as `prisma7 dev ls` or `prisma7 dev --port`. +`npm install --save-dev @prisma/prisma7@7` and run the Prisma 7 command with +`prisma7`, with a placeholder for each value it needs, such as +`prisma7 dev rm ` or `prisma7 dev --port `. `--fresh` is also the fix when a framework upgrade leaves stale rows in this app's local dev state — the symptom is a plan-time error naming an diff --git a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts index 9ac10ee59..d60ea2a0c 100644 --- a/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts +++ b/packages/0-framework/3-tooling/cli/src/family/__tests__/v7-redirects.test.ts @@ -31,6 +31,7 @@ function help(path: string): NextAction { interface Expected { readonly why: string; + readonly prisma7: string; readonly nextActions: readonly NextAction[]; } @@ -45,12 +46,14 @@ const PORTS_WHY = const PATHS: Readonly> = { 'dev ls': { + prisma7: 'dev ls', why: '`emulator list` lists the local emulators on this machine, the programs `dev` starts to ' + "run the app's services, databases and buckets, with every instance each one holds.", nextActions: [step('Use the replacement', `${BIN} emulator list`), help('emulator list')], }, 'dev rm': { + prisma7: 'dev rm ', why: "`dev --fresh` deletes this app's local services, databases and buckets, and their data, " + `in one ${ENVIRONMENT}, then starts the app again. \`dev stop\` only stops the app's ` + @@ -58,6 +61,7 @@ const PATHS: Readonly> = { nextActions: [step('Use the replacement', `${BIN} dev --fresh`), help('dev')], }, 'dev start': { + prisma7: 'dev start ', why: '`dev --detach` runs the app locally in the background: it returns once every service ' + 'answers and leaves the app running, without watching for changes, until `dev stop`.', @@ -66,16 +70,22 @@ const PATHS: Readonly> = { }; const FLAGS: Readonly> = { - 'dev --port': { why: PORTS_WHY, nextActions: [help('dev')] }, - 'dev --db-port': { why: PORTS_WHY, nextActions: [help('dev')] }, - 'dev --shadow-db-port': { why: PORTS_WHY, nextActions: [help('dev')] }, + 'dev --port': { why: PORTS_WHY, prisma7: 'dev --port ', nextActions: [help('dev')] }, + 'dev --db-port': { why: PORTS_WHY, prisma7: 'dev --db-port ', nextActions: [help('dev')] }, + 'dev --shadow-db-port': { + why: PORTS_WHY, + prisma7: 'dev --shadow-db-port ', + nextActions: [help('dev')], + }, 'dev --debug': { + prisma7: 'dev --debug', why: '`dev` has no debug output option. It shows the output of each service that runs a dev ' + "server, such as `next dev`, prefixed with the service's address.", nextActions: [help('dev')], }, 'dev stop --debug': { + prisma7: 'dev stop --debug', why: '`dev stop` has no debug output option.', nextActions: [help('dev stop')], }, @@ -118,7 +128,7 @@ describe('Prisma 7 dev subcommands', () => { test.each(Object.entries(PATHS))( '`%s` settles as CLI.V7_COMMAND in --json output', - async (path, { why, nextActions }) => { + async (path, { why, prisma7: invocation, nextActions }) => { const { cli, calls } = composerCli(); const result = await cli.run([...path.split(' '), '--json']); @@ -130,7 +140,7 @@ describe('Prisma 7 dev subcommands', () => { expect(envelope.error.summary).toBe( `\`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, ); - expect(envelope.error.why).toBe(`${why} ${prisma7(path)}`); + expect(envelope.error.why).toBe(`${why} ${prisma7(invocation)}`); expect(envelope.nextActions).toEqual(nextActions); expect(envelope.error.nextActions).toEqual(nextActions); expect(calls.dev).toEqual([]); @@ -139,7 +149,7 @@ describe('Prisma 7 dev subcommands', () => { test.each(Object.entries(PATHS))( '`%s` settles as CLI.V7_COMMAND in human output', - async (path, { why, nextActions }) => { + async (path, { why, prisma7: invocation, nextActions }) => { const { cli } = composerCli(); const result = await cli.run(path.split(' '), { isTty: { stdout: true, stderr: true } }); @@ -148,7 +158,7 @@ describe('Prisma 7 dev subcommands', () => { expect(result.stdout).toBe(''); expect(humanLines(result.stderr)).toEqual([ `✘ [CLI.V7_COMMAND] \`${BIN} ${path}\` is a Prisma 7 command and is not available in Prisma 8`, - ` why: ${why} ${prisma7(path)}`, + ` why: ${why} ${prisma7(invocation)}`, ...nextActions.map(actionLine), ]); }, @@ -170,7 +180,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { test.each(Object.entries(FLAGS))( '`%s` settles as CLI.V7_FLAG in --json output', - async (invocation, { why, nextActions }) => { + async (invocation, { why, prisma7: prisma7Invocation, nextActions }) => { const { cli, calls } = composerCli(); const { command, flag } = splitFlagCase(invocation); @@ -183,7 +193,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { expect(envelope.error.summary).toBe( `\`--${flag}\` on \`${BIN} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, ); - expect(envelope.error.why).toBe(`${why} ${prisma7(invocation)}`); + expect(envelope.error.why).toBe(`${why} ${prisma7(prisma7Invocation)}`); expect(envelope.nextActions).toEqual(nextActions); expect(envelope.error.nextActions).toEqual(nextActions); expect(calls.dev).toEqual([]); @@ -193,7 +203,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { test.each(Object.entries(FLAGS))( '`%s` settles as CLI.V7_FLAG in human output', - async (invocation, { why, nextActions }) => { + async (invocation, { why, prisma7: prisma7Invocation, nextActions }) => { const { cli } = composerCli(); const { command, flag } = splitFlagCase(invocation); @@ -205,7 +215,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { expect(result.stdout).toBe(''); expect(humanLines(result.stderr)).toEqual([ `✘ [CLI.V7_FLAG] \`--${flag}\` on \`${BIN} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, - ` why: ${why} ${prisma7(invocation)}`, + ` why: ${why} ${prisma7(prisma7Invocation)}`, ...nextActions.map(actionLine), ]); }, @@ -218,7 +228,7 @@ describe('Prisma 7 flags on dev and dev stop', () => { expect(failedEnvelope(result).error.why).toBe( '`dev stop` has no debug output option. To keep using Prisma 7, install its CLI with ' + - '`npm install --save-dev @prisma/prisma7@7` and run `prisma7 dev stop --debug`.', + '`npm install --save-dev @prisma/prisma7@7` and run `prisma7 dev stop --debug`.', ); expect(result.stdout).not.toContain('npx'); }); diff --git a/packages/0-framework/3-tooling/cli/src/family/family.ts b/packages/0-framework/3-tooling/cli/src/family/family.ts index e2c597fab..12dcefd52 100644 --- a/packages/0-framework/3-tooling/cli/src/family/family.ts +++ b/packages/0-framework/3-tooling/cli/src/family/family.ts @@ -78,6 +78,7 @@ function retiredStageFlagRedirect(command: string): RedirectSpec { type V7RedirectEntry = Omit & { readonly reason: string; + readonly prisma7?: string; }; function withPrisma7Cli(reason: string, invocation: string): string { @@ -89,23 +90,25 @@ function kebabCase(flag: string): string { } function v7Command(from: string, entry: V7RedirectEntry): RedirectSpec { + const { prisma7 = from, ...rest } = entry; return { from, code: 'CLI.V7_COMMAND', summary: `\`{bin} ${from}\` is a Prisma 7 command and is not available in Prisma 8`, - ...entry, - reason: withPrisma7Cli(entry.reason, from), + ...rest, + reason: withPrisma7Cli(entry.reason, prisma7), }; } function v7Flag(command: string, flag: string, entry: V7RedirectEntry): RedirectSpec { + const { prisma7 = `${command} --${kebabCase(flag)}`, ...rest } = entry; return { from: command, flag, code: 'CLI.V7_FLAG', summary: `\`--${kebabCase(flag)}\` on \`{bin} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`, - ...entry, - reason: withPrisma7Cli(entry.reason, `${command} --${kebabCase(flag)}`), + ...rest, + reason: withPrisma7Cli(entry.reason, prisma7), }; } @@ -127,6 +130,7 @@ const V7_REDIRECTS: readonly RedirectSpec[] = [ "run the app's services, databases and buckets, with every instance each one holds.", }), v7Command('dev rm', { + prisma7: 'dev rm ', replacement: '{bin} dev --fresh', help: 'dev', reason: @@ -135,6 +139,7 @@ const V7_REDIRECTS: readonly RedirectSpec[] = [ "app's service processes and local database servers, and keeps their data.", }), v7Command('dev start', { + prisma7: 'dev start ', replacement: '{bin} dev --detach', help: 'dev', reason: @@ -142,7 +147,11 @@ const V7_REDIRECTS: readonly RedirectSpec[] = [ 'answers and leaves the app running, without watching for changes, until `dev stop`.', }), ...['port', 'dbPort', 'shadowDbPort'].map((flag) => - v7Flag('dev', flag, { help: 'dev', reason: DEV_PORTS_REASON }), + v7Flag('dev', flag, { + prisma7: `dev --${kebabCase(flag)} `, + help: 'dev', + reason: DEV_PORTS_REASON, + }), ), v7Flag('dev', 'debug', { help: 'dev', @@ -151,6 +160,7 @@ const V7_REDIRECTS: readonly RedirectSpec[] = [ "server, such as `next dev`, prefixed with the service's address.", }), v7Flag('dev stop', 'debug', { + prisma7: 'dev stop --debug', help: 'dev stop', reason: '`dev stop` has no debug output option.', }), diff --git a/skills/prisma-composer-core-concepts/SKILL.md b/skills/prisma-composer-core-concepts/SKILL.md index 61f18cac3..6acb76d3c 100644 --- a/skills/prisma-composer-core-concepts/SKILL.md +++ b/skills/prisma-composer-core-concepts/SKILL.md @@ -621,8 +621,9 @@ that surprise: `dev --fresh` (deletes the app's local services, databases and buckets in one environment, and their data) for `dev rm`; the flags point to the command's help. Each error also says how to keep using Prisma 7: install - its CLI with `npm install --save-dev @prisma/prisma7@7` and run the same - command as `prisma7 …` (e.g. `prisma7 dev ls`). Ports cannot be set; ask + its CLI with `npm install --save-dev @prisma/prisma7@7` and run the + Prisma 7 command as `prisma7 …`, with a placeholder for each value it + needs (e.g. `prisma7 dev rm `). Ports cannot be set; ask `dev url` where a node answers. For agents, scripts and CI, `prisma dev --detach` runs the app in the background: it exits 0 once every service answers and prints the URLs, From 51de17bf06adf7da7b42e617ca3efe91086a2ebe Mon Sep 17 00:00:00 2001 From: Steven McClankerton Date: Fri, 13 Nov 2026 18:24:09 +0000 Subject: [PATCH 11/11] fix(e2e): the deploy list check mounts the whole Composer family e2e-verify-deploy-list.ts mounted only deploy and deploy list. The family's Prisma 7 flag redirects name dev and dev stop, and the engine refuses a flag redirect whose command is not mounted, so building the CLI threw "redirect for flag 'port' names 'dev', which is not a mounted command" in the Deploy, verify, destroy job. The script now mounts every command of the family with the deploy, dev and emulator groups, as the prisma host does. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven McClankerton --- scripts/e2e-verify-deploy-list.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/e2e-verify-deploy-list.ts b/scripts/e2e-verify-deploy-list.ts index 48b0ceed7..6d0b4af92 100644 --- a/scripts/e2e-verify-deploy-list.ts +++ b/scripts/e2e-verify-deploy-list.ts @@ -6,8 +6,10 @@ * * The installed `prisma` does not mount `deploy list` yet, so this mounts * Composer's command family itself, the way the `prisma` host does, with a - * service-token credential and no OAuth login. It mounts `deploy` too, because - * the family retires `--stage` on it and a redirect must name a mounted command. It also declares the ORM's config + * service-token credential and no OAuth login. It mounts every command of the + * family with the `deploy`, `dev` and `emulator` groups, because the family's flag + * redirects name `deploy`, `dev` and `dev stop`, and the engine refuses a flag + * redirect whose command is not mounted. It also declares the ORM's config * section, so a config with an `orm` section loads. * * Env: STACK_NAME (the `prisma deploy --name` value), PRISMA_SERVICE_TOKEN, @@ -37,10 +39,8 @@ const apiBaseUrl = process.env['PRISMA_MANAGEMENT_API_URL']?.trim() || 'https:// async function runDeployList(args: readonly string[]): Promise { const family = createComposerFamily(); - const command = family.commands['deploy list']; - const deploy = family.commands['deploy']; - if (command === undefined || deploy === undefined) { - throw new Error('the Composer command family has no deploy or deploy list'); + if (family.commands['deploy list'] === undefined) { + throw new Error('the Composer command family has no deploy list'); } const cli = createCli({ name: 'prisma', @@ -49,8 +49,12 @@ async function runDeployList(args: readonly string[]): Promise { family, defineCommandFamily({ configSection: ormConfigSection, commands: {} }), ], - groups: { deploy: { brief: 'Deploy the app.' } }, - commands: { deploy, 'deploy list': command }, + groups: { + deploy: { brief: 'Deploy the app.' }, + dev: { brief: 'Run the app on this machine.' }, + emulator: { brief: 'The local emulators on this machine.' }, + }, + commands: family.commands, }); let stdout = '';