@prisma-next/extension-pgvector 0.1.0-pr.65.10 → 0.1.0-pr.65.12
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/exports/{chunk-YZ7VDBYT.js → chunk-QZXQPESZ.js} +2 -2
- package/dist/exports/{chunk-YZ7VDBYT.js.map → chunk-QZXQPESZ.js.map} +1 -1
- package/dist/exports/control.js +1 -1
- package/dist/exports/pack.d.ts +50 -3
- package/dist/exports/pack.js +1 -1
- package/dist/exports/pack.js.map +1 -1
- package/dist/exports/runtime.js +1 -1
- package/package.json +16 -16
|
@@ -16,7 +16,7 @@ var pgvectorPackMeta = {
|
|
|
16
16
|
id: "pgvector",
|
|
17
17
|
familyId: "sql",
|
|
18
18
|
targetId: "postgres",
|
|
19
|
-
version: "
|
|
19
|
+
version: "0.0.1",
|
|
20
20
|
capabilities: {
|
|
21
21
|
postgres: {
|
|
22
22
|
"pgvector/cosine": true
|
|
@@ -57,4 +57,4 @@ export {
|
|
|
57
57
|
pgvectorPackMeta,
|
|
58
58
|
pgvectorRuntimeOperation
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-QZXQPESZ.js.map
|
|
@@ -1 +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: '
|
|
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":[]}
|
package/dist/exports/control.js
CHANGED
package/dist/exports/pack.d.ts
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const pgvectorPack: {
|
|
2
|
+
readonly kind: "extension";
|
|
3
|
+
readonly id: "pgvector";
|
|
4
|
+
readonly familyId: "sql";
|
|
5
|
+
readonly targetId: "postgres";
|
|
6
|
+
readonly version: "0.0.1";
|
|
7
|
+
readonly capabilities: {
|
|
8
|
+
readonly postgres: {
|
|
9
|
+
readonly 'pgvector/cosine': true;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly types: {
|
|
13
|
+
readonly codecTypes: {
|
|
14
|
+
readonly import: {
|
|
15
|
+
readonly package: "@prisma-next/extension-pgvector/codec-types";
|
|
16
|
+
readonly named: "CodecTypes";
|
|
17
|
+
readonly alias: "PgVectorTypes";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly operationTypes: {
|
|
21
|
+
readonly import: {
|
|
22
|
+
readonly package: "@prisma-next/extension-pgvector/operation-types";
|
|
23
|
+
readonly named: "OperationTypes";
|
|
24
|
+
readonly alias: "PgVectorOperationTypes";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly storage: readonly [{
|
|
28
|
+
readonly typeId: "pg/vector@1";
|
|
29
|
+
readonly familyId: "sql";
|
|
30
|
+
readonly targetId: "postgres";
|
|
31
|
+
readonly nativeType: "vector";
|
|
32
|
+
}];
|
|
33
|
+
};
|
|
34
|
+
readonly operations: readonly [{
|
|
35
|
+
readonly method: "cosineDistance";
|
|
36
|
+
readonly args: readonly [{
|
|
37
|
+
readonly kind: "param";
|
|
38
|
+
}];
|
|
39
|
+
readonly returns: {
|
|
40
|
+
readonly kind: "builtin";
|
|
41
|
+
readonly type: "number";
|
|
42
|
+
};
|
|
43
|
+
readonly lowering: {
|
|
44
|
+
readonly targetFamily: "sql";
|
|
45
|
+
readonly strategy: "function";
|
|
46
|
+
readonly template: "1 - ({{self}} <=> {{arg0}})";
|
|
47
|
+
};
|
|
48
|
+
readonly for: "pg/vector@1";
|
|
49
|
+
}];
|
|
50
|
+
};
|
|
4
51
|
|
|
5
52
|
export { pgvectorPack as default };
|
package/dist/exports/pack.js
CHANGED
package/dist/exports/pack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/exports/pack.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../../src/exports/pack.ts"],"sourcesContent":["import { pgvectorPackMeta } from '../core/descriptor-meta';\n\nconst pgvectorPack = pgvectorPackMeta;\n\nexport default pgvectorPack;\n"],"mappings":";;;;;AAEA,IAAM,eAAe;AAErB,IAAO,eAAQ;","names":[]}
|
package/dist/exports/runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-pgvector",
|
|
3
|
-
"version": "0.1.0-pr.65.
|
|
3
|
+
"version": "0.1.0-pr.65.12",
|
|
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.
|
|
9
|
-
"@prisma-next/contract": "0.1.0-pr.65.
|
|
10
|
-
"@prisma-next/contract-authoring": "0.1.0-pr.65.
|
|
11
|
-
"@prisma-next/core-control-plane": "0.1.0-pr.65.
|
|
12
|
-
"@prisma-next/family-sql": "0.1.0-pr.65.
|
|
13
|
-
"@prisma-next/sql-operations": "0.1.0-pr.65.
|
|
14
|
-
"@prisma-next/sql-relational-core": "0.1.0-pr.65.
|
|
15
|
-
"@prisma-next/sql-runtime": "0.1.0-pr.65.
|
|
16
|
-
"@prisma-next/sql-schema-ir": "0.1.0-pr.65.
|
|
8
|
+
"@prisma-next/cli": "0.1.0-pr.65.12",
|
|
9
|
+
"@prisma-next/contract": "0.1.0-pr.65.12",
|
|
10
|
+
"@prisma-next/contract-authoring": "0.1.0-pr.65.12",
|
|
11
|
+
"@prisma-next/core-control-plane": "0.1.0-pr.65.12",
|
|
12
|
+
"@prisma-next/family-sql": "0.1.0-pr.65.12",
|
|
13
|
+
"@prisma-next/sql-operations": "0.1.0-pr.65.12",
|
|
14
|
+
"@prisma-next/sql-relational-core": "0.1.0-pr.65.12",
|
|
15
|
+
"@prisma-next/sql-runtime": "0.1.0-pr.65.12",
|
|
16
|
+
"@prisma-next/sql-schema-ir": "0.1.0-pr.65.12"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@vitest/coverage-v8": "^4.0.0",
|
|
@@ -21,12 +21,12 @@
|
|
|
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.
|
|
25
|
-
"@prisma-next/operations": "0.1.0-pr.65.
|
|
26
|
-
"@prisma-next/sql-contract": "0.1.0-pr.65.
|
|
27
|
-
"@prisma-next/sql-
|
|
28
|
-
"@prisma-next/
|
|
29
|
-
"@prisma-next/
|
|
24
|
+
"@prisma-next/adapter-postgres": "0.1.0-pr.65.12",
|
|
25
|
+
"@prisma-next/operations": "0.1.0-pr.65.12",
|
|
26
|
+
"@prisma-next/sql-contract": "0.1.0-pr.65.12",
|
|
27
|
+
"@prisma-next/sql-lane": "0.1.0-pr.65.12",
|
|
28
|
+
"@prisma-next/test-utils": "0.0.1",
|
|
29
|
+
"@prisma-next/sql-contract-ts": "0.1.0-pr.65.12"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist"
|