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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs: add missing changelog entries for S1, S6, S10 security fixes
Adam Eivyf06b02ea443f
diff --git a/.changelog/v0.16.x.md b/.changelog/v0.16.x.mdindex cd61939dfe..fbc0e5778c 100644--- a/.changelog/v0.16.x.md+++ b/.changelog/v0.16.x.md@@ -20,6 +20,10 @@ Agent persistence, reliability, and decision transparency improvements.- **PUT endpoint preserves existing secrets** -- when the client omits `apiKey` or sends `***` for secret env vars, the server merges with existing values instead of overwriting- **Client form updated** -- API key field starts empty on edit with a placeholder indicating whether a key is already set; only sends a new key value when the user explicitly types one+### Error context sanitized before Socket.IO broadcasts+- **Previously**, the error handler broadcast the full `context` object to all connected clients via `error:occurred` events, potentially including API keys, tokens, and other secrets from the error context+- **Now filters sensitive keys** (`apiKey`, `token`, `secret`, `password`, `credential`, `authorization`, `bearer`, `envVars`, `secretEnvVars`) from the context before emitting to clients; full context is still logged server-side+### PTY shell sessions no longer leak environment secrets- **Previously**, `pty.spawn()` spread the entire `process.env` into shell sessions, exposing API keys, tokens, and other secrets to anyone running `env` in the terminal- **Now uses an explicit allowlist** of safe environment variable prefixes (`PATH`, `HOME`, `SHELL`, toolchain vars like `NVM_`, `GOPATH`, etc.) so only standard/non-sensitive variables are passed through@@ -89,6 +93,12 @@ Agent persistence, reliability, and decision transparency improvements.- **Now uses `safeJSONParse`** from `fileUtils.js` with appropriate fallbacks: `null` for AI response parsing (graceful degradation to raw-response paths), `[]` for PM2 process lists, `{}` for script metadata, default state for CoS state file- **Files fixed**: `digital-twin.js` (11 locations across 7 AI-response parser functions and Spotify import), `cos.js` (4 locations: state loading, PM2 parsing, script metadata, report reading)+### npm dependency CVEs patched+- Ran `npm audit fix` in `server/` -- 12 packages added, 59 removed, 25 changed; fixed vulnerabilities in systeminformation (command injection), lodash (prototype pollution), and qs (DoS). Only remaining advisory is a pm2 ReDoS with no upstream fix available++### Added explicit radix to all parseInt calls+- `parseInt` calls in `agents.js`, `git.js`, and `productivity.js` now pass radix 10 explicitly, preventing accidental octal/hex parsing from string prefixes+### Fixed byModelTier data corruption in task type reset- **Model tier metrics drifted from reality** -- `resetTaskTypeLearning()` subtracted counts from `byTaskType`, `errorPatterns`, `routingAccuracy`, and `totals`, but never touched `byModelTier`; after rehabilitation resets, the heavy tier showed 653 completed / 3 succeeded (0.46% success) due to accumulated historical data that was cleared from other structures but not from tier metrics- **Now subtracts routing accuracy data from byModelTier** -- when a task type is reset, its per-tier succeeded/failed counts are decremented from the corresponding `byModelTier` entries, with duration estimated proportionally from the task type's average