@prisma-next/family-sql 0.1.0-pr.71.1 → 0.1.0-pr.72.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.
@@ -1,35 +1,32 @@
1
1
  // src/core/runtime-instance.ts
2
+ import { assertRuntimeContractRequirementsSatisfied } from "@prisma-next/core-execution-plane/framework-components";
2
3
  import { createRuntime, createRuntimeContext } from "@prisma-next/sql-runtime";
3
4
  function createSqlRuntimeFamilyInstance(options) {
4
5
  const {
6
+ family: familyDescriptor,
7
+ target: targetDescriptor,
5
8
  adapter: adapterDescriptor,
6
9
  driver: driverDescriptor,
7
- extensions: extensionDescriptors
10
+ extensionPacks: extensionDescriptors = []
8
11
  } = options;
9
12
  return {
10
13
  familyId: "sql",
11
14
  createRuntime(runtimeOptions) {
12
- const adapterInstance = adapterDescriptor.create();
13
- const driverInstance = driverDescriptor.create(runtimeOptions.driverOptions);
14
- const extensionInstances = extensionDescriptors.map((ext) => ext.create());
15
- const descriptorExtensions = extensionInstances.map((ext) => {
16
- const extension = {};
17
- if ("codecs" in ext && typeof ext.codecs === "function") {
18
- extension.codecs = ext.codecs;
19
- }
20
- if ("operations" in ext && typeof ext.operations === "function") {
21
- extension.operations = ext.operations;
22
- }
23
- return extension;
15
+ assertRuntimeContractRequirementsSatisfied({
16
+ contract: runtimeOptions.contract,
17
+ family: familyDescriptor,
18
+ target: targetDescriptor,
19
+ adapter: adapterDescriptor,
20
+ extensionPacks: extensionDescriptors
24
21
  });
25
- const extensions = [...descriptorExtensions, ...runtimeOptions.extensions ?? []];
22
+ const driverInstance = driverDescriptor.create(runtimeOptions.driverOptions);
26
23
  const context = createRuntimeContext({
27
24
  contract: runtimeOptions.contract,
28
- adapter: adapterInstance,
29
- extensions
25
+ target: targetDescriptor,
26
+ adapter: adapterDescriptor,
27
+ extensionPacks: extensionDescriptors
30
28
  });
31
29
  const runtimeOptions_ = {
32
- adapter: adapterInstance,
33
30
  driver: driverInstance,
34
31
  verify: runtimeOptions.verify,
35
32
  context,
@@ -43,21 +40,18 @@ function createSqlRuntimeFamilyInstance(options) {
43
40
  }
44
41
 
45
42
  // src/core/runtime-descriptor.ts
46
- var sqlFamilyManifest = {
47
- id: "sql",
48
- version: "0.0.1"
49
- };
50
43
  var SqlRuntimeFamilyDescriptor = class {
51
44
  kind = "family";
52
45
  id = "sql";
53
46
  familyId = "sql";
54
- manifest = sqlFamilyManifest;
47
+ version = "0.0.1";
55
48
  create(options) {
56
49
  return createSqlRuntimeFamilyInstance({
50
+ family: this,
57
51
  target: options.target,
58
52
  adapter: options.adapter,
59
53
  driver: options.driver,
60
- extensions: options.extensions
54
+ extensionPacks: options.extensionPacks
61
55
  });
62
56
  }
63
57
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/core/runtime-instance.ts","../../src/core/runtime-descriptor.ts","../../src/exports/runtime.ts"],"sourcesContent":["import type {\n RuntimeAdapterDescriptor,\n RuntimeAdapterInstance,\n RuntimeDriverDescriptor,\n RuntimeDriverInstance,\n RuntimeExtensionDescriptor,\n RuntimeFamilyInstance,\n RuntimeTargetDescriptor,\n} from '@prisma-next/core-execution-plane/types';\nimport type { Log, Plugin, RuntimeVerifyOptions } from '@prisma-next/runtime-executor';\nimport type { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';\nimport type {\n Adapter,\n LoweredStatement,\n SelectAst,\n SqlDriver,\n} from '@prisma-next/sql-relational-core/ast';\nimport type { Runtime, RuntimeContext, RuntimeOptions } from '@prisma-next/sql-runtime';\nimport { createRuntime, createRuntimeContext, type Extension } from '@prisma-next/sql-runtime';\n\n/**\n * SQL runtime driver instance type.\n * Combines identity properties with SQL-specific behavior methods.\n */\nexport type SqlRuntimeDriverInstance<TTargetId extends string = string> = RuntimeDriverInstance<\n 'sql',\n TTargetId\n> &\n SqlDriver;\n\n/**\n * SQL runtime adapter instance type.\n * Combines identity properties with SQL-specific adapter behavior.\n */\nexport type SqlRuntimeAdapterInstance<TTargetId extends string = string> = RuntimeAdapterInstance<\n 'sql',\n TTargetId\n> &\n Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>;\n\n/**\n * SQL runtime family instance interface.\n * Extends base RuntimeFamilyInstance with SQL-specific runtime creation method.\n */\nexport interface SqlRuntimeFamilyInstance extends RuntimeFamilyInstance<'sql'> {\n /**\n * Creates a SQL runtime from contract, adapter, driver, and extensions.\n *\n * @param options - Runtime creation options\n * @param options.contract - SQL contract\n * @param options.driverOptions - Driver options (e.g., PostgresDriverOptions)\n * @param options.verify - Runtime verification options\n * @param options.extensions - Optional extensions (Extension objects, not descriptors)\n * @param options.plugins - Optional plugins\n * @param options.mode - Optional runtime mode\n * @param options.log - Optional log instance\n * @returns Runtime instance\n */\n createRuntime<TContract extends SqlContract<SqlStorage>>(options: {\n readonly contract: TContract;\n readonly driverOptions: unknown;\n readonly verify: RuntimeVerifyOptions;\n readonly extensions?: readonly Extension[];\n readonly plugins?: readonly Plugin<\n TContract,\n Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>,\n SqlDriver\n >[];\n readonly mode?: 'strict' | 'permissive';\n readonly log?: Log;\n }): Runtime;\n}\n\n/**\n * Creates a SQL runtime family instance from runtime descriptors.\n */\nexport function createSqlRuntimeFamilyInstance(options: {\n readonly target: RuntimeTargetDescriptor<'sql', string>;\n readonly adapter: RuntimeAdapterDescriptor<'sql', string, SqlRuntimeAdapterInstance>;\n readonly driver: RuntimeDriverDescriptor<'sql', string, SqlRuntimeDriverInstance>;\n readonly extensions: readonly RuntimeExtensionDescriptor<'sql', string>[];\n}): SqlRuntimeFamilyInstance {\n const {\n adapter: adapterDescriptor,\n driver: driverDescriptor,\n extensions: extensionDescriptors,\n } = options;\n\n return {\n familyId: 'sql' as const,\n createRuntime<TContract extends SqlContract<SqlStorage>>(runtimeOptions: {\n readonly contract: TContract;\n readonly driverOptions: unknown;\n readonly verify: RuntimeVerifyOptions;\n readonly extensions?: readonly Extension[];\n readonly plugins?: readonly Plugin<\n TContract,\n Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>,\n SqlDriver\n >[];\n readonly mode?: 'strict' | 'permissive';\n readonly log?: Log;\n }): Runtime {\n const adapterInstance = adapterDescriptor.create();\n const driverInstance = driverDescriptor.create(runtimeOptions.driverOptions);\n\n const extensionInstances = extensionDescriptors.map((ext) => ext.create());\n\n const descriptorExtensions: Extension[] = extensionInstances.map((ext) => {\n const extension: Extension = {};\n if ('codecs' in ext && typeof ext.codecs === 'function') {\n extension.codecs =\n ext.codecs as () => import('@prisma-next/sql-relational-core/ast').CodecRegistry;\n }\n if ('operations' in ext && typeof ext.operations === 'function') {\n extension.operations =\n ext.operations as () => readonly import('@prisma-next/sql-operations').SqlOperationSignature[];\n }\n return extension;\n });\n\n const extensions = [...descriptorExtensions, ...(runtimeOptions.extensions ?? [])];\n\n const context = createRuntimeContext({\n contract: runtimeOptions.contract,\n adapter: adapterInstance,\n extensions,\n }) as RuntimeContext<TContract>;\n\n const runtimeOptions_: RuntimeOptions<TContract> = {\n adapter: adapterInstance,\n driver: driverInstance,\n verify: runtimeOptions.verify,\n context,\n ...(runtimeOptions.plugins ? { plugins: runtimeOptions.plugins } : {}),\n ...(runtimeOptions.mode ? { mode: runtimeOptions.mode } : {}),\n ...(runtimeOptions.log ? { log: runtimeOptions.log } : {}),\n };\n\n return createRuntime(runtimeOptions_);\n },\n };\n}\n","import type { ExtensionPackManifest } from '@prisma-next/contract/pack-manifest-types';\nimport type {\n RuntimeAdapterDescriptor,\n RuntimeDriverDescriptor,\n RuntimeExtensionDescriptor,\n RuntimeFamilyDescriptor,\n RuntimeTargetDescriptor,\n} from '@prisma-next/core-execution-plane/types';\nimport {\n createSqlRuntimeFamilyInstance,\n type SqlRuntimeAdapterInstance,\n type SqlRuntimeDriverInstance,\n type SqlRuntimeFamilyInstance,\n} from './runtime-instance';\n\n/**\n * SQL family manifest for runtime plane.\n */\nconst sqlFamilyManifest: ExtensionPackManifest = {\n id: 'sql',\n version: '0.0.1',\n};\n\n/**\n * SQL runtime family descriptor implementation.\n * Provides factory method to create SQL runtime family instance.\n */\nexport class SqlRuntimeFamilyDescriptor\n implements RuntimeFamilyDescriptor<'sql', SqlRuntimeFamilyInstance>\n{\n readonly kind = 'family' as const;\n readonly id = 'sql';\n readonly familyId = 'sql' as const;\n readonly manifest = sqlFamilyManifest;\n\n create<TTargetId extends string>(options: {\n readonly target: RuntimeTargetDescriptor<'sql', TTargetId>;\n readonly adapter: RuntimeAdapterDescriptor<\n 'sql',\n TTargetId,\n SqlRuntimeAdapterInstance<TTargetId>\n >;\n readonly driver: RuntimeDriverDescriptor<'sql', TTargetId, SqlRuntimeDriverInstance<TTargetId>>;\n readonly extensions: readonly RuntimeExtensionDescriptor<'sql', TTargetId>[];\n }): SqlRuntimeFamilyInstance {\n return createSqlRuntimeFamilyInstance({\n target: options.target,\n adapter: options.adapter,\n driver: options.driver,\n extensions: options.extensions,\n });\n }\n}\n","import { SqlRuntimeFamilyDescriptor } from '../core/runtime-descriptor';\n\n/**\n * SQL runtime family descriptor for execution/runtime plane.\n * Provides factory method to create SQL runtime family instance.\n */\nexport default new SqlRuntimeFamilyDescriptor();\n"],"mappings":";AAkBA,SAAS,eAAe,4BAA4C;AA0D7D,SAAS,+BAA+B,SAKlB;AAC3B,QAAM;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,EACd,IAAI;AAEJ,SAAO;AAAA,IACL,UAAU;AAAA,IACV,cAAyD,gBAY7C;AACV,YAAM,kBAAkB,kBAAkB,OAAO;AACjD,YAAM,iBAAiB,iBAAiB,OAAO,eAAe,aAAa;AAE3E,YAAM,qBAAqB,qBAAqB,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC;AAEzE,YAAM,uBAAoC,mBAAmB,IAAI,CAAC,QAAQ;AACxE,cAAM,YAAuB,CAAC;AAC9B,YAAI,YAAY,OAAO,OAAO,IAAI,WAAW,YAAY;AACvD,oBAAU,SACR,IAAI;AAAA,QACR;AACA,YAAI,gBAAgB,OAAO,OAAO,IAAI,eAAe,YAAY;AAC/D,oBAAU,aACR,IAAI;AAAA,QACR;AACA,eAAO;AAAA,MACT,CAAC;AAED,YAAM,aAAa,CAAC,GAAG,sBAAsB,GAAI,eAAe,cAAc,CAAC,CAAE;AAEjF,YAAM,UAAU,qBAAqB;AAAA,QACnC,UAAU,eAAe;AAAA,QACzB,SAAS;AAAA,QACT;AAAA,MACF,CAAC;AAED,YAAM,kBAA6C;AAAA,QACjD,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ,eAAe;AAAA,QACvB;AAAA,QACA,GAAI,eAAe,UAAU,EAAE,SAAS,eAAe,QAAQ,IAAI,CAAC;AAAA,QACpE,GAAI,eAAe,OAAO,EAAE,MAAM,eAAe,KAAK,IAAI,CAAC;AAAA,QAC3D,GAAI,eAAe,MAAM,EAAE,KAAK,eAAe,IAAI,IAAI,CAAC;AAAA,MAC1D;AAEA,aAAO,cAAc,eAAe;AAAA,IACtC;AAAA,EACF;AACF;;;AC5HA,IAAM,oBAA2C;AAAA,EAC/C,IAAI;AAAA,EACJ,SAAS;AACX;AAMO,IAAM,6BAAN,MAEP;AAAA,EACW,OAAO;AAAA,EACP,KAAK;AAAA,EACL,WAAW;AAAA,EACX,WAAW;AAAA,EAEpB,OAAiC,SASJ;AAC3B,WAAO,+BAA+B;AAAA,MACpC,QAAQ,QAAQ;AAAA,MAChB,SAAS,QAAQ;AAAA,MACjB,QAAQ,QAAQ;AAAA,MAChB,YAAY,QAAQ;AAAA,IACtB,CAAC;AAAA,EACH;AACF;;;AC9CA,IAAO,kBAAQ,IAAI,2BAA2B;","names":[]}
1
+ {"version":3,"sources":["../../src/core/runtime-instance.ts","../../src/core/runtime-descriptor.ts","../../src/exports/runtime.ts"],"sourcesContent":["import { assertRuntimeContractRequirementsSatisfied } from '@prisma-next/core-execution-plane/framework-components';\nimport type {\n RuntimeAdapterDescriptor,\n RuntimeDriverDescriptor,\n RuntimeDriverInstance,\n RuntimeFamilyDescriptor,\n RuntimeFamilyInstance,\n RuntimeTargetDescriptor,\n} from '@prisma-next/core-execution-plane/types';\nimport type { Log, Plugin, RuntimeVerifyOptions } from '@prisma-next/runtime-executor';\nimport type { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';\nimport type {\n Adapter,\n LoweredStatement,\n SelectAst,\n SqlDriver,\n} from '@prisma-next/sql-relational-core/ast';\nimport type {\n Runtime,\n RuntimeOptions,\n SqlRuntimeAdapterInstance,\n SqlRuntimeExtensionDescriptor,\n} from '@prisma-next/sql-runtime';\nimport { createRuntime, createRuntimeContext } from '@prisma-next/sql-runtime';\n\n/**\n * SQL runtime driver instance type.\n * Combines identity properties with SQL-specific behavior methods.\n */\nexport type SqlRuntimeDriverInstance<TTargetId extends string = string> = RuntimeDriverInstance<\n 'sql',\n TTargetId\n> &\n SqlDriver;\n\n// Re-export SqlRuntimeAdapterInstance from sql-runtime for consumers\nexport type { SqlRuntimeAdapterInstance } from '@prisma-next/sql-runtime';\n\n/**\n * SQL runtime family instance interface.\n * Extends base RuntimeFamilyInstance with SQL-specific runtime creation method.\n */\nexport interface SqlRuntimeFamilyInstance extends RuntimeFamilyInstance<'sql'> {\n /**\n * Creates a SQL runtime from contract, driver options, and verification settings.\n *\n * Extension packs are routed through composition (at instance creation time),\n * not through this method. This aligns with control-plane composition patterns.\n *\n * @param options - Runtime creation options\n * @param options.contract - SQL contract\n * @param options.driverOptions - Driver options (e.g., PostgresDriverOptions)\n * @param options.verify - Runtime verification options\n * @param options.plugins - Optional plugins\n * @param options.mode - Optional runtime mode\n * @param options.log - Optional log instance\n * @returns Runtime instance\n */\n createRuntime<TContract extends SqlContract<SqlStorage>>(options: {\n readonly contract: TContract;\n readonly driverOptions: unknown;\n readonly verify: RuntimeVerifyOptions;\n readonly plugins?: readonly Plugin<\n TContract,\n Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>,\n SqlDriver\n >[];\n readonly mode?: 'strict' | 'permissive';\n readonly log?: Log;\n }): Runtime;\n}\n\n/**\n * Creates a SQL runtime family instance from runtime descriptors.\n *\n * Routes the same framework composition as control-plane:\n * family, target, adapter, driver, extensionPacks (all as descriptors with IDs).\n */\nexport function createSqlRuntimeFamilyInstance<TTargetId extends string>(options: {\n readonly family: RuntimeFamilyDescriptor<'sql'>;\n readonly target: RuntimeTargetDescriptor<'sql', TTargetId>;\n readonly adapter: RuntimeAdapterDescriptor<\n 'sql',\n TTargetId,\n SqlRuntimeAdapterInstance<TTargetId>\n >;\n readonly driver: RuntimeDriverDescriptor<'sql', TTargetId, SqlRuntimeDriverInstance<TTargetId>>;\n readonly extensionPacks?: readonly SqlRuntimeExtensionDescriptor<TTargetId>[];\n}): SqlRuntimeFamilyInstance {\n const {\n family: familyDescriptor,\n target: targetDescriptor,\n adapter: adapterDescriptor,\n driver: driverDescriptor,\n extensionPacks: extensionDescriptors = [],\n } = options;\n\n return {\n familyId: 'sql' as const,\n createRuntime<TContract extends SqlContract<SqlStorage>>(runtimeOptions: {\n readonly contract: TContract;\n readonly driverOptions: unknown;\n readonly verify: RuntimeVerifyOptions;\n readonly plugins?: readonly Plugin<\n TContract,\n Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>,\n SqlDriver\n >[];\n readonly mode?: 'strict' | 'permissive';\n readonly log?: Log;\n }): Runtime {\n // Validate contract requirements against provided descriptors\n assertRuntimeContractRequirementsSatisfied({\n contract: runtimeOptions.contract,\n family: familyDescriptor,\n target: targetDescriptor,\n adapter: adapterDescriptor,\n extensionPacks: extensionDescriptors,\n });\n\n // Create driver instance\n const driverInstance = driverDescriptor.create(runtimeOptions.driverOptions);\n\n // Create context via descriptor-first API\n const context = createRuntimeContext<TContract, TTargetId>({\n contract: runtimeOptions.contract,\n target: targetDescriptor,\n adapter: adapterDescriptor,\n extensionPacks: extensionDescriptors,\n });\n\n const runtimeOptions_: RuntimeOptions<TContract> = {\n driver: driverInstance,\n verify: runtimeOptions.verify,\n context,\n ...(runtimeOptions.plugins ? { plugins: runtimeOptions.plugins } : {}),\n ...(runtimeOptions.mode ? { mode: runtimeOptions.mode } : {}),\n ...(runtimeOptions.log ? { log: runtimeOptions.log } : {}),\n };\n\n return createRuntime(runtimeOptions_);\n },\n };\n}\n","import type {\n RuntimeAdapterDescriptor,\n RuntimeDriverDescriptor,\n RuntimeExtensionDescriptor,\n RuntimeFamilyDescriptor,\n RuntimeTargetDescriptor,\n} from '@prisma-next/core-execution-plane/types';\nimport {\n createSqlRuntimeFamilyInstance,\n type SqlRuntimeAdapterInstance,\n type SqlRuntimeDriverInstance,\n type SqlRuntimeFamilyInstance,\n} from './runtime-instance';\n\n/**\n * SQL runtime family descriptor implementation.\n * Provides factory method to create SQL runtime family instance.\n */\nexport class SqlRuntimeFamilyDescriptor\n implements RuntimeFamilyDescriptor<'sql', SqlRuntimeFamilyInstance>\n{\n readonly kind = 'family' as const;\n readonly id = 'sql';\n readonly familyId = 'sql' as const;\n readonly version = '0.0.1';\n\n create<TTargetId extends string>(options: {\n readonly target: RuntimeTargetDescriptor<'sql', TTargetId>;\n readonly adapter: RuntimeAdapterDescriptor<\n 'sql',\n TTargetId,\n SqlRuntimeAdapterInstance<TTargetId>\n >;\n readonly driver: RuntimeDriverDescriptor<'sql', TTargetId, SqlRuntimeDriverInstance<TTargetId>>;\n readonly extensionPacks: readonly RuntimeExtensionDescriptor<'sql', TTargetId>[];\n }): SqlRuntimeFamilyInstance {\n return createSqlRuntimeFamilyInstance({\n family: this,\n target: options.target,\n adapter: options.adapter,\n driver: options.driver,\n extensionPacks: options.extensionPacks,\n });\n }\n}\n","import { SqlRuntimeFamilyDescriptor } from '../core/runtime-descriptor';\n\n/**\n * SQL runtime family descriptor for execution/runtime plane.\n * Provides factory method to create SQL runtime family instance.\n */\nexport default new SqlRuntimeFamilyDescriptor();\n"],"mappings":";AAAA,SAAS,kDAAkD;AAuB3D,SAAS,eAAe,4BAA4B;AAuD7C,SAAS,+BAAyD,SAU5C;AAC3B,QAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,gBAAgB,uBAAuB,CAAC;AAAA,EAC1C,IAAI;AAEJ,SAAO;AAAA,IACL,UAAU;AAAA,IACV,cAAyD,gBAW7C;AAEV,iDAA2C;AAAA,QACzC,UAAU,eAAe;AAAA,QACzB,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,gBAAgB;AAAA,MAClB,CAAC;AAGD,YAAM,iBAAiB,iBAAiB,OAAO,eAAe,aAAa;AAG3E,YAAM,UAAU,qBAA2C;AAAA,QACzD,UAAU,eAAe;AAAA,QACzB,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,gBAAgB;AAAA,MAClB,CAAC;AAED,YAAM,kBAA6C;AAAA,QACjD,QAAQ;AAAA,QACR,QAAQ,eAAe;AAAA,QACvB;AAAA,QACA,GAAI,eAAe,UAAU,EAAE,SAAS,eAAe,QAAQ,IAAI,CAAC;AAAA,QACpE,GAAI,eAAe,OAAO,EAAE,MAAM,eAAe,KAAK,IAAI,CAAC;AAAA,QAC3D,GAAI,eAAe,MAAM,EAAE,KAAK,eAAe,IAAI,IAAI,CAAC;AAAA,MAC1D;AAEA,aAAO,cAAc,eAAe;AAAA,IACtC;AAAA,EACF;AACF;;;AC7HO,IAAM,6BAAN,MAEP;AAAA,EACW,OAAO;AAAA,EACP,KAAK;AAAA,EACL,WAAW;AAAA,EACX,UAAU;AAAA,EAEnB,OAAiC,SASJ;AAC3B,WAAO,+BAA+B;AAAA,MACpC,QAAQ;AAAA,MACR,QAAQ,QAAQ;AAAA,MAChB,SAAS,QAAQ;AAAA,MACjB,QAAQ,QAAQ;AAAA,MAChB,gBAAgB,QAAQ;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;;;ACtCA,IAAO,kBAAQ,IAAI,2BAA2B;","names":[]}
@@ -1,13 +1,16 @@
1
1
  import { SchemaIssue, SchemaVerificationNode, OperationContext, VerifyDatabaseSchemaResult } from '@prisma-next/core-control-plane/types';
2
2
  import { SqlSchemaIR } from '@prisma-next/sql-schema-ir/types';
3
- import { k as ComponentDatabaseDependency } from './instance-Bhq2g51v.js';
3
+ import { i as ComponentDatabaseDependency } from './types-Bh7ftf0Q.js';
4
4
  import { TargetBoundComponentDescriptor } from '@prisma-next/contract/framework-components';
5
5
  import { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';
6
6
  import '@prisma-next/utils/result';
7
+ import './instance-DiZi2k_2.js';
7
8
  import '@prisma-next/contract/ir';
9
+ import '@prisma-next/contract/pack-manifest-types';
8
10
  import '@prisma-next/contract/types';
9
11
  import '@prisma-next/core-control-plane/schema-view';
10
12
  import '@prisma-next/operations';
13
+ import '@prisma-next/sql-operations';
11
14
 
12
15
  /**
13
16
  * Pure verification helper functions for SQL schema verification.
@@ -2,7 +2,7 @@ import {
2
2
  arraysEqual,
3
3
  verifyDatabaseDependencies,
4
4
  verifySqlSchema
5
- } from "./chunk-UKUAX2QM.js";
5
+ } from "./chunk-F252JMEU.js";
6
6
  export {
7
7
  arraysEqual,
8
8
  verifyDatabaseDependencies,
@@ -1,34 +1,33 @@
1
- import { ExtensionPackManifest } from '@prisma-next/contract/pack-manifest-types';
1
+ import { OperationManifest } from '@prisma-next/contract/pack-manifest-types';
2
2
  import { TypesImportSpec } from '@prisma-next/contract/types';
3
- import { OperationRegistry } from '@prisma-next/operations';
3
+ import { ControlTargetDescriptor, ControlAdapterDescriptor, ControlExtensionDescriptor } from '@prisma-next/core-control-plane/types';
4
+ import { OperationSignature, OperationRegistry } from '@prisma-next/operations';
5
+ export { c as convertOperationManifest } from './instance-DiZi2k_2.js';
6
+ import '@prisma-next/contract/framework-components';
7
+ import '@prisma-next/contract/ir';
8
+ import '@prisma-next/core-control-plane/schema-view';
9
+ import '@prisma-next/sql-operations';
10
+ import '@prisma-next/sql-schema-ir/types';
4
11
 
5
12
  /**
6
- * Extracts codec type imports from extension packs for contract.d.ts generation.
7
- * Pack-based version for use in tests.
13
+ * Assembles an operation registry from descriptors (adapter, target, extensions).
14
+ * Loops over descriptors, extracts operations, converts them using the provided
15
+ * conversion function, and registers them in a new registry.
8
16
  */
9
- declare function extractCodecTypeImportsFromPacks(packs: ReadonlyArray<{
10
- readonly manifest: ExtensionPackManifest;
11
- }>): ReadonlyArray<TypesImportSpec>;
17
+ declare function assembleOperationRegistry(descriptors: ReadonlyArray<ControlTargetDescriptor<'sql', string> | ControlAdapterDescriptor<'sql', string> | ControlExtensionDescriptor<'sql', string>>, convertOperationManifest: (manifest: OperationManifest) => OperationSignature): OperationRegistry;
12
18
  /**
13
- * Extracts operation type imports from extension packs for contract.d.ts generation.
14
- * Pack-based version for use in tests.
19
+ * Extracts codec type imports from descriptors for contract.d.ts generation.
15
20
  */
16
- declare function extractOperationTypeImportsFromPacks(packs: ReadonlyArray<{
17
- readonly manifest: ExtensionPackManifest;
18
- }>): ReadonlyArray<TypesImportSpec>;
21
+ declare function extractCodecTypeImports(descriptors: ReadonlyArray<ControlTargetDescriptor<'sql', string> | ControlAdapterDescriptor<'sql', string> | ControlExtensionDescriptor<'sql', string>>): ReadonlyArray<TypesImportSpec>;
19
22
  /**
20
- * Assembles an operation registry from extension packs.
21
- * Pack-based version for use in tests.
23
+ * Extracts operation type imports from descriptors for contract.d.ts generation.
22
24
  */
23
- declare function assembleOperationRegistryFromPacks(packs: ReadonlyArray<{
24
- readonly manifest: ExtensionPackManifest;
25
- }>): OperationRegistry;
25
+ declare function extractOperationTypeImports(descriptors: ReadonlyArray<ControlTargetDescriptor<'sql', string> | ControlAdapterDescriptor<'sql', string> | ControlExtensionDescriptor<'sql', string>>): ReadonlyArray<TypesImportSpec>;
26
26
  /**
27
- * Extracts extension IDs from packs.
28
- * Pack-based version for use in tests.
27
+ * Extracts extension IDs from descriptors in deterministic order:
28
+ * [adapter.id, target.id, ...extensions.map(e => e.id)]
29
+ * Deduplicates while preserving stable order.
29
30
  */
30
- declare function extractExtensionIdsFromPacks(packs: ReadonlyArray<{
31
- readonly manifest: ExtensionPackManifest;
32
- }>): ReadonlyArray<string>;
31
+ declare function extractExtensionIds(adapter: ControlAdapterDescriptor<'sql', string>, target: ControlTargetDescriptor<'sql', string>, extensions: ReadonlyArray<ControlExtensionDescriptor<'sql', string>>): ReadonlyArray<string>;
33
32
 
34
- export { assembleOperationRegistryFromPacks, extractCodecTypeImportsFromPacks, extractExtensionIdsFromPacks, extractOperationTypeImportsFromPacks };
33
+ export { assembleOperationRegistry, extractCodecTypeImports, extractExtensionIds, extractOperationTypeImports };
@@ -1,15 +1,17 @@
1
1
  import {
2
- assembleOperationRegistryFromPacks,
3
- extractCodecTypeImportsFromPacks,
4
- extractExtensionIdsFromPacks,
5
- extractOperationTypeImportsFromPacks
6
- } from "./chunk-RVUPZUZP.js";
2
+ assembleOperationRegistry,
3
+ convertOperationManifest,
4
+ extractCodecTypeImports,
5
+ extractExtensionIds,
6
+ extractOperationTypeImports
7
+ } from "./chunk-6P44BVZ4.js";
7
8
  import "./chunk-C3GKWCKA.js";
8
- import "./chunk-UKUAX2QM.js";
9
+ import "./chunk-F252JMEU.js";
9
10
  export {
10
- assembleOperationRegistryFromPacks,
11
- extractCodecTypeImportsFromPacks,
12
- extractExtensionIdsFromPacks,
13
- extractOperationTypeImportsFromPacks
11
+ assembleOperationRegistry,
12
+ convertOperationManifest,
13
+ extractCodecTypeImports,
14
+ extractExtensionIds,
15
+ extractOperationTypeImports
14
16
  };
15
17
  //# sourceMappingURL=test-utils.js.map
@@ -1,12 +1,9 @@
1
1
  import { TargetBoundComponentDescriptor } from '@prisma-next/contract/framework-components';
2
- import { ControlTargetDescriptor, ControlTargetInstance, MigrationOperationPolicy, MigrationPlannerSuccessResult, MigrationPlan, MigrationPlanOperation, MigrationPlannerFailureResult, MigrationPlannerConflict, ControlDriverInstance, OperationContext, MigrationRunnerExecutionChecks, MigrationRunnerSuccessValue, MigrationRunnerFailure, SchemaIssue, ControlExtensionDescriptor, ControlFamilyInstance, VerifyDatabaseResult, VerifyDatabaseSchemaResult, SignDatabaseResult, EmitContractResult } from '@prisma-next/core-control-plane/types';
2
+ import { ControlTargetDescriptor, ControlTargetInstance, MigrationOperationPolicy, MigrationPlannerSuccessResult, MigrationPlan, MigrationPlanOperation, MigrationPlannerFailureResult, MigrationPlannerConflict, ControlDriverInstance, OperationContext, MigrationRunnerExecutionChecks, MigrationRunnerSuccessValue, MigrationRunnerFailure, SchemaIssue, ControlExtensionDescriptor } from '@prisma-next/core-control-plane/types';
3
3
  import { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';
4
4
  import { SqlSchemaIR } from '@prisma-next/sql-schema-ir/types';
5
5
  import { Result } from '@prisma-next/utils/result';
6
- import { ContractIR } from '@prisma-next/contract/ir';
7
- import { TypesImportSpec } from '@prisma-next/contract/types';
8
- import { CoreSchemaView } from '@prisma-next/core-control-plane/schema-view';
9
- import { OperationRegistry } from '@prisma-next/operations';
6
+ import { S as SqlControlFamilyInstance } from './instance-DiZi2k_2.js';
10
7
 
11
8
  /**
12
9
  * SQL-specific migration types.
@@ -25,7 +22,7 @@ type AnyRecord = Readonly<Record<string, unknown>>;
25
22
  * The planner emits these as migration operations, and the verifier uses the pure verification
26
23
  * hook to check satisfaction against the schema IR.
27
24
  */
28
- interface ComponentDatabaseDependency<TTargetDetails = Record<string, never>> {
25
+ interface ComponentDatabaseDependency<TTargetDetails> {
29
26
  /** Stable identifier for the dependency (e.g. 'postgres.extension.vector') */
30
27
  readonly id: string;
31
28
  /** Human label for output (e.g. 'Enable vector extension') */
@@ -46,7 +43,7 @@ interface ComponentDatabaseDependency<TTargetDetails = Record<string, never>> {
46
43
  /**
47
44
  * Database dependencies declared by a framework component.
48
45
  */
49
- interface ComponentDatabaseDependencies<TTargetDetails = Record<string, never>> {
46
+ interface ComponentDatabaseDependencies<TTargetDetails> {
50
47
  /**
51
48
  * Dependencies required for db init.
52
49
  * Future: update dependencies can be added later (e.g. widening/destructive).
@@ -83,7 +80,7 @@ interface SqlMigrationPlanOperationTarget<TTargetDetails> {
83
80
  * A single SQL migration operation with SQL-specific fields.
84
81
  * Extends the core MigrationPlanOperation with SQL execution details.
85
82
  */
86
- interface SqlMigrationPlanOperation<TTargetDetails = Record<string, never>> extends MigrationPlanOperation {
83
+ interface SqlMigrationPlanOperation<TTargetDetails> extends MigrationPlanOperation {
87
84
  /** Optional detailed explanation of what this operation does and why. */
88
85
  readonly summary?: string;
89
86
  readonly target: SqlMigrationPlanOperationTarget<TTargetDetails>;
@@ -103,7 +100,7 @@ interface SqlMigrationPlanContractInfo {
103
100
  * A SQL migration plan with SQL-specific fields.
104
101
  * Extends the core MigrationPlan with origin tracking and metadata.
105
102
  */
106
- interface SqlMigrationPlan<TTargetDetails = Record<string, never>> extends MigrationPlan {
103
+ interface SqlMigrationPlan<TTargetDetails> extends MigrationPlan {
107
104
  /**
108
105
  * Origin contract identity that the plan expects the database to currently be at.
109
106
  * If omitted, the runner treats the origin as "no marker present" (empty database),
@@ -157,7 +154,7 @@ interface SqlPlannerFailureResult extends Omit<MigrationPlannerFailureResult, 'c
157
154
  /**
158
155
  * Union type for SQL planner results.
159
156
  */
160
- type SqlPlannerResult<TTargetDetails = Record<string, never>> = SqlPlannerSuccessResult<TTargetDetails> | SqlPlannerFailureResult;
157
+ type SqlPlannerResult<TTargetDetails> = SqlPlannerSuccessResult<TTargetDetails> | SqlPlannerFailureResult;
161
158
  /**
162
159
  * Options for SQL migration planner.
163
160
  */
@@ -177,20 +174,20 @@ interface SqlMigrationPlannerPlanOptions {
177
174
  * SQL migration planner interface.
178
175
  * Extends the core MigrationPlanner with SQL-specific types.
179
176
  */
180
- interface SqlMigrationPlanner<TTargetDetails = Record<string, never>> {
177
+ interface SqlMigrationPlanner<TTargetDetails> {
181
178
  plan(options: SqlMigrationPlannerPlanOptions): SqlPlannerResult<TTargetDetails>;
182
179
  }
183
180
  /**
184
181
  * Callbacks for SQL migration runner execution.
185
182
  */
186
- interface SqlMigrationRunnerExecuteCallbacks<TTargetDetails = Record<string, never>> {
183
+ interface SqlMigrationRunnerExecuteCallbacks<TTargetDetails> {
187
184
  onOperationStart?(operation: SqlMigrationPlanOperation<TTargetDetails>): void;
188
185
  onOperationComplete?(operation: SqlMigrationPlanOperation<TTargetDetails>): void;
189
186
  }
190
187
  /**
191
188
  * Options for SQL migration runner execution.
192
189
  */
193
- interface SqlMigrationRunnerExecuteOptions<TTargetDetails = Record<string, never>> {
190
+ interface SqlMigrationRunnerExecuteOptions<TTargetDetails> {
194
191
  readonly plan: SqlMigrationPlan<TTargetDetails>;
195
192
  readonly driver: ControlDriverInstance<'sql', string>;
196
193
  /**
@@ -245,14 +242,14 @@ type SqlMigrationRunnerResult = Result<SqlMigrationRunnerSuccessValue, SqlMigrat
245
242
  * SQL migration runner interface.
246
243
  * Extends the core MigrationRunner with SQL-specific types.
247
244
  */
248
- interface SqlMigrationRunner<TTargetDetails = Record<string, never>> {
245
+ interface SqlMigrationRunner<TTargetDetails> {
249
246
  execute(options: SqlMigrationRunnerExecuteOptions<TTargetDetails>): Promise<SqlMigrationRunnerResult>;
250
247
  }
251
248
  /**
252
249
  * SQL control target descriptor with migration support.
253
250
  * Extends the core ControlTargetDescriptor with SQL-specific migration methods.
254
251
  */
255
- interface SqlControlTargetDescriptor<TTargetId extends string, TTargetDetails = Record<string, never>> extends ControlTargetDescriptor<'sql', TTargetId, ControlTargetInstance<'sql', TTargetId>, SqlControlFamilyInstance> {
252
+ interface SqlControlTargetDescriptor<TTargetId extends string, TTargetDetails> extends ControlTargetDescriptor<'sql', TTargetId, ControlTargetInstance<'sql', TTargetId>, SqlControlFamilyInstance> {
256
253
  /**
257
254
  * Creates a SQL migration planner for this target.
258
255
  * Direct method for SQL-specific usage.
@@ -275,115 +272,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
275
272
  readonly meta?: AnyRecord;
276
273
  }
277
274
 
278
- /**
279
- * Type metadata for SQL storage types.
280
- * Maps contract storage type IDs to native database types.
281
- */
282
- interface SqlTypeMetadata {
283
- readonly typeId: string;
284
- readonly familyId: 'sql';
285
- readonly targetId: string;
286
- readonly nativeType?: string;
287
- }
288
- /**
289
- * Registry mapping type IDs to their metadata.
290
- * Keyed by contract storage type ID (e.g., 'pg/int4@1').
291
- */
292
- type SqlTypeMetadataRegistry = Map<string, SqlTypeMetadata>;
293
- /**
294
- * State fields for SQL family instance that hold assembly data.
295
- */
296
- interface SqlFamilyInstanceState {
297
- readonly operationRegistry: OperationRegistry;
298
- readonly codecTypeImports: ReadonlyArray<TypesImportSpec>;
299
- readonly operationTypeImports: ReadonlyArray<TypesImportSpec>;
300
- readonly extensionIds: ReadonlyArray<string>;
301
- readonly typeMetadataRegistry: SqlTypeMetadataRegistry;
302
- }
303
- /**
304
- * Options for schema verification.
305
- */
306
- interface SchemaVerifyOptions {
307
- readonly driver: ControlDriverInstance<'sql', string>;
308
- readonly contractIR: unknown;
309
- readonly strict: boolean;
310
- readonly context?: OperationContext;
311
- /**
312
- * Active framework components participating in this composition.
313
- * All components must have matching familyId ('sql') and targetId.
314
- */
315
- readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>;
316
- }
317
- /**
318
- * SQL control family instance interface.
319
- * Extends ControlFamilyInstance with SQL-specific domain actions.
320
- */
321
- interface SqlControlFamilyInstance extends ControlFamilyInstance<'sql'>, SqlFamilyInstanceState {
322
- /**
323
- * Validates a contract JSON and returns a validated ContractIR (without mappings).
324
- * Mappings are runtime-only and should not be part of ContractIR.
325
- */
326
- validateContractIR(contractJson: unknown): ContractIR;
327
- /**
328
- * Verifies the database marker against the contract.
329
- * Compares target, coreHash, and profileHash.
330
- */
331
- verify(options: {
332
- readonly driver: ControlDriverInstance<'sql', string>;
333
- readonly contractIR: unknown;
334
- readonly expectedTargetId: string;
335
- readonly contractPath: string;
336
- readonly configPath?: string;
337
- }): Promise<VerifyDatabaseResult>;
338
- /**
339
- * Verifies the database schema against the contract.
340
- * Compares contract requirements against live database schema.
341
- */
342
- schemaVerify(options: SchemaVerifyOptions): Promise<VerifyDatabaseSchemaResult>;
343
- /**
344
- * Signs the database with the contract marker.
345
- * Writes or updates the contract marker if schema verification passes.
346
- * This operation is idempotent - if the marker already matches, no changes are made.
347
- */
348
- sign(options: {
349
- readonly driver: ControlDriverInstance<'sql', string>;
350
- readonly contractIR: unknown;
351
- readonly contractPath: string;
352
- readonly configPath?: string;
353
- }): Promise<SignDatabaseResult>;
354
- /**
355
- * Introspects the database schema and returns a family-specific schema IR.
356
- *
357
- * This is a read-only operation that returns a snapshot of the live database schema.
358
- * The method is family-owned and delegates to target/adapter-specific introspectors
359
- * to perform the actual schema introspection.
360
- *
361
- * @param options - Introspection options
362
- * @param options.driver - Control plane driver for database connection
363
- * @param options.contractIR - Optional contract IR for contract-guided introspection.
364
- * When provided, families may use it for filtering, optimization, or validation
365
- * during introspection. The contract IR does not change the meaning of "what exists"
366
- * in the database - it only guides how introspection is performed.
367
- * @returns Promise resolving to the family-specific Schema IR (e.g., `SqlSchemaIR` for SQL).
368
- * The IR represents the complete schema snapshot at the time of introspection.
369
- */
370
- introspect(options: {
371
- readonly driver: ControlDriverInstance<'sql', string>;
372
- readonly contractIR?: unknown;
373
- }): Promise<SqlSchemaIR>;
374
- /**
375
- * Projects a SQL Schema IR into a core schema view for CLI visualization.
376
- * Converts SqlSchemaIR (tables, columns, indexes, extensions) into a tree structure.
377
- */
378
- toSchemaView(schema: SqlSchemaIR): CoreSchemaView;
379
- /**
380
- * Emits contract JSON and DTS as strings.
381
- * Uses the instance's preassembled state (operation registry, type imports, extension IDs).
382
- * Handles stripping mappings and validation internally.
383
- */
384
- emitContract(options: {
385
- readonly contractIR: ContractIR | unknown;
386
- }): Promise<EmitContractResult>;
387
- }
388
-
389
- export type { AnyRecord as A, CreateSqlMigrationPlanOptions as C, SqlControlFamilyInstance as S, SqlControlTargetDescriptor as a, SqlMigrationPlan as b, SqlPlannerConflict as c, SqlPlannerFailureResult as d, SqlPlannerSuccessResult as e, SqlMigrationRunnerErrorCode as f, SqlMigrationRunnerFailure as g, SqlMigrationRunnerSuccessValue as h, SchemaVerifyOptions as i, ComponentDatabaseDependencies as j, ComponentDatabaseDependency as k, SqlControlExtensionDescriptor as l, SqlMigrationPlanContractInfo as m, SqlMigrationPlanner as n, SqlMigrationPlannerPlanOptions as o, SqlMigrationPlanOperation as p, SqlMigrationPlanOperationStep as q, SqlMigrationPlanOperationTarget as r, SqlMigrationRunner as s, SqlMigrationRunnerExecuteCallbacks as t, SqlMigrationRunnerExecuteOptions as u, SqlMigrationRunnerResult as v, SqlPlannerConflictKind as w, SqlPlannerConflictLocation as x, SqlPlannerResult as y };
275
+ export type { AnyRecord as A, CreateSqlMigrationPlanOptions as C, SqlControlTargetDescriptor as S, SqlMigrationPlan as a, SqlPlannerConflict as b, SqlPlannerFailureResult as c, SqlPlannerSuccessResult as d, SqlMigrationRunnerErrorCode as e, SqlMigrationRunnerFailure as f, SqlMigrationRunnerSuccessValue as g, ComponentDatabaseDependencies as h, ComponentDatabaseDependency as i, SqlControlExtensionDescriptor as j, SqlMigrationPlanContractInfo as k, SqlMigrationPlanner as l, SqlMigrationPlannerPlanOptions as m, SqlMigrationPlanOperation as n, SqlMigrationPlanOperationStep as o, SqlMigrationPlanOperationTarget as p, SqlMigrationRunner as q, SqlMigrationRunnerExecuteCallbacks as r, SqlMigrationRunnerExecuteOptions as s, SqlMigrationRunnerResult as t, SqlPlannerConflictKind as u, SqlPlannerConflictLocation as v, SqlPlannerResult as w };
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@prisma-next/family-sql",
3
- "version": "0.1.0-pr.71.1",
3
+ "version": "0.1.0-pr.72.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "SQL family descriptor for Prisma Next",
7
7
  "dependencies": {
8
8
  "arktype": "^2.0.0",
9
- "@prisma-next/cli": "0.1.0-pr.71.1",
10
- "@prisma-next/contract": "0.1.0-pr.71.1",
11
- "@prisma-next/core-control-plane": "0.1.0-pr.71.1",
12
- "@prisma-next/core-execution-plane": "0.1.0-pr.71.1",
13
- "@prisma-next/runtime-executor": "0.1.0-pr.71.1",
14
- "@prisma-next/sql-contract-emitter": "0.1.0-pr.71.1",
15
- "@prisma-next/sql-contract-ts": "0.1.0-pr.71.1",
16
- "@prisma-next/sql-contract": "0.1.0-pr.71.1",
17
- "@prisma-next/sql-operations": "0.1.0-pr.71.1",
18
- "@prisma-next/operations": "0.1.0-pr.71.1",
19
- "@prisma-next/sql-relational-core": "0.1.0-pr.71.1",
20
- "@prisma-next/sql-runtime": "0.1.0-pr.71.1",
21
- "@prisma-next/sql-schema-ir": "0.1.0-pr.71.1",
22
- "@prisma-next/utils": "0.1.0-pr.71.1"
9
+ "@prisma-next/contract": "0.1.0-pr.72.2",
10
+ "@prisma-next/core-control-plane": "0.1.0-pr.72.2",
11
+ "@prisma-next/cli": "0.1.0-pr.72.2",
12
+ "@prisma-next/core-execution-plane": "0.1.0-pr.72.2",
13
+ "@prisma-next/operations": "0.1.0-pr.72.2",
14
+ "@prisma-next/runtime-executor": "0.1.0-pr.72.2",
15
+ "@prisma-next/sql-contract-emitter": "0.1.0-pr.72.2",
16
+ "@prisma-next/sql-contract": "0.1.0-pr.72.2",
17
+ "@prisma-next/sql-contract-ts": "0.1.0-pr.72.2",
18
+ "@prisma-next/sql-operations": "0.1.0-pr.72.2",
19
+ "@prisma-next/sql-relational-core": "0.1.0-pr.72.2",
20
+ "@prisma-next/sql-runtime": "0.1.0-pr.72.2",
21
+ "@prisma-next/sql-schema-ir": "0.1.0-pr.72.2",
22
+ "@prisma-next/utils": "0.1.0-pr.72.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitest/coverage-v8": "^4.0.0",
@@ -27,7 +27,7 @@
27
27
  "typescript": "^5.9.3",
28
28
  "vite-tsconfig-paths": "^5.1.4",
29
29
  "vitest": "^4.0.16",
30
- "@prisma-next/driver-postgres": "0.1.0-pr.71.1",
30
+ "@prisma-next/driver-postgres": "0.1.0-pr.72.2",
31
31
  "@prisma-next/test-utils": "0.0.1"
32
32
  },
33
33
  "files": [
@@ -64,7 +64,7 @@
64
64
  "test": "vitest run",
65
65
  "test:coverage": "vitest run --coverage",
66
66
  "typecheck": "tsc --project tsconfig.json --noEmit",
67
- "lint": "biome check . --error-on-warnings",
67
+ "lint": "biome check . --config-path ../../../../biome.json --error-on-warnings",
68
68
  "clean": "node ../../../../scripts/clean.mjs"
69
69
  }
70
70
  }