Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

chore: fix uninstalled uuid import and bump security-pinned dependencies

[._.]/ Adam Eivyd3a6106967ef
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 9eb4fa0e5f..e1e27ff5c7 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -24,6 +24,7 @@
- **Service extractions** — universe-builder render orchestration, brain bucket cascade/ordering, system folder-open, and reciprocal-rank-fusion moved out of routes into services/lib; the canonPrompt client/server mirror is now enforced by a parity test.
- **Loop fallback crash + durability** — provider fallback no longer crashes loop iterations; loops.json writes are atomic and serialized; cos-runner state races, leaked kill timers, and unguarded close handlers fixed; N+1 issue scans eliminated with an uncapped accessor so >1000-issue installs don't miscount; HF repo-size and Telegram check-in caches bounded.
- **Crash-proofing + UI hygiene** — voice socket handlers can't take down the server on settings-read failures; hung deploy scripts time out instead of wedging the deploy lock; buttons get explicit types, list keys stabilized, theme/notification fetches gain abort/unmount guards.
+- **Dependency security** — Outlook message refresh no longer crashes on an uninstalled `uuid` import; `@protobufjs/utf8` override unpinned from its own CVE (1.1.1), `ws` 8.21.0 override added, eslint/brace-expansion/jsdom updated; npm audit is clean.
- **A watched TUI run no longer false-times-out after finishing its work** — companion fix to *Live TUI runs are now viewable AND drivable in the Shell page* (above). One-shot AI runs that drive a terminal UI (Claude Code, Codex, etc.) write their completed answer to a response file and then return to an interactive prompt **without exiting**. The runner only auto-completed such a run via output-idle — which is paused while you watch it in the Shell page (so it isn't snapped shut mid-read). With the process never exiting and idle paused, a watched run had no terminus but the 10-minute hard timeout — at which point it was marked **failed**, its already-written result was **discarded**, and a useless fallback retry ran in its place. The runner now watches for the response file as the model's authoritative "done" signal and completes the run the moment it's written — even while you're watching — since once the file exists the task is genuinely finished. A second safety net salvages the file on hard timeout: if the result was written but completion stalled for any other reason, the run finishes as **success** with that result instead of throwing it away and falling back. So a long editorial pass you keep open in the Shell tab now lands its findings when the model finishes, instead of silently dying at 10 minutes. (`server/lib/tuiPromptRunner.js`)
diff --git a/client/package.json b/client/package.json
index a666bb093c..79f5a225aa 100644
--- a/client/package.json
+++ b/client/package.json
@@ -30,16 +30,16 @@
"three": "0.184.0"
},
"devDependencies": {
- "@eslint/js": "9.23.0",
+ "@eslint/js": "9.39.4",
"@tailwindcss/postcss": "4.2.1",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.2",
"@testing-library/user-event": "14.6.1",
"@vitejs/plugin-react": "6.0.2",
- "eslint": "9.23.0",
+ "eslint": "9.39.4",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "5.2.0",
- "jsdom": "25.0.1",
+ "jsdom": "26.1.0",
"rollup-plugin-visualizer": "6.0.11",
"tailwindcss": "4.2.1",
"vite": "8.0.16",
@@ -49,7 +49,7 @@
"brace-expansion": "5.0.5",
"socket.io-parser": "4.2.6",
"minimatch@3": {
- "brace-expansion": "1.1.12"
+ "brace-expansion": "1.1.15"
},
"three": "0.184.0"
}
diff --git a/package-lock.json b/package-lock.json
index cc5619144e..d14c302d0f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -103,28 +103,6 @@
}
}
},
- "node_modules/@pm2/js-api/node_modules/ws": {
- "version": "7.5.10",
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
- "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=8.3.0"
- },
- "peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": "^5.0.2"
- },
- "peerDependenciesMeta": {
- "bufferutil": {
- "optional": true
- },
- "utf-8-validate": {
- "optional": true
- }
- }
- },
"node_modules/@pm2/pm2-version-check": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@pm2/pm2-version-check/-/pm2-version-check-1.0.4.tgz",
@@ -1189,9 +1167,9 @@
}
},
"node_modules/ws": {
- "version": "8.20.0",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
- "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
+ "version": "8.21.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
"dev": true,
"license": "MIT",
"engines": {
diff --git a/package.json b/package.json
index 9adf25f70a..339094d624 100644
--- a/package.json
+++ b/package.json
@@ -44,7 +44,8 @@
"brace-expansion": "5.0.5",
"socket.io-parser": "4.2.6",
"protobufjs": "7.5.9",
- "@protobufjs/utf8": "1.1.0",
+ "@protobufjs/utf8": "1.1.1",
+ "ws": "8.21.0",
"ip-address": "10.2.0",
"picomatch": "4.0.4",
"postcss": "8.5.15",
diff --git a/server/package.json b/server/package.json
index cd60a66631..de39edec95 100644
--- a/server/package.json
+++ b/server/package.json
@@ -25,7 +25,7 @@
"sharp": "0.34.5",
"socket.io": "4.8.3",
"socket.io-client": "4.8.3",
- "ws": "8.20.1",
+ "ws": "8.21.0",
"zod": "^4.4.3"
},
"devDependencies": {
@@ -41,7 +41,8 @@
"qs": "6.15.2",
"socket.io-parser": "4.2.6",
"protobufjs": "7.5.9",
- "@protobufjs/utf8": "1.1.0",
+ "@protobufjs/utf8": "1.1.1",
+ "ws": "8.21.0",
"ip-address": "10.2.0",
"picomatch": "4.0.4",
"postcss": "8.5.15",
diff --git a/server/services/messageSync.js b/server/services/messageSync.js
index 8f73402c7d..a4df2f72be 100644
--- a/server/services/messageSync.js
+++ b/server/services/messageSync.js
@@ -1,7 +1,9 @@
+import { createHash } from 'crypto';
import { join } from 'path';
import { atomicWrite, ensureDir, filterBySearch as genericFilterBySearch, PATHS, safeDate, safeJSONParse, UUID_RE, tryReadFile } from '../lib/fileUtils.js';
import { getAccount, updateSyncStatus } from './messageAccounts.js';
+import { v4 as uuidv4 } from '../lib/uuid.js';
const CACHE_DIR = join(PATHS.messages, 'cache');
const syncLocks = new Map();
@@ -228,10 +230,8 @@ export async function refreshMessage(accountId, messageId) {
return { error: 'extraction-failed', message: 'Could not extract message content — the message may not be visible in the Outlook inbox' };
}
- const { default: crypto } = await import('crypto');
- const { v4: uuidv4 } = await import('uuid');
function makeExternalId(date, sender, subject) {
- return 'pw-' + crypto.createHash('md5').update(`${date}|${sender}|${subject}`).digest('hex').slice(0, 12);
+ return 'pw-' + createHash('md5').update(`${date}|${sender}|${subject}`).digest('hex').slice(0, 12);
}
const threadKey = message.threadId || `thread-${message.externalId || messageId}`;