@prisma-next/extension-pgvector 0.1.0-pr.65.5 → 0.1.0-pr.65.6

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.
@@ -57,4 +57,4 @@ export {
57
57
  pgvectorPackMeta,
58
58
  pgvectorRuntimeOperation
59
59
  };
60
- //# sourceMappingURL=chunk-3YBBEL3N.js.map
60
+ //# sourceMappingURL=chunk-SSYAAR6F.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/descriptor-meta.ts"],"sourcesContent":["import type { ExtensionPackRef } from '@prisma-next/contract/framework-components';\nimport type { SqlOperationSignature } from '@prisma-next/sql-operations';\n\nconst pgvectorTypeId = 'pg/vector@1' as const;\n\nconst cosineLowering = {\n targetFamily: 'sql',\n strategy: 'function',\n template: '1 - ({{self}} <=> {{arg0}})',\n} as const;\n\nexport const pgvectorPackMeta = {\n kind: 'extension',\n id: 'pgvector',\n familyId: 'sql',\n targetId: 'postgres',\n version: '1.0.0',\n capabilities: {\n postgres: {\n 'pgvector/cosine': true,\n },\n },\n types: {\n codecTypes: {\n import: {\n package: '@prisma-next/extension-pgvector/codec-types',\n named: 'CodecTypes',\n alias: 'PgVectorTypes',\n },\n },\n operationTypes: {\n import: {\n package: '@prisma-next/extension-pgvector/operation-types',\n named: 'OperationTypes',\n alias: 'PgVectorOperationTypes',\n },\n },\n storage: [\n { typeId: pgvectorTypeId, familyId: 'sql', targetId: 'postgres', nativeType: 'vector' },\n ],\n },\n operations: [\n {\n for: pgvectorTypeId,\n method: 'cosineDistance',\n args: [{ kind: 'param' }],\n returns: { kind: 'builtin', type: 'number' },\n lowering: cosineLowering,\n },\n ],\n} as const satisfies ExtensionPackRef<'sql', 'postgres'>;\n\nexport const pgvectorRuntimeOperation: SqlOperationSignature = {\n forTypeId: pgvectorTypeId,\n method: 'cosineDistance',\n args: [{ kind: 'param' }],\n returns: { kind: 'builtin', type: 'number' },\n lowering: cosineLowering,\n};\n"],"mappings":";AAGA,IAAM,iBAAiB;AAEvB,IAAM,iBAAiB;AAAA,EACrB,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AACZ;AAEO,IAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AAAA,EACT,cAAc;AAAA,IACZ,UAAU;AAAA,MACR,mBAAmB;AAAA,IACrB;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,MACV,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,gBAAgB;AAAA,MACd,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,EAAE,QAAQ,gBAAgB,UAAU,OAAO,UAAU,YAAY,YAAY,SAAS;AAAA,IACxF;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV;AAAA,MACE,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC;AAAA,MACxB,SAAS,EAAE,MAAM,WAAW,MAAM,SAAS;AAAA,MAC3C,UAAU;AAAA,IACZ;AAAA,EACF;AACF;AAEO,IAAM,2BAAkD;AAAA,EAC7D,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC;AAAA,EACxB,SAAS,EAAE,MAAM,WAAW,MAAM,SAAS;AAAA,EAC3C,UAAU;AACZ;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pgvectorPackMeta
3
- } from "./chunk-3YBBEL3N.js";
3
+ } from "./chunk-SSYAAR6F.js";
4
4
 
5
5
  // src/exports/control.ts
6
6
  function verifyVectorExtensionInstalled(schema) {
@@ -1,4 +1,4 @@
1
- import { ExtensionPackRef } from '@prisma-next/sql-contract/pack-types';
1
+ import { ExtensionPackRef } from '@prisma-next/contract/framework-components';
2
2
 
3
3
  declare const pgvectorPack: ExtensionPackRef<'sql', 'postgres'>;
4
4
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pgvectorPackMeta
3
- } from "./chunk-3YBBEL3N.js";
3
+ } from "./chunk-SSYAAR6F.js";
4
4
 
5
5
  // src/exports/pack.ts
6
6
  var pgvectorPack = pgvectorPackMeta;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/exports/pack.ts"],"sourcesContent":["import type { ExtensionPackRef } from '@prisma-next/sql-contract/pack-types';\nimport { pgvectorPackMeta } from '../core/descriptor-meta';\n\nconst pgvectorPack: ExtensionPackRef<'sql', 'postgres'> = pgvectorPackMeta;\n\nexport default pgvectorPack;\n"],"mappings":";;;;;AAGA,IAAM,eAAoD;AAE1D,IAAO,eAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/exports/pack.ts"],"sourcesContent":["import type { ExtensionPackRef } from '@prisma-next/contract/framework-components';\nimport { pgvectorPackMeta } from '../core/descriptor-meta';\n\nconst pgvectorPack: ExtensionPackRef<'sql', 'postgres'> = pgvectorPackMeta;\n\nexport default pgvectorPack;\n"],"mappings":";;;;;AAGA,IAAM,eAAoD;AAE1D,IAAO,eAAQ;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pgvectorRuntimeOperation
3
- } from "./chunk-3YBBEL3N.js";
3
+ } from "./chunk-SSYAAR6F.js";
4
4
 
5
5
  // src/exports/runtime.ts
6
6
  import { createCodecRegistry } from "@prisma-next/sql-relational-core/ast";
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@prisma-next/extension-pgvector",
3
- "version": "0.1.0-pr.65.5",
3
+ "version": "0.1.0-pr.65.6",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
7
7
  "arktype": "^2.0.0",
8
- "@prisma-next/cli": "0.1.0-pr.65.5",
9
- "@prisma-next/contract": "0.1.0-pr.65.5",
10
- "@prisma-next/contract-authoring": "0.1.0-pr.65.5",
11
- "@prisma-next/core-control-plane": "0.1.0-pr.65.5",
12
- "@prisma-next/family-sql": "0.1.0-pr.65.5",
13
- "@prisma-next/sql-operations": "0.1.0-pr.65.5",
14
- "@prisma-next/sql-relational-core": "0.1.0-pr.65.5",
15
- "@prisma-next/sql-runtime": "0.1.0-pr.65.5",
16
- "@prisma-next/sql-schema-ir": "0.1.0-pr.65.5"
8
+ "@prisma-next/contract-authoring": "0.1.0-pr.65.6",
9
+ "@prisma-next/core-control-plane": "0.1.0-pr.65.6",
10
+ "@prisma-next/contract": "0.1.0-pr.65.6",
11
+ "@prisma-next/family-sql": "0.1.0-pr.65.6",
12
+ "@prisma-next/sql-operations": "0.1.0-pr.65.6",
13
+ "@prisma-next/sql-relational-core": "0.1.0-pr.65.6",
14
+ "@prisma-next/sql-runtime": "0.1.0-pr.65.6",
15
+ "@prisma-next/cli": "0.1.0-pr.65.6",
16
+ "@prisma-next/sql-schema-ir": "0.1.0-pr.65.6"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@vitest/coverage-v8": "^4.0.0",
@@ -21,11 +21,11 @@
21
21
  "typescript": "^5.9.3",
22
22
  "vite-tsconfig-paths": "^5.1.4",
23
23
  "vitest": "^4.0.16",
24
- "@prisma-next/adapter-postgres": "0.1.0-pr.65.5",
25
- "@prisma-next/operations": "0.1.0-pr.65.5",
26
- "@prisma-next/sql-contract": "0.1.0-pr.65.5",
27
- "@prisma-next/sql-contract-ts": "0.1.0-pr.65.5",
28
- "@prisma-next/sql-lane": "0.1.0-pr.65.5",
24
+ "@prisma-next/adapter-postgres": "0.1.0-pr.65.6",
25
+ "@prisma-next/operations": "0.1.0-pr.65.6",
26
+ "@prisma-next/sql-contract": "0.1.0-pr.65.6",
27
+ "@prisma-next/sql-contract-ts": "0.1.0-pr.65.6",
28
+ "@prisma-next/sql-lane": "0.1.0-pr.65.6",
29
29
  "@prisma-next/test-utils": "0.0.1"
30
30
  },
31
31
  "files": [
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/core/descriptor-meta.ts"],"sourcesContent":["import type { ExtensionPackRef } from '@prisma-next/sql-contract/pack-types';\nimport type { SqlOperationSignature } from '@prisma-next/sql-operations';\n\nconst pgvectorTypeId = 'pg/vector@1' as const;\n\nconst cosineLowering = {\n targetFamily: 'sql',\n strategy: 'function',\n template: '1 - ({{self}} <=> {{arg0}})',\n} as const;\n\nexport const pgvectorPackMeta = {\n kind: 'extension',\n id: 'pgvector',\n familyId: 'sql',\n targetId: 'postgres',\n version: '1.0.0',\n capabilities: {\n postgres: {\n 'pgvector/cosine': true,\n },\n },\n types: {\n codecTypes: {\n import: {\n package: '@prisma-next/extension-pgvector/codec-types',\n named: 'CodecTypes',\n alias: 'PgVectorTypes',\n },\n },\n operationTypes: {\n import: {\n package: '@prisma-next/extension-pgvector/operation-types',\n named: 'OperationTypes',\n alias: 'PgVectorOperationTypes',\n },\n },\n storage: [\n { typeId: pgvectorTypeId, familyId: 'sql', targetId: 'postgres', nativeType: 'vector' },\n ],\n },\n operations: [\n {\n for: pgvectorTypeId,\n method: 'cosineDistance',\n args: [{ kind: 'param' }],\n returns: { kind: 'builtin', type: 'number' },\n lowering: cosineLowering,\n },\n ],\n} as const satisfies ExtensionPackRef<'sql', 'postgres'>;\n\nexport const pgvectorRuntimeOperation: SqlOperationSignature = {\n forTypeId: pgvectorTypeId,\n method: 'cosineDistance',\n args: [{ kind: 'param' }],\n returns: { kind: 'builtin', type: 'number' },\n lowering: cosineLowering,\n};\n"],"mappings":";AAGA,IAAM,iBAAiB;AAEvB,IAAM,iBAAiB;AAAA,EACrB,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AACZ;AAEO,IAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AAAA,EACT,cAAc;AAAA,IACZ,UAAU;AAAA,MACR,mBAAmB;AAAA,IACrB;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,MACV,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,gBAAgB;AAAA,MACd,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,EAAE,QAAQ,gBAAgB,UAAU,OAAO,UAAU,YAAY,YAAY,SAAS;AAAA,IACxF;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV;AAAA,MACE,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC;AAAA,MACxB,SAAS,EAAE,MAAM,WAAW,MAAM,SAAS;AAAA,MAC3C,UAAU;AAAA,IACZ;AAAA,EACF;AACF;AAEO,IAAM,2BAAkD;AAAA,EAC7D,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC;AAAA,EACxB,SAAS,EAAE,MAAM,WAAW,MAAM,SAAS;AAAA,EAC3C,UAAU;AACZ;","names":[]}