@prisma-next/extension-pgvector 0.3.0-pr.93.5 → 0.3.0-pr.96.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.
- package/dist/{chunk-SHWLERB3.js → chunk-OI5XEHIN.js} +8 -1
- package/dist/chunk-OI5XEHIN.js.map +1 -0
- package/dist/core/descriptor-meta.d.ts +3 -0
- package/dist/core/descriptor-meta.d.ts.map +1 -1
- package/dist/exports/control.js +1 -1
- package/dist/exports/pack.d.ts +3 -0
- package/dist/exports/pack.d.ts.map +1 -1
- package/dist/exports/pack.js +1 -1
- package/dist/exports/runtime.js +1 -1
- package/package.json +17 -17
- package/src/core/descriptor-meta.ts +7 -0
- package/dist/chunk-SHWLERB3.js.map +0 -1
|
@@ -28,6 +28,13 @@ var pgvectorPackMeta = {
|
|
|
28
28
|
package: "@prisma-next/extension-pgvector/codec-types",
|
|
29
29
|
named: "CodecTypes",
|
|
30
30
|
alias: "PgVectorTypes"
|
|
31
|
+
},
|
|
32
|
+
// Parameterized codec renderers for type emission.
|
|
33
|
+
// The renderer template produces precise TypeScript types like Vector<1536>
|
|
34
|
+
// when columns have typeParams with a `length` property.
|
|
35
|
+
// Note: The Vector<N> type import is deferred to Phase 6.
|
|
36
|
+
parameterized: {
|
|
37
|
+
[pgvectorTypeId]: "Vector<{{length}}>"
|
|
31
38
|
}
|
|
32
39
|
},
|
|
33
40
|
operationTypes: {
|
|
@@ -57,4 +64,4 @@ export {
|
|
|
57
64
|
pgvectorPackMeta,
|
|
58
65
|
pgvectorRuntimeOperation
|
|
59
66
|
};
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-OI5XEHIN.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\n/**\n * Shared operation definition used by both pack metadata and runtime descriptor.\n * Frozen to prevent accidental mutation.\n */\nconst cosineDistanceOperation = Object.freeze({\n method: 'cosineDistance',\n args: [{ kind: 'param' }],\n returns: { kind: 'builtin', type: 'number' },\n lowering: cosineLowering,\n} as const);\n\nexport const pgvectorPackMeta = {\n kind: 'extension',\n id: 'pgvector',\n familyId: 'sql',\n targetId: 'postgres',\n version: '0.0.1',\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 // Parameterized codec renderers for type emission.\n // The renderer template produces precise TypeScript types like Vector<1536>\n // when columns have typeParams with a `length` property.\n // Note: The Vector<N> type import is deferred to Phase 6.\n parameterized: {\n [pgvectorTypeId]: 'Vector<{{length}}>',\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 ...cosineDistanceOperation,\n },\n ],\n} as const satisfies ExtensionPackRef<'sql', 'postgres'>;\n\nexport const pgvectorRuntimeOperation: SqlOperationSignature = {\n forTypeId: pgvectorTypeId,\n ...cosineDistanceOperation,\n};\n"],"mappings":";AAGA,IAAM,iBAAiB;AAEvB,IAAM,iBAAiB;AAAA,EACrB,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AACZ;AAMA,IAAM,0BAA0B,OAAO,OAAO;AAAA,EAC5C,QAAQ;AAAA,EACR,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC;AAAA,EACxB,SAAS,EAAE,MAAM,WAAW,MAAM,SAAS;AAAA,EAC3C,UAAU;AACZ,CAAU;AAEH,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;AAAA;AAAA;AAAA;AAAA,MAKA,eAAe;AAAA,QACb,CAAC,cAAc,GAAG;AAAA,MACpB;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,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAEO,IAAM,2BAAkD;AAAA,EAC7D,WAAW;AAAA,EACX,GAAG;AACL;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta.d.ts","sourceRoot":"","sources":["../../src/core/descriptor-meta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAqBzE,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"descriptor-meta.d.ts","sourceRoot":"","sources":["../../src/core/descriptor-meta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAqBzE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C2B,CAAC;AAEzD,eAAO,MAAM,wBAAwB,EAAE,qBAGtC,CAAC"}
|
package/dist/exports/control.js
CHANGED
package/dist/exports/pack.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../src/exports/pack.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../src/exports/pack.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmB,CAAC;AAEtC,eAAe,YAAY,CAAC"}
|
package/dist/exports/pack.js
CHANGED
package/dist/exports/runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-pgvector",
|
|
3
|
-
"version": "0.3.0-pr.
|
|
3
|
+
"version": "0.3.0-pr.96.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"arktype": "^2.0.0",
|
|
8
|
-
"@prisma-next/cli": "0.3.0-pr.
|
|
9
|
-
"@prisma-next/contract": "0.3.0-pr.
|
|
10
|
-
"@prisma-next/
|
|
11
|
-
"@prisma-next/
|
|
12
|
-
"@prisma-next/sql
|
|
13
|
-
"@prisma-next/sql-
|
|
14
|
-
"@prisma-next/
|
|
15
|
-
"@prisma-next/sql-runtime": "0.3.0-pr.
|
|
16
|
-
"@prisma-next/sql-schema-ir": "0.3.0-pr.
|
|
8
|
+
"@prisma-next/cli": "0.3.0-pr.96.1",
|
|
9
|
+
"@prisma-next/contract": "0.3.0-pr.96.1",
|
|
10
|
+
"@prisma-next/core-control-plane": "0.3.0-pr.96.1",
|
|
11
|
+
"@prisma-next/contract-authoring": "0.3.0-pr.96.1",
|
|
12
|
+
"@prisma-next/family-sql": "0.3.0-pr.96.1",
|
|
13
|
+
"@prisma-next/sql-operations": "0.3.0-pr.96.1",
|
|
14
|
+
"@prisma-next/sql-relational-core": "0.3.0-pr.96.1",
|
|
15
|
+
"@prisma-next/sql-runtime": "0.3.0-pr.96.1",
|
|
16
|
+
"@prisma-next/sql-schema-ir": "0.3.0-pr.96.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsup": "8.5.1",
|
|
20
20
|
"typescript": "5.9.3",
|
|
21
21
|
"vitest": "4.0.16",
|
|
22
|
-
"@prisma-next/adapter-postgres": "0.3.0-pr.
|
|
23
|
-
"@prisma-next/operations": "0.3.0-pr.
|
|
24
|
-
"@prisma-next/sql-contract": "0.3.0-pr.
|
|
25
|
-
"@prisma-next/sql-contract-ts": "0.3.0-pr.
|
|
26
|
-
"@prisma-next/sql-lane": "0.3.0-pr.
|
|
22
|
+
"@prisma-next/adapter-postgres": "0.3.0-pr.96.1",
|
|
23
|
+
"@prisma-next/operations": "0.3.0-pr.96.1",
|
|
24
|
+
"@prisma-next/sql-contract": "0.3.0-pr.96.1",
|
|
25
|
+
"@prisma-next/sql-contract-ts": "0.3.0-pr.96.1",
|
|
26
|
+
"@prisma-next/sql-lane": "0.3.0-pr.96.1",
|
|
27
27
|
"@prisma-next/test-utils": "0.0.1",
|
|
28
28
|
"@prisma-next/tsconfig": "0.0.0"
|
|
29
29
|
},
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
|
-
"build": "tsup && tsc",
|
|
62
|
+
"build": "tsup --config tsup.config.ts && tsc --project tsconfig.build.json",
|
|
63
63
|
"test": "vitest run",
|
|
64
64
|
"test:coverage": "vitest run --coverage",
|
|
65
|
-
"typecheck": "tsc --noEmit",
|
|
65
|
+
"typecheck": "tsc --project tsconfig.json --noEmit",
|
|
66
66
|
"lint": "biome check . --error-on-warnings",
|
|
67
67
|
"lint:fix": "biome check --write .",
|
|
68
68
|
"lint:fix:unsafe": "biome check --write --unsafe .",
|
|
@@ -38,6 +38,13 @@ export const pgvectorPackMeta = {
|
|
|
38
38
|
named: 'CodecTypes',
|
|
39
39
|
alias: 'PgVectorTypes',
|
|
40
40
|
},
|
|
41
|
+
// Parameterized codec renderers for type emission.
|
|
42
|
+
// The renderer template produces precise TypeScript types like Vector<1536>
|
|
43
|
+
// when columns have typeParams with a `length` property.
|
|
44
|
+
// Note: The Vector<N> type import is deferred to Phase 6.
|
|
45
|
+
parameterized: {
|
|
46
|
+
[pgvectorTypeId]: 'Vector<{{length}}>',
|
|
47
|
+
},
|
|
41
48
|
},
|
|
42
49
|
operationTypes: {
|
|
43
50
|
import: {
|
|
@@ -1 +0,0 @@
|
|
|
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\n/**\n * Shared operation definition used by both pack metadata and runtime descriptor.\n * Frozen to prevent accidental mutation.\n */\nconst cosineDistanceOperation = Object.freeze({\n method: 'cosineDistance',\n args: [{ kind: 'param' }],\n returns: { kind: 'builtin', type: 'number' },\n lowering: cosineLowering,\n} as const);\n\nexport const pgvectorPackMeta = {\n kind: 'extension',\n id: 'pgvector',\n familyId: 'sql',\n targetId: 'postgres',\n version: '0.0.1',\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 ...cosineDistanceOperation,\n },\n ],\n} as const satisfies ExtensionPackRef<'sql', 'postgres'>;\n\nexport const pgvectorRuntimeOperation: SqlOperationSignature = {\n forTypeId: pgvectorTypeId,\n ...cosineDistanceOperation,\n};\n"],"mappings":";AAGA,IAAM,iBAAiB;AAEvB,IAAM,iBAAiB;AAAA,EACrB,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AACZ;AAMA,IAAM,0BAA0B,OAAO,OAAO;AAAA,EAC5C,QAAQ;AAAA,EACR,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC;AAAA,EACxB,SAAS,EAAE,MAAM,WAAW,MAAM,SAAS;AAAA,EAC3C,UAAU;AACZ,CAAU;AAEH,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,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAEO,IAAM,2BAAkD;AAAA,EAC7D,WAAW;AAAA,EACX,GAAG;AACL;","names":[]}
|