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
refactor([export-isplainobject-helper-from-server-lib-objects]): migrate two more inline isPlainObject sites caught by codex review
[._.]/ Adam Eivy41f1c0bc07c1
diff --git a/scripts/check-themes.js b/scripts/check-themes.jsindex d3349175ff..09bc66bf42 100644--- a/scripts/check-themes.js+++ b/scripts/check-themes.js@@ -10,6 +10,7 @@ import {getTheme,normalizeThemeId,} from '../client/src/themes/portosThemes.js';+import { isPlainObject } from '../server/lib/objects.js';const __dirname = dirname(fileURLToPath(import.meta.url));const repoRoot = join(__dirname, '..');@@ -114,14 +115,8 @@ async function main() {assert(theme.accent?.startsWith('#'), `${id} needs a hex accent`);assert(Array.isArray(theme.swatches) && theme.swatches.length >= 4, `${id} needs at least four swatches`);- assert(- theme.colors && typeof theme.colors === 'object' && !Array.isArray(theme.colors),- `${id} colors must be a plain object`,- );- assert(- theme.tokens && typeof theme.tokens === 'object' && !Array.isArray(theme.tokens),- `${id} tokens must be a plain object`,- );+ assert(isPlainObject(theme.colors), `${id} colors must be a plain object`);+ assert(isPlainObject(theme.tokens), `${id} tokens must be a plain object`);for (const varName of REQUIRED_COLOR_VARS) {assertRgbChannels(theme.colors[varName], id, varName);diff --git a/server/scripts/moltbook-probe.mjs b/server/scripts/moltbook-probe.mjsindex 3e90d83c76..1314ab29d7 100644--- a/server/scripts/moltbook-probe.mjs+++ b/server/scripts/moltbook-probe.mjs@@ -18,6 +18,7 @@import { readFile } from 'fs/promises';import { resolve, dirname } from 'path';import { fileURLToPath } from 'url';+import { isPlainObject } from '../lib/objects.js';const __dirname = dirname(fileURLToPath(import.meta.url));const PROJECT_ROOT = resolve(__dirname, '..', '..');@@ -97,7 +98,7 @@ async function rawRequest(apiKey, method, endpoint, body = null) {// Also check nested objects for challenge fieldsfor (const [key, value] of Object.entries(data)) {- if (value && typeof value === 'object' && !Array.isArray(value)) {+ if (isPlainObject(value)) {const nestedFound = Object.keys(value).filter(k => challengeKeys.includes(k.toLowerCase()));if (nestedFound.length > 0) {console.log(`\n🔐 NESTED CHALLENGE in "${key}"! Keys: ${nestedFound.join(', ')}`);