@pyxmate/memory 0.29.1 → 0.31.0
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-C5HKNVI5.mjs → chunk-27RJJTZH.mjs} +22 -2
- package/dist/{chunk-XPZ4DUON.mjs → chunk-HXF7EXXP.mjs} +1 -1
- package/dist/{chunk-SSUYQJUI.mjs → chunk-I45LGUJR.mjs} +0 -7
- package/dist/cli/pyx-mem.mjs +104 -14604
- package/dist/dashboard.mjs +3 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.mjs +2 -2
- package/dist/react.mjs +3 -3
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeExtractedEntities
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I45LGUJR.mjs";
|
|
4
4
|
|
|
5
5
|
// ../client/src/memory-client.ts
|
|
6
6
|
var MemoryServerError = class extends Error {
|
|
@@ -319,7 +319,9 @@ var MemoryClient = class {
|
|
|
319
319
|
type: "progress",
|
|
320
320
|
stage: "enrichment",
|
|
321
321
|
filename: file.name,
|
|
322
|
-
|
|
322
|
+
imagesTotal: images.length,
|
|
323
|
+
imagesDescribed: 0,
|
|
324
|
+
message: `Describing extracted images (0/${images.length})`
|
|
323
325
|
};
|
|
324
326
|
const CONCURRENCY = 5;
|
|
325
327
|
for (let i = 0; i < images.length; i += CONCURRENCY) {
|
|
@@ -346,6 +348,15 @@ var MemoryClient = class {
|
|
|
346
348
|
signal
|
|
347
349
|
);
|
|
348
350
|
descriptions.push(...batchResults);
|
|
351
|
+
yield {
|
|
352
|
+
schemaVersion: 1,
|
|
353
|
+
type: "progress",
|
|
354
|
+
stage: "enrichment",
|
|
355
|
+
filename: file.name,
|
|
356
|
+
imagesTotal: images.length,
|
|
357
|
+
imagesDescribed: descriptions.length,
|
|
358
|
+
message: `Described ${descriptions.length}/${images.length} images`
|
|
359
|
+
};
|
|
349
360
|
}
|
|
350
361
|
}
|
|
351
362
|
let entities;
|
|
@@ -586,6 +597,15 @@ var MemoryClient = class {
|
|
|
586
597
|
);
|
|
587
598
|
return result.deleted;
|
|
588
599
|
}
|
|
600
|
+
async setFolder(from, to, options = {}) {
|
|
601
|
+
return this.fetchApi(
|
|
602
|
+
"/api/memory/folders/rename",
|
|
603
|
+
{
|
|
604
|
+
method: "POST",
|
|
605
|
+
body: JSON.stringify({ from, to, dryRun: options.dryRun === true })
|
|
606
|
+
}
|
|
607
|
+
);
|
|
608
|
+
}
|
|
589
609
|
async queryAsOf(asOfDate, filters = {}) {
|
|
590
610
|
const params = new URLSearchParams({ asOf: asOfDate });
|
|
591
611
|
if (filters.type) params.set("type", filters.type);
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
6
|
-
|
|
7
1
|
// ../shared/src/constants/defaults.ts
|
|
8
2
|
var DEFAULTS = {
|
|
9
3
|
DATA_DIR: "./data",
|
|
@@ -105,7 +99,6 @@ var MoveFailureReason = {
|
|
|
105
99
|
var SINGLE_TENANT_ID = "_single";
|
|
106
100
|
|
|
107
101
|
export {
|
|
108
|
-
__export,
|
|
109
102
|
DEFAULTS,
|
|
110
103
|
mergeExtractedEntities,
|
|
111
104
|
NamespaceIsolation,
|