@prisma-next/cli 0.1.0-pr.72.2 → 0.3.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +14 -4
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -23,6 +23,20 @@ Provide a command-line interface that:
23
23
  - **Help Output Formatting**: Custom styled help output with command trees and formatted descriptions
24
24
  - **Config Management**: Load and validate `prisma-next.config.ts` files using Arktype validation
25
25
 
26
+ ### Wiring validation
27
+
28
+ The CLI performs **wiring validation** at the composition boundary: it ensures the emitted contract artifacts are compatible with the descriptors wired in `prisma-next.config.ts`.
29
+
30
+ This prevents runtime mismatches (for example: a contract that declares extension packs, but a config that doesn’t provide the matching descriptors).
31
+
32
+ Commands that enforce wiring validation:
33
+ - **`db verify`**
34
+ - **`db introspect`** (when a contract is provided)
35
+ - **`db sign`**
36
+ - **`db init`**
37
+
38
+ If you hit a wiring validation error: add the required descriptors to `config.extensionPacks` (matched by descriptor `id`) and re-run the command.
39
+
26
40
  **Note**: Control plane domain actions (database verification, contract emission) are implemented in `@prisma-next/core-control-plane`. The CLI uses the control plane domain actions programmatically but does not define control plane types itself.
27
41
 
28
42
  ## Command Descriptions
@@ -130,8 +144,6 @@ prisma-next db verify -v --timestamps
130
144
 
131
145
  The `db verify` command requires a `driver` in the config to connect to the database:
132
146
 
133
- If your emitted `contract.json` declares `extensionPacks`, your config must include matching descriptors in `extensionPacks` (by `id`). The CLI validates this wiring before running the command.
134
-
135
147
  ```typescript
136
148
  import { defineConfig } from '@prisma-next/cli/config-types';
137
149
  import postgresAdapter from '@prisma-next/adapter-postgres/control';
@@ -648,8 +660,6 @@ prisma-next db init --json
648
660
 
649
661
  The `db init` command requires a `driver` in the config to connect to the database:
650
662
 
651
- If your emitted `contract.json` declares `extensionPacks`, your config must include matching descriptors in `extensionPacks` (by `id`). The CLI validates this wiring before running the command.
652
-
653
663
  ```typescript
654
664
  import { defineConfig } from '@prisma-next/cli/config-types';
655
665
  import postgresAdapter from '@prisma-next/adapter-postgres/control';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma-next/cli",
3
- "version": "0.1.0-pr.72.2",
3
+ "version": "0.3.0-dev.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -19,10 +19,10 @@
19
19
  "string-width": "^7.2.0",
20
20
  "strip-ansi": "^7.1.2",
21
21
  "wrap-ansi": "^9.0.2",
22
- "@prisma-next/contract": "0.1.0-pr.72.2",
23
- "@prisma-next/core-control-plane": "0.1.0-pr.72.2",
24
- "@prisma-next/emitter": "0.1.0-pr.72.2",
25
- "@prisma-next/utils": "0.1.0-pr.72.2"
22
+ "@prisma-next/contract": "0.3.0-dev.1",
23
+ "@prisma-next/core-control-plane": "0.3.0-dev.1",
24
+ "@prisma-next/emitter": "0.3.0-dev.1",
25
+ "@prisma-next/utils": "0.3.0-dev.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "24.10.4",
@@ -31,11 +31,11 @@
31
31
  "typescript": "^5.9.3",
32
32
  "vite-tsconfig-paths": "^5.1.4",
33
33
  "vitest": "^4.0.16",
34
- "@prisma-next/sql-contract": "0.1.0-pr.72.2",
35
- "@prisma-next/sql-contract-emitter": "0.1.0-pr.72.2",
36
- "@prisma-next/sql-contract-ts": "0.1.0-pr.72.2",
37
- "@prisma-next/sql-operations": "0.1.0-pr.72.2",
38
- "@prisma-next/sql-runtime": "0.1.0-pr.72.2",
34
+ "@prisma-next/sql-contract": "0.3.0-dev.1",
35
+ "@prisma-next/sql-contract-emitter": "0.3.0-dev.1",
36
+ "@prisma-next/sql-contract-ts": "0.3.0-dev.1",
37
+ "@prisma-next/sql-operations": "0.3.0-dev.1",
38
+ "@prisma-next/sql-runtime": "0.3.0-dev.1",
39
39
  "@prisma-next/test-utils": "0.0.1"
40
40
  },
41
41
  "exports": {