@remnic/plugin-openclaw 1.0.2 → 1.0.4

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.
@@ -8,7 +8,7 @@ import {
8
8
  optionalString,
9
9
  optionalStringArray,
10
10
  validateStringRecord
11
- } from "./chunk-JGEKL3WH.js";
11
+ } from "./chunk-YHH3SXKD.js";
12
12
  import {
13
13
  listJsonFiles,
14
14
  readJsonFile
@@ -11,9 +11,15 @@ var NOOP_LOGGER = {
11
11
  };
12
12
  var _backend = NOOP_LOGGER;
13
13
  var _debug = false;
14
+ var CONSOLE_LOGGER = {
15
+ info: console.info.bind(console),
16
+ warn: console.warn.bind(console),
17
+ error: console.error.bind(console),
18
+ debug: console.debug.bind(console)
19
+ };
14
20
  function initLogger(backend, debug) {
15
- _backend = backend;
16
- _debug = debug;
21
+ _backend = backend ?? CONSOLE_LOGGER;
22
+ _debug = debug ?? false;
17
23
  }
18
24
  var log = {
19
25
  info(msg, ...args) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log
3
- } from "./chunk-DMGIUDBO.js";
3
+ } from "./chunk-UFU5GGGA.js";
4
4
 
5
5
  // ../remnic-core/src/boxes.ts
6
6
  import { mkdir, writeFile, readFile, readdir } from "fs/promises";
@@ -228,7 +228,7 @@ var GraphIndex = class _GraphIndex {
228
228
  }
229
229
  }
230
230
  } catch (err) {
231
- const { log } = await import("./logger-NZE2OBVA.js");
231
+ const { log } = await import("./logger-TNOKCH7X.js");
232
232
  log.warn(`[graph] onMemoryWritten error: ${err}`);
233
233
  } finally {
234
234
  this.edgeCache = null;
@@ -309,7 +309,7 @@ var GraphIndex = class _GraphIndex {
309
309
  graphType: provenance.get(p)?.graphType ?? "entity"
310
310
  })).sort((a, b) => b.score - a.score);
311
311
  } catch (err) {
312
- const { log } = await import("./logger-NZE2OBVA.js");
312
+ const { log } = await import("./logger-TNOKCH7X.js");
313
313
  log.warn(`[graph] spreadingActivation error: ${err}`);
314
314
  return [];
315
315
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CompoundingEngine,
3
3
  defaultTierMigrationCycleBudget
4
- } from "./chunk-L46G4NGI.js";
5
- import "./chunk-Y7JG2Q3V.js";
6
- import "./chunk-DMGIUDBO.js";
4
+ } from "./chunk-J7VGZNH4.js";
5
+ import "./chunk-5VTGFKKU.js";
6
+ import "./chunk-UFU5GGGA.js";
7
7
  import "./chunk-MLKGABMK.js";
8
8
  export {
9
9
  CompoundingEngine,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FallbackLlmClient
3
- } from "./chunk-BIBYVWVY.js";
4
- import "./chunk-DMGIUDBO.js";
3
+ } from "./chunk-3SA5F4WT.js";
4
+ import "./chunk-UFU5GGGA.js";
5
5
  import "./chunk-MLKGABMK.js";
6
6
  export {
7
7
  FallbackLlmClient