@memvid/sdk 2.0.117 → 2.0.120
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/index.js
CHANGED
|
@@ -387,6 +387,12 @@ class MemvidImpl {
|
|
|
387
387
|
async getTable(tableId, format) {
|
|
388
388
|
return wrapAsync(() => this.core.getTable(tableId, format ?? "dict"));
|
|
389
389
|
}
|
|
390
|
+
async view(frameId) {
|
|
391
|
+
return wrapAsync(() => this.core.view(frameId));
|
|
392
|
+
}
|
|
393
|
+
async viewByUri(uri) {
|
|
394
|
+
return wrapAsync(() => this.core.viewByUri(uri));
|
|
395
|
+
}
|
|
390
396
|
}
|
|
391
397
|
const useImpl = (async (kind, filename, apiKey, options) => {
|
|
392
398
|
const normalised = normaliseApiKey(apiKey);
|
package/dist/types.d.ts
CHANGED
|
@@ -185,6 +185,8 @@ export interface NativeMemvid {
|
|
|
185
185
|
putPdfTables(pdfPath: string, embedRows?: boolean): Promise<TableExtractionResult>;
|
|
186
186
|
listTables(): Promise<TableInfo[]>;
|
|
187
187
|
getTable(tableId: string, format?: string): Promise<TableData | string>;
|
|
188
|
+
view(frameId: number): Promise<string>;
|
|
189
|
+
viewByUri(uri: string): Promise<string>;
|
|
188
190
|
}
|
|
189
191
|
export interface MemoryBinding {
|
|
190
192
|
memory_id: string;
|
|
@@ -239,6 +241,16 @@ export interface Memvid {
|
|
|
239
241
|
putPdfTables(pdfPath: string, embedRows?: boolean): Promise<TableExtractionResult>;
|
|
240
242
|
listTables(): Promise<TableInfo[]>;
|
|
241
243
|
getTable(tableId: string, format?: string): Promise<TableData | string>;
|
|
244
|
+
/**
|
|
245
|
+
* View the full text content of a frame by frame ID.
|
|
246
|
+
* Use this to retrieve complete frame payload without truncation.
|
|
247
|
+
*/
|
|
248
|
+
view(frameId: number): Promise<string>;
|
|
249
|
+
/**
|
|
250
|
+
* View the full text content of a frame by URI.
|
|
251
|
+
* Use this to retrieve complete frame payload without truncation.
|
|
252
|
+
*/
|
|
253
|
+
viewByUri(uri: string): Promise<string>;
|
|
242
254
|
tools: unknown;
|
|
243
255
|
functions: unknown;
|
|
244
256
|
nodes: unknown;
|
package/index.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memvid/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.120",
|
|
4
4
|
"description": "Single-file AI memory system for Node.js. Store, search, and query documents with built-in RAG.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"dist/**/*",
|
|
16
16
|
"index.node",
|
|
17
17
|
"memvid_sdk.darwin-arm64.node",
|
|
18
|
-
"memvid_sdk.
|
|
18
|
+
"memvid_sdk.darwin-x64.node",
|
|
19
|
+
"memvid_sdk.linux-x64-gnu.node",
|
|
20
|
+
"memvid_sdk.win32-x64-msvc.node"
|
|
19
21
|
],
|
|
20
22
|
"scripts": {
|
|
21
23
|
"build": "tsc -p tsconfig.json",
|