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
fix: remove debug console.log statements from Media.jsx
Adam Eivy8f96e8fd32b1
diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.mdindex d35142430a..cae7bb21e3 100644--- a/.changelog/v0.10.x.md+++ b/.changelog/v0.10.x.md@@ -47,33 +47,46 @@ This release introduces a structured changelog documentation system for creating- **Folder Browser**: Added a folder picker button to browse and select project directories visually- **Templates Auto-Default**: Templates page now automatically sets the target directory without requiring folder selection-### Soul - Digital Twin Identity System-- **Soul Documents**: New `/soul` page for managing identity scaffold documents that define persona, values, and cognitive style-- **Document Management**: View, edit, create, and delete soul markdown documents organized by category (core, audio, behavioral, enrichment)+### Digital Twin - Identity System+- **Digital Twin Documents**: New `/digital-twin` page for managing identity scaffold documents that define persona, values, and cognitive style+- **Document Management**: View, edit, create, and delete digital twin markdown documents organized by category (core, audio, behavioral, enrichment)- **Multi-Model Behavioral Testing**: Run 14 behavioral alignment tests against multiple AI providers/models simultaneously with side-by-side comparison-- **Enrichment System**: Guided questionnaire across 13 categories (memories, favorites, values, routines, non-negotiables, decision heuristics, error intolerance, etc.) that generates soul document content from answers-- **Export Formats**: Export soul for use in external LLMs as System Prompt, CLAUDE.md, JSON, or individual files-- **CoS Integration**: Soul context automatically injected into Chief of Staff agent prompts when enabled-- **Identity Navigation Group**: Brain and Soul now grouped under "Identity" section in navigation+- **Enrichment System**: Guided questionnaire across 14 categories (memories, favorites, values, routines, non-negotiables, decision heuristics, error intolerance, personality assessments, etc.) that generates document content from answers+- **Export Formats**: Export digital twin for use in external LLMs as System Prompt, CLAUDE.md, JSON, or individual files+- **CoS Integration**: Digital twin context automatically injected into Chief of Staff agent prompts when enabled+- **Identity Navigation Group**: Brain and Digital Twin now grouped under "Identity" section in navigation-### Soul Enhancement: Reliable Digital Twins+### Digital Twin Enhancement: Reliable Identity Scaffolds- **Completeness Validator**: New API endpoint and UI showing percentage of required identity sections covered (identity, values, communication, decision making, non-negotiables, error intolerance) with actionable suggestions for missing sections-- **Contradiction Detector**: AI-powered analysis to detect inconsistencies and conflicting statements across soul documents with severity levels and resolution suggestions-- **Dynamic Test Generation**: Generate behavioral tests automatically based on soul content - tests values in action, communication style, non-negotiables, and decision patterns+- **Contradiction Detector**: AI-powered analysis to detect inconsistencies and conflicting statements across digital twin documents with severity levels and resolution suggestions+- **Dynamic Test Generation**: Generate behavioral tests automatically based on digital twin content - tests values in action, communication style, non-negotiables, and decision patterns- **Writing Sample Analysis**: Paste writing samples to extract your authentic voice patterns (sentence structure, vocabulary, formality, tone) and automatically generate a WRITING_STYLE.md document-- **Soul Creation Wizard**: 5-step guided wizard for new users covering identity basics, core values, communication style, decision making, and non-negotiables+- **Creation Wizard**: 5-step guided wizard for new users covering identity basics, core values, communication style, decision making, and non-negotiables- **Document Weighting**: Priority slider (1-10) on each document - higher weighted documents are preserved first when context limits force truncation-- **New Enrichment Categories**: Added non_negotiables, decision_heuristics, and error_intolerance categories with 3 preset questions each-- **Best Practices Documentation**: Added SOUL_GUIDE.md with comprehensive guidance on creating effective soul documents+- **New Enrichment Categories**: Added non_negotiables, decision_heuristics, error_intolerance, and personality_assessments categories with 3 preset questions each+- **Best Practices Documentation**: Added DIGITAL_TWIN_GUIDE.md with comprehensive guidance on creating effective digital twin documents-### Soul - Mobile Responsive Design-- **Mobile-First Layout**: Complete responsive redesign of the Soul page and all tabs for mobile devices+### Digital Twin - Mobile Responsive Design+- **Mobile-First Layout**: Complete responsive redesign of the Digital Twin page and all tabs for mobile devices- **Adaptive Document Editor**: Documents list and editor use stacked layout on mobile with back navigation- **Touch-Friendly Controls**: All buttons and interactive elements have 40px+ minimum touch targets for accessibility- **Responsive Grids**: Category grids, test provider selections, and export options adapt from multi-column to single-column on small screens- **Horizontal Tab Scrolling**: Tab navigation scrolls horizontally on narrow screens with hidden scrollbar- **Mobile-Optimized Forms**: Enrichment questionnaire, wizard, and all modals display properly on mobile with appropriate spacing+### Digital Twin - Personality Assessments+- **New Enrichment Category**: Added `personality_assessments` enrichment category for capturing Myers-Briggs, Big Five (OCEAN), Enneagram, DISC, StrengthsFinder, and other personality type results+- **Preset Questions**: Three guided questions covering MBTI type variations, Big Five trait scores, and other assessment results+- **PERSONALITY.md Target**: Answers enriched into a dedicated PERSONALITY.md core document+- **Support for Type Variance**: Questions acknowledge that people may test differently at different times (e.g., ENTJ/ENTP/INTJ/INTP for those near the middle on E/I and J/P dimensions)++### Digital Twin Rebranding+- **Soul → Digital Twin**: Renamed the entire "Soul" feature to "Digital Twin" for clearer terminology+- **Route Changes**: `/soul` routes now at `/digital-twin`+- **API Endpoints**: `/api/soul` endpoints now at `/api/digital-twin`+- **Data Directory**: `data/soul/` renamed to `data/digital-twin/`+- **Backwards Compatibility**: Legacy function names and imports aliased for backwards compatibility+## 🔧 Improvements### Release Process@@ -90,6 +103,9 @@ This release introduces a structured changelog documentation system for creating## 🐛 Fixes+### Media Page Debug Logs Cleanup+- **Removed Debug Console Logs**: Cleaned up 10 `console.log` statements from `client/src/pages/Media.jsx` that were left over from AudioContext debugging - improves production code quality+### CoS Agent Provider/Model Validation- **Provider Override Support**: Tasks specifying a `provider` in metadata now correctly use that provider instead of always using the active provider- **Model Compatibility Validation**: When spawning agents, models are now validated against the target provider's model list - prevents invalid combinations like using Claude models with the Codex CLI providerdiff --git a/client/src/components/soul/SoulWizard.jsx b/client/src/components/digital-twin/SoulWizard.jsxsimilarity index 100%rename from client/src/components/soul/SoulWizard.jsxrename to client/src/components/digital-twin/SoulWizard.jsxdiff --git a/client/src/components/soul/constants.js b/client/src/components/digital-twin/constants.jssimilarity index 100%rename from client/src/components/soul/constants.jsrename to client/src/components/digital-twin/constants.jsdiff --git a/client/src/components/soul/tabs/DocumentsTab.jsx b/client/src/components/digital-twin/tabs/DocumentsTab.jsxsimilarity index 100%rename from client/src/components/soul/tabs/DocumentsTab.jsxrename to client/src/components/digital-twin/tabs/DocumentsTab.jsxdiff --git a/client/src/components/soul/tabs/EnrichTab.jsx b/client/src/components/digital-twin/tabs/EnrichTab.jsxsimilarity index 100%rename from client/src/components/soul/tabs/EnrichTab.jsxrename to client/src/components/digital-twin/tabs/EnrichTab.jsxdiff --git a/client/src/components/soul/tabs/ExportTab.jsx b/client/src/components/digital-twin/tabs/ExportTab.jsxsimilarity index 100%rename from client/src/components/soul/tabs/ExportTab.jsxrename to client/src/components/digital-twin/tabs/ExportTab.jsxdiff --git a/client/src/components/soul/tabs/OverviewTab.jsx b/client/src/components/digital-twin/tabs/OverviewTab.jsxsimilarity index 100%rename from client/src/components/soul/tabs/OverviewTab.jsxrename to client/src/components/digital-twin/tabs/OverviewTab.jsxdiff --git a/client/src/components/soul/tabs/TestTab.jsx b/client/src/components/digital-twin/tabs/TestTab.jsxsimilarity index 100%rename from client/src/components/soul/tabs/TestTab.jsxrename to client/src/components/digital-twin/tabs/TestTab.jsxdiff --git a/client/src/pages/Soul.jsx b/client/src/pages/DigitalTwin.jsxsimilarity index 100%rename from client/src/pages/Soul.jsxrename to client/src/pages/DigitalTwin.jsxdiff --git a/client/src/pages/Media.jsx b/client/src/pages/Media.jsxindex e0e5266678..5da003476b 100644--- a/client/src/pages/Media.jsx+++ b/client/src/pages/Media.jsx@@ -68,16 +68,12 @@ export default function Media() {}const audioContext = new (window.AudioContext || window.webkitAudioContext)();- console.log(`🎤 AudioContext created, state: ${audioContext.state}`);// Resume AudioContext if suspended (browser autoplay policy)if (audioContext.state === 'suspended') {- console.log(`🎤 AudioContext suspended, attempting resume...`);- await audioContext.resume().catch(err => {- console.error(`❌ Failed to resume AudioContext: ${err.message}`);+ await audioContext.resume().catch(() => {setAudioNeedsInteraction(true);});- console.log(`🎤 AudioContext state after resume: ${audioContext.state}`);}const analyser = audioContext.createAnalyser();@@ -107,23 +103,18 @@ export default function Media() {};updateLevel();- console.log(`🎤 Audio analyser setup complete`);}, []);// Enable audio with user interaction (for mobile browsers)const enableAudio = useCallback(async () => {if (audioRef.current && audioContextRef.current) {- console.log(`🎤 User interaction: attempting to enable audio`);-// Resume AudioContextif (audioContextRef.current.state === 'suspended') {await audioContextRef.current.resume();- console.log(`🎤 AudioContext resumed: ${audioContextRef.current.state}`);}// Play audio elementawait audioRef.current.play();- console.log(`🎤 Audio playback started`);setAudioNeedsInteraction(false);setError(null);@@ -158,19 +149,15 @@ export default function Media() {// Set video source to server streamif (videoRef.current && videoEnabled) {videoRef.current.src = `${protocol}//${window.location.hostname}:5554/api/media/video?t=${timestamp}`;- console.log(`📹 Video stream URL: ${videoRef.current.src}`);}// Set audio source to server stream and set up analyzerif (audioRef.current && audioEnabled) {audioRef.current.src = `${protocol}//${window.location.hostname}:5554/api/media/audio?t=${timestamp}`;- console.log(`🎤 Audio stream URL: ${audioRef.current.src}`);audioRef.current.play().then(() => {- console.log(`🎤 Audio playback started successfully`);setupAudioAnalyser(audioRef.current);- }).catch(err => {- console.error(`❌ Audio playback error: ${err.message}`);+ }).catch(() => {// On mobile browsers, autoplay is often blocked - show interaction promptsetAudioNeedsInteraction(true);setupAudioAnalyser(audioRef.current); // Set up analyser anyway for when user enablesdiff --git a/data.sample/soul/BEHAVIORAL_TEST_SUITE.md b/data.sample/digital-twin/BEHAVIORAL_TEST_SUITE.mdsimilarity index 100%rename from data.sample/soul/BEHAVIORAL_TEST_SUITE.mdrename to data.sample/digital-twin/BEHAVIORAL_TEST_SUITE.mddiff --git a/data.sample/soul/SOUL.md b/data.sample/digital-twin/DIGITAL_TWIN.mdsimilarity index 100%rename from data.sample/soul/SOUL.mdrename to data.sample/digital-twin/DIGITAL_TWIN.mddiff --git a/data.sample/soul/SOUL_GUIDE.md b/data.sample/digital-twin/DIGITAL_TWIN_GUIDE.mdsimilarity index 100%rename from data.sample/soul/SOUL_GUIDE.mdrename to data.sample/digital-twin/DIGITAL_TWIN_GUIDE.mddiff --git a/data.sample/soul/meta.json b/data.sample/digital-twin/meta.jsonsimilarity index 100%rename from data.sample/soul/meta.jsonrename to data.sample/digital-twin/meta.jsondiff --git a/server/lib/soulValidation.js b/server/lib/digitalTwinValidation.jssimilarity index 100%rename from server/lib/soulValidation.jsrename to server/lib/digitalTwinValidation.jsdiff --git a/server/routes/soul.js b/server/routes/digital-twin.jssimilarity index 100%rename from server/routes/soul.jsrename to server/routes/digital-twin.jsdiff --git a/server/services/soul.js b/server/services/digital-twin.jssimilarity index 100%rename from server/services/soul.jsrename to server/services/digital-twin.js