@memtensor/memos-cloud-openclaw-plugin 0.1.8-beta.4 → 0.1.8-beta.5

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.
@@ -2,7 +2,7 @@
2
2
  "id": "memos-cloud-openclaw-plugin",
3
3
  "name": "MemOS Cloud OpenClaw Plugin",
4
4
  "description": "MemOS Cloud recall + add memory via lifecycle hooks",
5
- "version": "0.1.8-beta.4",
5
+ "version": "0.1.8-beta.5",
6
6
  "kind": "lifecycle",
7
7
  "main": "./index.js",
8
8
  "configSchema": {
@@ -7,7 +7,7 @@ import os from "os";
7
7
 
8
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
9
 
10
- const CHECK_INTERVAL = 1 * 60 * 1000; // 1 minute
10
+ const CHECK_INTERVAL = 12 * 60 * 60 * 1000; // 12 hours
11
11
  const PLUGIN_NAME = "@memtensor/memos-cloud-openclaw-plugin";
12
12
  const CHECK_FILE = path.join(os.tmpdir(), "memos_openclaw_update_check.json");
13
13
 
@@ -110,15 +110,13 @@ export function startUpdateChecker(log) {
110
110
  }
111
111
 
112
112
  const runCheck = async () => {
113
- log.info?.(`${ANSI.CYAN}[memos-cloud] Starting update check sequence...${ANSI.RESET}`);
114
-
115
113
  // TRULY PREVENT LOOPS: The instant we start a check, record the time BEFORE any network or processing happens.
116
114
  // This absolutely guarantees that even if the network hangs, NPM crashes, or openclaw update causes an immediate hot reload,
117
115
  // the system has already advanced the 12-hour/1-min clock and will NOT re-enter this function on boot.
118
116
  try {
119
117
  fs.writeFileSync(CHECK_FILE, JSON.stringify({ time: Date.now() }));
120
118
  } catch (e) {
121
- log.warn?.(`${ANSI.RED}[memos-cloud] Failed to write initial timestamp file: ${e.message}${ANSI.RESET}`);
119
+ log.warn?.(`${ANSI.RED}[memos-cloud] Failed to write timestamp file: ${e.message}${ANSI.RESET}`);
122
120
  }
123
121
 
124
122
  const currentVersion = getPackageVersion();
@@ -128,12 +126,10 @@ export function startUpdateChecker(log) {
128
126
  }
129
127
 
130
128
  try {
131
- log.info?.(`${ANSI.CYAN}[memos-cloud] Fetching latest version for ${PLUGIN_NAME} from registry...${ANSI.RESET}`);
132
129
  const latestVersion = await getLatestVersion(log);
133
130
 
134
131
  // Normal version check
135
132
  if (compareVersions(latestVersion, currentVersion) <= 0) {
136
- log.info?.(`${ANSI.GREEN}[memos-cloud] No update needed. Current: ${currentVersion}, Latest: ${latestVersion}${ANSI.RESET}`);
137
133
  return;
138
134
  }
139
135
 
@@ -2,7 +2,7 @@
2
2
  "id": "memos-cloud-openclaw-plugin",
3
3
  "name": "MemOS Cloud OpenClaw Plugin",
4
4
  "description": "MemOS Cloud recall + add memory via lifecycle hooks",
5
- "version": "0.1.8-beta.4",
5
+ "version": "0.1.8-beta.5",
6
6
  "kind": "lifecycle",
7
7
  "main": "./index.js",
8
8
  "configSchema": {
@@ -2,7 +2,7 @@
2
2
  "id": "memos-cloud-openclaw-plugin",
3
3
  "name": "MemOS Cloud OpenClaw Plugin",
4
4
  "description": "MemOS Cloud recall + add memory via lifecycle hooks",
5
- "version": "0.1.8-beta.4",
5
+ "version": "0.1.8-beta.5",
6
6
  "kind": "lifecycle",
7
7
  "main": "./index.js",
8
8
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memtensor/memos-cloud-openclaw-plugin",
3
- "version": "0.1.8-beta.4",
3
+ "version": "0.1.8-beta.5",
4
4
  "description": "OpenClaw lifecycle plugin for MemOS Cloud (add + recall memory)",
5
5
  "scripts": {
6
6
  "sync-version": "node scripts/sync-version.js",