@prisma-next/core-control-plane 0.3.0-pr.80.2 → 0.3.0-pr.80.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This package provides the core domain logic for control plane operations (contra
|
|
|
9
9
|
## Responsibilities
|
|
10
10
|
|
|
11
11
|
- **Config Types**: Type definitions for Prisma Next configuration (`PrismaNextConfig`, `ControlFamilyDescriptor`, `ControlTargetDescriptor`, `ControlAdapterDescriptor`, `ControlDriverDescriptor`, `ControlExtensionDescriptor`)
|
|
12
|
-
- **ControlPlaneStack**: A struct bundling `target`, `adapter`, `driver`, and `extensionPacks` for
|
|
12
|
+
- **ControlPlaneStack**: A struct bundling `target`, `adapter`, `driver`, and `extensionPacks` for control plane operations. Use `createControlPlaneStack()` to construct with sensible defaults.
|
|
13
13
|
- **Config Validation**: Pure validation logic for config structure (no file I/O)
|
|
14
14
|
- **Config Normalization**: `defineConfig()` function for normalizing config with defaults
|
|
15
15
|
- **Domain Actions**:
|
|
@@ -72,7 +72,7 @@ validateConfig(config);
|
|
|
72
72
|
|
|
73
73
|
### ControlPlaneStack
|
|
74
74
|
|
|
75
|
-
The `ControlPlaneStack` bundles component descriptors for
|
|
75
|
+
The `ControlPlaneStack` bundles component descriptors for control plane operations (creating family instances, running CLI commands, connecting to databases):
|
|
76
76
|
|
|
77
77
|
```typescript
|
|
78
78
|
import { createControlPlaneStack } from '@prisma-next/core-control-plane/stack';
|
|
@@ -86,8 +86,10 @@ const stack = createControlPlaneStack({
|
|
|
86
86
|
extensionPacks: [pgvector], // optional, defaults to []
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
//
|
|
89
|
+
// Use stack for family instance creation
|
|
90
90
|
const familyInstance = config.family.create(stack);
|
|
91
|
+
|
|
92
|
+
// Stack is also used internally by ControlClient and CLI commands
|
|
91
93
|
```
|
|
92
94
|
|
|
93
95
|
**Stack shape after construction:**
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/core-control-plane",
|
|
3
|
-
"version": "0.3.0-pr.80.
|
|
3
|
+
"version": "0.3.0-pr.80.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Control plane domain actions, config types, validation, and error factories for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"arktype": "^2.1.26",
|
|
9
9
|
"prettier": "^3.3.3",
|
|
10
|
-
"@prisma-next/contract": "0.3.0-pr.80.
|
|
11
|
-
"@prisma-next/
|
|
12
|
-
"@prisma-next/
|
|
10
|
+
"@prisma-next/contract": "0.3.0-pr.80.4",
|
|
11
|
+
"@prisma-next/operations": "0.3.0-pr.80.4",
|
|
12
|
+
"@prisma-next/utils": "0.3.0-pr.80.4"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@vitest/coverage-v8": "4.0.16",
|