@volter/twin-pinecone 0.1.0 → 0.1.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.
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
// readOnly mode, mirroring how this repo's POST-transport GraphQL packs gate readOnly per-
|
|
46
46
|
// mutation rather than by HTTP method — see linear-state.ts).
|
|
47
47
|
import { createHash } from 'node:crypto';
|
|
48
|
-
import { applyTwinWrite, projectResources } from '@volter/world-core';
|
|
48
|
+
import { applyTwinWrite, projectResources, worldNow } from '@volter/world-core';
|
|
49
49
|
import { matchesFilter } from "./pinecone-filter.js";
|
|
50
50
|
import { scoreVector, sortByScore } from "./pinecone-similarity.js";
|
|
51
51
|
const SERVICE = 'pinecone';
|
|
@@ -129,7 +129,7 @@ function parseBody(body) {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function nowIso(occurredAt) {
|
|
132
|
-
return occurredAt ??
|
|
132
|
+
return occurredAt ?? worldNow();
|
|
133
133
|
}
|
|
134
134
|
// ── kernel subject ids (type-prefixed; D1) ──────────────────────────────────────────────────
|
|
135
135
|
function indexKey(name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/twin-pinecone",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Local Pinecone twin for the vector-database surface: index/collection management (control plane), vector upsert/fetch/update/delete, REAL brute-force cosine/dotproduct/euclidean similarity query with a REAL Mongo-style metadata-filter evaluator, namespaces, and host-split control/data-plane routing, built on @volter/world-core.",
|
|
5
5
|
"author": "Volter (https://github.com/volter-ai)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"postpack": "node ../../../scripts/publish/prepare-publish.mjs postpack"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@volter/world-core": "2.0.
|
|
38
|
+
"@volter/world-core": "2.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/bun": "^1.2.20",
|
|
42
42
|
"@types/node": "^24.0.0",
|
|
43
|
-
"@volter/world-core": "2.0.
|
|
43
|
+
"@volter/world-core": "2.0.1",
|
|
44
44
|
"@volter/world-tooling": "0.1.0",
|
|
45
45
|
"@pinecone-database/pinecone": "^8.0.0",
|
|
46
46
|
"typescript": "^5.9.0"
|
package/src/pinecone-twin.ts
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
// readOnly mode, mirroring how this repo's POST-transport GraphQL packs gate readOnly per-
|
|
46
46
|
// mutation rather than by HTTP method — see linear-state.ts).
|
|
47
47
|
import { createHash } from 'node:crypto';
|
|
48
|
-
import { applyTwinWrite, projectResources } from '@volter/world-core';
|
|
48
|
+
import { applyTwinWrite, projectResources, worldNow } from '@volter/world-core';
|
|
49
49
|
import { matchesFilter, type PineconeFilter } from './pinecone-filter.ts';
|
|
50
50
|
import { scoreVector, sortByScore, type PineconeMetric } from './pinecone-similarity.ts';
|
|
51
51
|
|
|
@@ -151,7 +151,7 @@ function parseBody(body?: string): Record<string, unknown> {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
function nowIso(occurredAt?: string): string {
|
|
154
|
-
return occurredAt ??
|
|
154
|
+
return occurredAt ?? worldNow();
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
// ── kernel subject ids (type-prefixed; D1) ──────────────────────────────────────────────────
|