mr-memory 3.7.3 → 3.7.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.
- package/index.js +1 -0
- package/index.ts +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { readFile, lstat, writeFile, copyFile, mkdir } from "node:fs/promises";
|
|
11
11
|
import { join, resolve, relative, isAbsolute, sep, dirname } from "node:path";
|
|
12
|
+
import os from "node:os";
|
|
12
13
|
const DEFAULT_ENDPOINT = "https://api.memoryrouter.ai";
|
|
13
14
|
/** Strip media-attached references and OpenClaw media instruction text so
|
|
14
15
|
* old screenshots/photos/audio don't get stored and re-injected forever. */
|
package/index.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import { readFile, readdir, stat, lstat, writeFile, copyFile, mkdir } from "node:fs/promises";
|
|
12
12
|
import { join, resolve, relative, isAbsolute, sep, dirname } from "node:path";
|
|
13
13
|
import path from "node:path";
|
|
14
|
+
import os from "node:os";
|
|
14
15
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
15
16
|
|
|
16
17
|
const DEFAULT_ENDPOINT = "https://api.memoryrouter.ai";
|