@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mergeExtractedEntities
3
- } from "./chunk-SSUYQJUI.mjs";
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
- message: "Describing extracted images"
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,6 +1,6 @@
1
1
  import {
2
2
  MemoryClient
3
- } from "./chunk-C5HKNVI5.mjs";
3
+ } from "./chunk-27RJJTZH.mjs";
4
4
 
5
5
  // ../dashboard/src/aggregations/consolidation-analytics.ts
6
6
  function analyzeConsolidationLog(entries) {
@@ -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,