@prisma-next/core-control-plane 0.3.0-pr.94.3 → 0.3.0-pr.95.2
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/dist/chunk-YT6YGR3N.js +240 -0
- package/dist/chunk-YT6YGR3N.js.map +1 -0
- package/dist/config-types.d.ts +79 -0
- package/dist/config-types.d.ts.map +1 -0
- package/dist/config-validation.d.ts +10 -0
- package/dist/config-validation.d.ts.map +1 -0
- package/dist/emission/canonicalization.d.ts +6 -0
- package/dist/emission/canonicalization.d.ts.map +1 -0
- package/dist/emission/emit.d.ts +5 -0
- package/dist/emission/emit.d.ts.map +1 -0
- package/dist/emission/hashing.d.ts +17 -0
- package/dist/emission/hashing.d.ts.map +1 -0
- package/dist/emission/types.d.ts +21 -0
- package/dist/emission/types.d.ts.map +1 -0
- package/dist/errors.d.ts +188 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/exports/config-types.d.ts +3 -0
- package/dist/exports/config-types.d.ts.map +1 -0
- package/dist/exports/config-types.js +53 -0
- package/dist/exports/config-types.js.map +1 -0
- package/dist/exports/config-validation.d.ts +2 -0
- package/dist/exports/config-validation.d.ts.map +1 -0
- package/dist/exports/config-validation.js +252 -0
- package/dist/exports/config-validation.js.map +1 -0
- package/dist/exports/emission.d.ts +5 -0
- package/dist/exports/emission.d.ts.map +1 -0
- package/dist/exports/emission.js +317 -0
- package/dist/exports/emission.js.map +1 -0
- package/dist/exports/errors.d.ts +3 -0
- package/dist/exports/errors.d.ts.map +1 -0
- package/dist/exports/errors.js +43 -0
- package/dist/exports/errors.js.map +1 -0
- package/dist/exports/schema-view.d.ts +2 -0
- package/dist/exports/schema-view.d.ts.map +1 -0
- package/dist/exports/schema-view.js +1 -0
- package/dist/exports/schema-view.js.map +1 -0
- package/dist/exports/stack.d.ts +2 -0
- package/dist/exports/stack.d.ts.map +1 -0
- package/dist/exports/stack.js +13 -0
- package/dist/exports/stack.js.map +1 -0
- package/dist/exports/types.d.ts +2 -0
- package/dist/exports/types.d.ts.map +1 -0
- package/dist/exports/types.js +1 -0
- package/dist/exports/types.js.map +1 -0
- package/dist/migrations.d.ts +190 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/{schema-view-BG_ebqoV.d.mts → schema-view.d.ts} +10 -13
- package/dist/schema-view.d.ts.map +1 -0
- package/dist/stack.d.ts +25 -0
- package/dist/stack.d.ts.map +1 -0
- package/dist/types.d.ts +416 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +36 -20
- package/src/emission/emit.ts +8 -1
- package/src/emission/types.ts +6 -1
- package/dist/config-types-h9ifypQ0.d.mts +0 -79
- package/dist/config-types-h9ifypQ0.d.mts.map +0 -1
- package/dist/config-types.d.mts +0 -2
- package/dist/config-types.mjs +0 -65
- package/dist/config-types.mjs.map +0 -1
- package/dist/config-validation.d.mts +0 -15
- package/dist/config-validation.d.mts.map +0 -1
- package/dist/config-validation.mjs +0 -79
- package/dist/config-validation.mjs.map +0 -1
- package/dist/emission.d.mts +0 -47
- package/dist/emission.d.mts.map +0 -1
- package/dist/emission.mjs +0 -255
- package/dist/emission.mjs.map +0 -1
- package/dist/errors-Qlh0sdcb.mjs +0 -276
- package/dist/errors-Qlh0sdcb.mjs.map +0 -1
- package/dist/errors.d.mts +0 -191
- package/dist/errors.d.mts.map +0 -1
- package/dist/errors.mjs +0 -3
- package/dist/schema-view-BG_ebqoV.d.mts.map +0 -1
- package/dist/schema-view.d.mts +0 -2
- package/dist/schema-view.mjs +0 -1
- package/dist/stack.d.mts +0 -30
- package/dist/stack.d.mts.map +0 -1
- package/dist/stack.mjs +0 -30
- package/dist/stack.mjs.map +0 -1
- package/dist/types-CsaU_uQP.d.mts +0 -595
- package/dist/types-CsaU_uQP.d.mts.map +0 -1
- package/dist/types.d.mts +0 -2
- package/dist/types.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../src/migrations.ts"],"names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SAAS,CAAC;IAE3F,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC/E,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;CAC9E"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/schema-view.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Core schema view types for family-agnostic schema visualization.
|
|
4
3
|
*
|
|
@@ -65,25 +64,23 @@
|
|
|
65
64
|
* Node kinds for schema tree nodes.
|
|
66
65
|
* Designed to be generic enough for SQL, document, KV, and future families.
|
|
67
66
|
*/
|
|
68
|
-
type SchemaNodeKind = 'root' | 'namespace' | 'collection' | 'entity' | 'field' | 'index' | 'extension';
|
|
67
|
+
export type SchemaNodeKind = 'root' | 'namespace' | 'collection' | 'entity' | 'field' | 'index' | 'extension';
|
|
69
68
|
/**
|
|
70
69
|
* A node in the schema tree.
|
|
71
70
|
* Tree-shaped structure good for Command Tree-style CLI output.
|
|
72
71
|
*/
|
|
73
|
-
interface SchemaTreeNode {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
export interface SchemaTreeNode {
|
|
73
|
+
readonly kind: SchemaNodeKind;
|
|
74
|
+
readonly id: string;
|
|
75
|
+
readonly label: string;
|
|
76
|
+
readonly meta?: Record<string, unknown>;
|
|
77
|
+
readonly children?: readonly SchemaTreeNode[];
|
|
79
78
|
}
|
|
80
79
|
/**
|
|
81
80
|
* Core schema view providing a family-agnostic tree representation of a schema.
|
|
82
81
|
* Used by CLI and cross-family tooling for visualization.
|
|
83
82
|
*/
|
|
84
|
-
interface CoreSchemaView {
|
|
85
|
-
|
|
83
|
+
export interface CoreSchemaView {
|
|
84
|
+
readonly root: SchemaTreeNode;
|
|
86
85
|
}
|
|
87
|
-
//#
|
|
88
|
-
export { SchemaNodeKind as n, SchemaTreeNode as r, CoreSchemaView as t };
|
|
89
|
-
//# sourceMappingURL=schema-view-BG_ebqoV.d.mts.map
|
|
86
|
+
//# sourceMappingURL=schema-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-view.d.ts","sourceRoot":"","sources":["../src/schema-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,OAAO,GACP,WAAW,CAAC;AAEhB;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;CAC/C;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CAC/B"}
|
package/dist/stack.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ControlAdapterDescriptor, ControlDriverDescriptor, ControlExtensionDescriptor, ControlPlaneStack, ControlTargetDescriptor } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a ControlPlaneStack from component descriptors.
|
|
4
|
+
*
|
|
5
|
+
* Provides sensible defaults:
|
|
6
|
+
* - `driver` defaults to `undefined` (optional for commands that don't need DB connection)
|
|
7
|
+
* - `extensionPacks` defaults to `[]` (empty array)
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const stack = createControlPlaneStack({
|
|
12
|
+
* target: postgresTarget,
|
|
13
|
+
* adapter: postgresAdapter,
|
|
14
|
+
* driver: postgresDriver, // optional
|
|
15
|
+
* extensionPacks: [pgvector], // optional
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function createControlPlaneStack<TFamilyId extends string, TTargetId extends string>(input: {
|
|
20
|
+
readonly target: ControlTargetDescriptor<TFamilyId, TTargetId>;
|
|
21
|
+
readonly adapter: ControlAdapterDescriptor<TFamilyId, TTargetId>;
|
|
22
|
+
readonly driver?: ControlDriverDescriptor<TFamilyId, TTargetId> | undefined;
|
|
23
|
+
readonly extensionPacks?: readonly ControlExtensionDescriptor<TFamilyId, TTargetId>[] | undefined;
|
|
24
|
+
}): ControlPlaneStack<TFamilyId, TTargetId>;
|
|
25
|
+
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../src/stack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM,EAAE,KAAK,EAAE;IACjG,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC/D,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,SAAS,CAAC;IAC5E,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,0BAA0B,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC;CACnG,GAAG,iBAAiB,CAAC,SAAS,EAAE,SAAS,CAAC,CAO1C"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import type { AdapterDescriptor, AdapterInstance, DriverDescriptor, DriverInstance, ExtensionDescriptor, ExtensionInstance, FamilyDescriptor, FamilyInstance, TargetBoundComponentDescriptor, TargetDescriptor, TargetInstance } from '@prisma-next/contract/framework-components';
|
|
2
|
+
import type { ContractIR } from '@prisma-next/contract/ir';
|
|
3
|
+
import type { ContractMarkerRecord, TargetFamilyHook } from '@prisma-next/contract/types';
|
|
4
|
+
import type { TargetMigrationsCapability } from './migrations';
|
|
5
|
+
import type { CoreSchemaView } from './schema-view';
|
|
6
|
+
export type { MigrationOperationClass, MigrationOperationPolicy, MigrationPlan, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerResult, MigrationPlannerSuccessResult, MigrationPlanOperation, MigrationRunner, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerResult, MigrationRunnerSuccessValue, TargetMigrationsCapability, } from './migrations';
|
|
7
|
+
/**
|
|
8
|
+
* Control-plane family instance interface.
|
|
9
|
+
* Extends the base FamilyInstance with control-plane domain actions.
|
|
10
|
+
*
|
|
11
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
12
|
+
* @template TSchemaIR - The schema IR type returned by introspect() (family-specific)
|
|
13
|
+
*/
|
|
14
|
+
export interface ControlFamilyInstance<TFamilyId extends string, TSchemaIR = unknown> extends FamilyInstance<TFamilyId> {
|
|
15
|
+
/**
|
|
16
|
+
* Validates a contract JSON and returns a validated ContractIR (without mappings).
|
|
17
|
+
* Mappings are runtime-only and should not be part of ContractIR.
|
|
18
|
+
*
|
|
19
|
+
* Note: The returned ContractIR may include additional fields from the emitted contract
|
|
20
|
+
* (like coreHash, profileHash) that are not part of the ContractIR type but are preserved
|
|
21
|
+
* for use by verify/sign operations.
|
|
22
|
+
*/
|
|
23
|
+
validateContractIR(contractJson: unknown): ContractIR;
|
|
24
|
+
/**
|
|
25
|
+
* Verifies the database marker against the contract.
|
|
26
|
+
* Compares target, coreHash, and profileHash.
|
|
27
|
+
*
|
|
28
|
+
* @param options.contractIR - The validated contract (from validateContractIR). Must have
|
|
29
|
+
* coreHash and target fields for verification. These fields are present in emitted
|
|
30
|
+
* contracts but not in the ContractIR type definition.
|
|
31
|
+
*/
|
|
32
|
+
verify(options: {
|
|
33
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
34
|
+
readonly contractIR: unknown;
|
|
35
|
+
readonly expectedTargetId: string;
|
|
36
|
+
readonly contractPath: string;
|
|
37
|
+
readonly configPath?: string;
|
|
38
|
+
}): Promise<VerifyDatabaseResult>;
|
|
39
|
+
/**
|
|
40
|
+
* Verifies the database schema against the contract.
|
|
41
|
+
* Compares contract requirements against live database schema.
|
|
42
|
+
*/
|
|
43
|
+
schemaVerify(options: {
|
|
44
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
45
|
+
readonly contractIR: unknown;
|
|
46
|
+
readonly strict: boolean;
|
|
47
|
+
readonly contractPath: string;
|
|
48
|
+
readonly configPath?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Active framework components participating in this composition.
|
|
51
|
+
* All components must have matching familyId and targetId.
|
|
52
|
+
*/
|
|
53
|
+
readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, string>>;
|
|
54
|
+
}): Promise<VerifyDatabaseSchemaResult>;
|
|
55
|
+
/**
|
|
56
|
+
* Signs the database with the contract marker.
|
|
57
|
+
* Writes or updates the contract marker if schema verification passes.
|
|
58
|
+
* This operation is idempotent - if the marker already matches, no changes are made.
|
|
59
|
+
*/
|
|
60
|
+
sign(options: {
|
|
61
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
62
|
+
readonly contractIR: unknown;
|
|
63
|
+
readonly contractPath: string;
|
|
64
|
+
readonly configPath?: string;
|
|
65
|
+
}): Promise<SignDatabaseResult>;
|
|
66
|
+
/**
|
|
67
|
+
* Reads the contract marker from the database.
|
|
68
|
+
* Returns null if no marker exists.
|
|
69
|
+
*/
|
|
70
|
+
readMarker(options: {
|
|
71
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
72
|
+
}): Promise<ContractMarkerRecord | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Introspects the database schema and returns a family-specific schema IR.
|
|
75
|
+
*
|
|
76
|
+
* This is a read-only operation that returns a snapshot of the live database schema.
|
|
77
|
+
* The method is family-owned and delegates to target/adapter-specific introspectors
|
|
78
|
+
* to perform the actual schema introspection.
|
|
79
|
+
*
|
|
80
|
+
* @param options - Introspection options
|
|
81
|
+
* @param options.driver - Control plane driver for database connection
|
|
82
|
+
* @param options.contractIR - Optional contract for contract-guided introspection.
|
|
83
|
+
* When provided, families may use it for filtering, optimization, or validation
|
|
84
|
+
* during introspection. The contract does not change the meaning of "what exists"
|
|
85
|
+
* in the database - it only guides how introspection is performed.
|
|
86
|
+
* @returns Promise resolving to the family-specific Schema IR (e.g., `SqlSchemaIR` for SQL).
|
|
87
|
+
* The IR represents the complete schema snapshot at the time of introspection.
|
|
88
|
+
*/
|
|
89
|
+
introspect(options: {
|
|
90
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
91
|
+
readonly contractIR?: unknown;
|
|
92
|
+
}): Promise<TSchemaIR>;
|
|
93
|
+
/**
|
|
94
|
+
* Optionally projects a family-specific Schema IR into a core schema view.
|
|
95
|
+
* Families that provide this method enable rich tree output for CLI visualization.
|
|
96
|
+
* Families that do not provide it still support introspection via raw Schema IR.
|
|
97
|
+
*/
|
|
98
|
+
toSchemaView?(schema: TSchemaIR): CoreSchemaView;
|
|
99
|
+
/**
|
|
100
|
+
* Emits contract JSON and DTS as strings.
|
|
101
|
+
* Uses the instance's preassembled state (operation registry, type imports, extension IDs).
|
|
102
|
+
* Handles stripping mappings and validation internally.
|
|
103
|
+
*/
|
|
104
|
+
emitContract(options: {
|
|
105
|
+
readonly contractIR: ContractIR | unknown;
|
|
106
|
+
}): Promise<EmitContractResult>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Control-plane target instance interface.
|
|
110
|
+
* Extends the base TargetInstance with control-plane specific behavior.
|
|
111
|
+
*
|
|
112
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
113
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
114
|
+
*/
|
|
115
|
+
export interface ControlTargetInstance<TFamilyId extends string, TTargetId extends string> extends TargetInstance<TFamilyId, TTargetId> {
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Control-plane adapter instance interface.
|
|
119
|
+
* Extends the base AdapterInstance with control-plane specific behavior.
|
|
120
|
+
* Families extend this with family-specific adapter interfaces.
|
|
121
|
+
*
|
|
122
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
123
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
124
|
+
*/
|
|
125
|
+
export interface ControlAdapterInstance<TFamilyId extends string, TTargetId extends string> extends AdapterInstance<TFamilyId, TTargetId> {
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Control-plane driver instance interface.
|
|
129
|
+
* Extends the base DriverInstance with control-plane specific behavior.
|
|
130
|
+
*
|
|
131
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
132
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
133
|
+
*/
|
|
134
|
+
export interface ControlDriverInstance<TFamilyId extends string, TTargetId extends string> extends DriverInstance<TFamilyId, TTargetId> {
|
|
135
|
+
query<Row = Record<string, unknown>>(sql: string, params?: readonly unknown[]): Promise<{
|
|
136
|
+
readonly rows: Row[];
|
|
137
|
+
}>;
|
|
138
|
+
close(): Promise<void>;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Control-plane extension instance interface.
|
|
142
|
+
* Extends the base ExtensionInstance with control-plane specific behavior.
|
|
143
|
+
*
|
|
144
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
145
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
146
|
+
*/
|
|
147
|
+
export interface ControlExtensionInstance<TFamilyId extends string, TTargetId extends string> extends ExtensionInstance<TFamilyId, TTargetId> {
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Operation context for propagating metadata through control-plane operation call chains.
|
|
151
|
+
* Inspired by OpenTelemetry's Context and Sentry's Scope patterns.
|
|
152
|
+
*
|
|
153
|
+
* This context carries informational metadata (like file paths) that can be used for
|
|
154
|
+
* error reporting, logging, and debugging, but is not required for structural correctness.
|
|
155
|
+
* It allows subsystems to propagate context without coupling to file I/O concerns.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```typescript
|
|
159
|
+
* const context: OperationContext = {
|
|
160
|
+
* contractPath: './contract.json',
|
|
161
|
+
* configPath: './prisma-next.config.ts',
|
|
162
|
+
* };
|
|
163
|
+
*
|
|
164
|
+
* await runner.execute({ plan, driver, destinationContract: contract, context });
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
export interface OperationContext {
|
|
168
|
+
/**
|
|
169
|
+
* Path to the contract file (if applicable).
|
|
170
|
+
* Used for error reporting and metadata, not for file I/O.
|
|
171
|
+
*/
|
|
172
|
+
readonly contractPath?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Path to the configuration file (if applicable).
|
|
175
|
+
* Used for error reporting and metadata, not for file I/O.
|
|
176
|
+
*/
|
|
177
|
+
readonly configPath?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Additional metadata that can be propagated through the call chain.
|
|
180
|
+
* Extensible for future needs without breaking changes.
|
|
181
|
+
*/
|
|
182
|
+
readonly meta?: Readonly<Record<string, unknown>>;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* A bundle of control-plane component descriptors for a specific family and target.
|
|
186
|
+
*
|
|
187
|
+
* This struct groups the target, adapter, driver (optional), and extension packs
|
|
188
|
+
* needed to create a family instance and run CLI commands. Use `createControlPlaneStack()`
|
|
189
|
+
* to construct with sensible defaults.
|
|
190
|
+
*
|
|
191
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
192
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
193
|
+
*/
|
|
194
|
+
export interface ControlPlaneStack<TFamilyId extends string, TTargetId extends string> {
|
|
195
|
+
readonly target: ControlTargetDescriptor<TFamilyId, TTargetId>;
|
|
196
|
+
readonly adapter: ControlAdapterDescriptor<TFamilyId, TTargetId>;
|
|
197
|
+
readonly driver: ControlDriverDescriptor<TFamilyId, TTargetId> | undefined;
|
|
198
|
+
readonly extensionPacks: readonly ControlExtensionDescriptor<TFamilyId, TTargetId>[];
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Descriptor for a control-plane family (e.g., SQL).
|
|
202
|
+
* Provides the family hook and factory method.
|
|
203
|
+
*
|
|
204
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
205
|
+
* @template TFamilyInstance - The family instance type
|
|
206
|
+
*/
|
|
207
|
+
export interface ControlFamilyDescriptor<TFamilyId extends string, TFamilyInstance extends ControlFamilyInstance<TFamilyId> = ControlFamilyInstance<TFamilyId>> extends FamilyDescriptor<TFamilyId> {
|
|
208
|
+
readonly hook: TargetFamilyHook;
|
|
209
|
+
create<TTargetId extends string>(stack: ControlPlaneStack<TFamilyId, TTargetId>): TFamilyInstance;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Descriptor for a control-plane target component (e.g., Postgres target).
|
|
213
|
+
*
|
|
214
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
215
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
216
|
+
* @template TTargetInstance - The target instance type
|
|
217
|
+
* @template TFamilyInstance - The family instance type for migrations (optional)
|
|
218
|
+
*/
|
|
219
|
+
export interface ControlTargetDescriptor<TFamilyId extends string, TTargetId extends string, TTargetInstance extends ControlTargetInstance<TFamilyId, TTargetId> = ControlTargetInstance<TFamilyId, TTargetId>, TFamilyInstance extends ControlFamilyInstance<TFamilyId> = ControlFamilyInstance<TFamilyId>> extends TargetDescriptor<TFamilyId, TTargetId> {
|
|
220
|
+
/**
|
|
221
|
+
* Optional migrations capability.
|
|
222
|
+
* Targets that support migrations expose this property.
|
|
223
|
+
* The capability is parameterized by family and target IDs to ensure type-level
|
|
224
|
+
* compatibility of framework components.
|
|
225
|
+
*/
|
|
226
|
+
readonly migrations?: TargetMigrationsCapability<TFamilyId, TTargetId, TFamilyInstance>;
|
|
227
|
+
create(): TTargetInstance;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Descriptor for a control-plane adapter component (e.g., Postgres adapter).
|
|
231
|
+
*
|
|
232
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
233
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
234
|
+
* @template TAdapterInstance - The adapter instance type
|
|
235
|
+
*/
|
|
236
|
+
export interface ControlAdapterDescriptor<TFamilyId extends string, TTargetId extends string, TAdapterInstance extends ControlAdapterInstance<TFamilyId, TTargetId> = ControlAdapterInstance<TFamilyId, TTargetId>> extends AdapterDescriptor<TFamilyId, TTargetId> {
|
|
237
|
+
create(): TAdapterInstance;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Descriptor for a control-plane driver component (e.g., Postgres driver).
|
|
241
|
+
*
|
|
242
|
+
* The connection input type is driver-specific. For example:
|
|
243
|
+
* - Postgres uses a connection string (URL)
|
|
244
|
+
* - Other drivers may accept structured objects (e.g., file paths, credentials)
|
|
245
|
+
*
|
|
246
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
247
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
248
|
+
* @template TDriverInstance - The driver instance type
|
|
249
|
+
* @template TConnection - The connection input type (defaults to `string` for URL-based drivers)
|
|
250
|
+
*/
|
|
251
|
+
export interface ControlDriverDescriptor<TFamilyId extends string, TTargetId extends string, TDriverInstance extends ControlDriverInstance<TFamilyId, TTargetId> = ControlDriverInstance<TFamilyId, TTargetId>, TConnection = string> extends DriverDescriptor<TFamilyId, TTargetId> {
|
|
252
|
+
create(connection: TConnection): Promise<TDriverInstance>;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Descriptor for a control-plane extension component (e.g., pgvector).
|
|
256
|
+
*
|
|
257
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
258
|
+
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
259
|
+
* @template TExtensionInstance - The extension instance type
|
|
260
|
+
*/
|
|
261
|
+
export interface ControlExtensionDescriptor<TFamilyId extends string, TTargetId extends string, TExtensionInstance extends ControlExtensionInstance<TFamilyId, TTargetId> = ControlExtensionInstance<TFamilyId, TTargetId>> extends ExtensionDescriptor<TFamilyId, TTargetId> {
|
|
262
|
+
create(): TExtensionInstance;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Result type for database marker verification operations.
|
|
266
|
+
*/
|
|
267
|
+
export interface VerifyDatabaseResult {
|
|
268
|
+
readonly ok: boolean;
|
|
269
|
+
readonly code?: string;
|
|
270
|
+
readonly summary: string;
|
|
271
|
+
readonly contract: {
|
|
272
|
+
readonly coreHash: string;
|
|
273
|
+
readonly profileHash?: string;
|
|
274
|
+
};
|
|
275
|
+
readonly marker?: {
|
|
276
|
+
readonly coreHash?: string;
|
|
277
|
+
readonly profileHash?: string;
|
|
278
|
+
};
|
|
279
|
+
readonly target: {
|
|
280
|
+
readonly expected: string;
|
|
281
|
+
readonly actual?: string;
|
|
282
|
+
};
|
|
283
|
+
readonly missingCodecs?: readonly string[];
|
|
284
|
+
readonly codecCoverageSkipped?: boolean;
|
|
285
|
+
readonly meta?: {
|
|
286
|
+
readonly configPath?: string;
|
|
287
|
+
readonly contractPath: string;
|
|
288
|
+
};
|
|
289
|
+
readonly timings: {
|
|
290
|
+
readonly total: number;
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Schema issue type for schema verification results.
|
|
295
|
+
*/
|
|
296
|
+
export interface SchemaIssue {
|
|
297
|
+
readonly kind: 'missing_table' | 'missing_column' | 'extra_table' | 'extra_column' | 'extra_primary_key' | 'extra_foreign_key' | 'extra_unique_constraint' | 'extra_index' | 'type_mismatch' | 'nullability_mismatch' | 'primary_key_mismatch' | 'foreign_key_mismatch' | 'unique_constraint_mismatch' | 'index_mismatch' | 'extension_missing';
|
|
298
|
+
readonly table: string;
|
|
299
|
+
readonly column?: string;
|
|
300
|
+
readonly indexOrConstraint?: string;
|
|
301
|
+
readonly expected?: string;
|
|
302
|
+
readonly actual?: string;
|
|
303
|
+
readonly message: string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Contract-shaped verification tree node for schema verification results.
|
|
307
|
+
* Family-agnostic structure that follows the contract structure.
|
|
308
|
+
*/
|
|
309
|
+
export interface SchemaVerificationNode {
|
|
310
|
+
readonly status: 'pass' | 'warn' | 'fail';
|
|
311
|
+
readonly kind: string;
|
|
312
|
+
readonly name: string;
|
|
313
|
+
readonly contractPath: string;
|
|
314
|
+
readonly code: string;
|
|
315
|
+
readonly message: string;
|
|
316
|
+
readonly expected: unknown;
|
|
317
|
+
readonly actual: unknown;
|
|
318
|
+
readonly children: readonly SchemaVerificationNode[];
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Result type for database schema verification operations.
|
|
322
|
+
*/
|
|
323
|
+
export interface VerifyDatabaseSchemaResult {
|
|
324
|
+
readonly ok: boolean;
|
|
325
|
+
readonly code?: string;
|
|
326
|
+
readonly summary: string;
|
|
327
|
+
readonly contract: {
|
|
328
|
+
readonly coreHash: string;
|
|
329
|
+
readonly profileHash?: string;
|
|
330
|
+
};
|
|
331
|
+
readonly target: {
|
|
332
|
+
readonly expected: string;
|
|
333
|
+
readonly actual?: string;
|
|
334
|
+
};
|
|
335
|
+
readonly schema: {
|
|
336
|
+
readonly issues: readonly SchemaIssue[];
|
|
337
|
+
readonly root: SchemaVerificationNode;
|
|
338
|
+
readonly counts: {
|
|
339
|
+
readonly pass: number;
|
|
340
|
+
readonly warn: number;
|
|
341
|
+
readonly fail: number;
|
|
342
|
+
readonly totalNodes: number;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
readonly meta?: {
|
|
346
|
+
readonly configPath?: string;
|
|
347
|
+
readonly contractPath?: string;
|
|
348
|
+
readonly strict: boolean;
|
|
349
|
+
};
|
|
350
|
+
readonly timings: {
|
|
351
|
+
readonly total: number;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Result type for contract emission operations.
|
|
356
|
+
*/
|
|
357
|
+
export interface EmitContractResult {
|
|
358
|
+
readonly contractJson: string;
|
|
359
|
+
readonly contractDts: string;
|
|
360
|
+
readonly coreHash: string;
|
|
361
|
+
readonly profileHash: string;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Result envelope for schema introspection operations.
|
|
365
|
+
* Used by CLI for JSON output when introspecting database schemas.
|
|
366
|
+
*
|
|
367
|
+
* @template TSchemaIR - The family-specific Schema IR type (e.g., `SqlSchemaIR` for SQL)
|
|
368
|
+
*/
|
|
369
|
+
export interface IntrospectSchemaResult<TSchemaIR> {
|
|
370
|
+
readonly ok: true;
|
|
371
|
+
readonly summary: string;
|
|
372
|
+
readonly target: {
|
|
373
|
+
readonly familyId: string;
|
|
374
|
+
readonly id: string;
|
|
375
|
+
};
|
|
376
|
+
readonly schema: TSchemaIR;
|
|
377
|
+
readonly meta?: {
|
|
378
|
+
readonly configPath?: string;
|
|
379
|
+
readonly dbUrl?: string;
|
|
380
|
+
};
|
|
381
|
+
readonly timings: {
|
|
382
|
+
readonly total: number;
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Result type for database signing operations.
|
|
387
|
+
* Returned when writing or updating the contract marker in the database.
|
|
388
|
+
*/
|
|
389
|
+
export interface SignDatabaseResult {
|
|
390
|
+
readonly ok: boolean;
|
|
391
|
+
readonly summary: string;
|
|
392
|
+
readonly contract: {
|
|
393
|
+
readonly coreHash: string;
|
|
394
|
+
readonly profileHash?: string;
|
|
395
|
+
};
|
|
396
|
+
readonly target: {
|
|
397
|
+
readonly expected: string;
|
|
398
|
+
readonly actual?: string;
|
|
399
|
+
};
|
|
400
|
+
readonly marker: {
|
|
401
|
+
readonly created: boolean;
|
|
402
|
+
readonly updated: boolean;
|
|
403
|
+
readonly previous?: {
|
|
404
|
+
readonly coreHash?: string;
|
|
405
|
+
readonly profileHash?: string;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
readonly meta?: {
|
|
409
|
+
readonly configPath?: string;
|
|
410
|
+
readonly contractPath: string;
|
|
411
|
+
};
|
|
412
|
+
readonly timings: {
|
|
413
|
+
readonly total: number;
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,8BAA8B,EAC9B,gBAAgB,EAChB,cAAc,EACf,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KA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AE;QACf,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE;YAClB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;YAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;SAC/B,CAAC;KACH,CAAC;IACF,QAAQ,CAAC,IAAI,CAAC,EAAE;QACd,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;KAC/B,CAAC;IACF,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,CAAC;CACH"}
|
package/package.json
CHANGED
|
@@ -1,46 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/core-control-plane",
|
|
3
|
-
"version": "0.3.0-pr.
|
|
3
|
+
"version": "0.3.0-pr.95.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"engines": {
|
|
7
|
-
"node": ">=20"
|
|
8
|
-
},
|
|
9
6
|
"description": "Control plane domain actions, config types, validation, and error factories for Prisma Next",
|
|
10
7
|
"dependencies": {
|
|
11
8
|
"arktype": "^2.1.26",
|
|
12
9
|
"prettier": "^3.3.3",
|
|
13
|
-
"@prisma-next/contract": "0.3.0-pr.
|
|
14
|
-
"@prisma-next/operations": "0.3.0-pr.
|
|
15
|
-
"@prisma-next/utils": "0.3.0-pr.
|
|
10
|
+
"@prisma-next/contract": "0.3.0-pr.95.2",
|
|
11
|
+
"@prisma-next/operations": "0.3.0-pr.95.2",
|
|
12
|
+
"@prisma-next/utils": "0.3.0-pr.95.2"
|
|
16
13
|
},
|
|
17
14
|
"devDependencies": {
|
|
18
|
-
"
|
|
15
|
+
"tsup": "8.5.1",
|
|
19
16
|
"typescript": "5.9.3",
|
|
20
17
|
"vitest": "4.0.16",
|
|
21
18
|
"@prisma-next/test-utils": "0.0.1",
|
|
22
|
-
"@prisma-next/tsconfig": "0.0.0"
|
|
23
|
-
"@prisma-next/tsdown": "0.0.0"
|
|
19
|
+
"@prisma-next/tsconfig": "0.0.0"
|
|
24
20
|
},
|
|
25
21
|
"files": [
|
|
26
22
|
"dist",
|
|
27
23
|
"src"
|
|
28
24
|
],
|
|
29
25
|
"exports": {
|
|
30
|
-
"./config-types":
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"./
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
"./config-types": {
|
|
27
|
+
"types": "./dist/exports/config-types.d.ts",
|
|
28
|
+
"import": "./dist/exports/config-types.js"
|
|
29
|
+
},
|
|
30
|
+
"./config-validation": {
|
|
31
|
+
"types": "./dist/exports/config-validation.d.ts",
|
|
32
|
+
"import": "./dist/exports/config-validation.js"
|
|
33
|
+
},
|
|
34
|
+
"./errors": {
|
|
35
|
+
"types": "./dist/exports/errors.d.ts",
|
|
36
|
+
"import": "./dist/exports/errors.js"
|
|
37
|
+
},
|
|
38
|
+
"./types": {
|
|
39
|
+
"types": "./dist/exports/types.d.ts",
|
|
40
|
+
"import": "./dist/exports/types.js"
|
|
41
|
+
},
|
|
42
|
+
"./stack": {
|
|
43
|
+
"types": "./dist/exports/stack.d.ts",
|
|
44
|
+
"import": "./dist/exports/stack.js"
|
|
45
|
+
},
|
|
46
|
+
"./emission": {
|
|
47
|
+
"types": "./dist/exports/emission.d.ts",
|
|
48
|
+
"import": "./dist/exports/emission.js"
|
|
49
|
+
},
|
|
50
|
+
"./schema-view": {
|
|
51
|
+
"types": "./dist/exports/schema-view.d.ts",
|
|
52
|
+
"import": "./dist/exports/schema-view.js"
|
|
53
|
+
}
|
|
38
54
|
},
|
|
39
55
|
"scripts": {
|
|
40
|
-
"build": "
|
|
56
|
+
"build": "tsup --config tsup.config.ts && tsc --project tsconfig.build.json",
|
|
41
57
|
"test": "vitest run --passWithNoTests",
|
|
42
58
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
43
|
-
"typecheck": "tsc --noEmit",
|
|
59
|
+
"typecheck": "tsc --project tsconfig.json --noEmit",
|
|
44
60
|
"lint": "biome check . --error-on-warnings",
|
|
45
61
|
"lint:fix": "biome check --write .",
|
|
46
62
|
"lint:fix:unsafe": "biome check --write --unsafe .",
|
package/src/emission/emit.ts
CHANGED
|
@@ -43,7 +43,13 @@ export async function emit(
|
|
|
43
43
|
options: EmitOptions,
|
|
44
44
|
targetFamily: TargetFamilyHook,
|
|
45
45
|
): Promise<EmitResult> {
|
|
46
|
-
const {
|
|
46
|
+
const {
|
|
47
|
+
operationRegistry,
|
|
48
|
+
codecTypeImports,
|
|
49
|
+
operationTypeImports,
|
|
50
|
+
extensionIds,
|
|
51
|
+
parameterizedRenderers,
|
|
52
|
+
} = options;
|
|
47
53
|
|
|
48
54
|
validateCoreStructure(ir);
|
|
49
55
|
|
|
@@ -101,6 +107,7 @@ export async function emit(
|
|
|
101
107
|
ir,
|
|
102
108
|
codecTypeImports ?? [],
|
|
103
109
|
operationTypeImports ?? [],
|
|
110
|
+
parameterizedRenderers ? { parameterizedRenderers } : undefined,
|
|
104
111
|
);
|
|
105
112
|
const contractDts = await format(contractDtsRaw, {
|
|
106
113
|
parser: 'typescript',
|
package/src/emission/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypesImportSpec } from '@prisma-next/contract/types';
|
|
1
|
+
import type { TypeRenderEntry, TypesImportSpec } from '@prisma-next/contract/types';
|
|
2
2
|
import type { OperationRegistry } from '@prisma-next/operations';
|
|
3
3
|
|
|
4
4
|
export interface EmitOptions {
|
|
@@ -7,6 +7,11 @@ export interface EmitOptions {
|
|
|
7
7
|
readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
8
8
|
readonly operationTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
9
9
|
readonly extensionIds?: ReadonlyArray<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Normalized parameterized type renderers, keyed by codecId.
|
|
12
|
+
* These are extracted from descriptors and normalized during assembly.
|
|
13
|
+
*/
|
|
14
|
+
readonly parameterizedRenderers?: Map<string, TypeRenderEntry>;
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
export interface EmitResult {
|