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

fix: remove debug console.log statements from Media.jsx

Adam Eivy8f96e8fd32b1
diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.md
index 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 provider
diff --git a/client/src/components/soul/SoulWizard.jsx b/client/src/components/digital-twin/SoulWizard.jsx
similarity index 100%
rename from client/src/components/soul/SoulWizard.jsx
rename to client/src/components/digital-twin/SoulWizard.jsx
diff --git a/client/src/components/soul/constants.js b/client/src/components/digital-twin/constants.js
similarity index 100%
rename from client/src/components/soul/constants.js
rename to client/src/components/digital-twin/constants.js
diff --git a/client/src/components/soul/tabs/DocumentsTab.jsx b/client/src/components/digital-twin/tabs/DocumentsTab.jsx
similarity index 100%
rename from client/src/components/soul/tabs/DocumentsTab.jsx
rename to client/src/components/digital-twin/tabs/DocumentsTab.jsx
diff --git a/client/src/components/soul/tabs/EnrichTab.jsx b/client/src/components/digital-twin/tabs/EnrichTab.jsx
similarity index 100%
rename from client/src/components/soul/tabs/EnrichTab.jsx
rename to client/src/components/digital-twin/tabs/EnrichTab.jsx
diff --git a/client/src/components/soul/tabs/ExportTab.jsx b/client/src/components/digital-twin/tabs/ExportTab.jsx
similarity index 100%
rename from client/src/components/soul/tabs/ExportTab.jsx
rename to client/src/components/digital-twin/tabs/ExportTab.jsx
diff --git a/client/src/components/soul/tabs/OverviewTab.jsx b/client/src/components/digital-twin/tabs/OverviewTab.jsx
similarity index 100%
rename from client/src/components/soul/tabs/OverviewTab.jsx
rename to client/src/components/digital-twin/tabs/OverviewTab.jsx
diff --git a/client/src/components/soul/tabs/TestTab.jsx b/client/src/components/digital-twin/tabs/TestTab.jsx
similarity index 100%
rename from client/src/components/soul/tabs/TestTab.jsx
rename to client/src/components/digital-twin/tabs/TestTab.jsx
diff --git a/client/src/pages/Soul.jsx b/client/src/pages/DigitalTwin.jsx
similarity index 100%
rename from client/src/pages/Soul.jsx
rename to client/src/pages/DigitalTwin.jsx
diff --git a/client/src/pages/Media.jsx b/client/src/pages/Media.jsx
index 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 AudioContext
if (audioContextRef.current.state === 'suspended') {
await audioContextRef.current.resume();
- console.log(`🎤 AudioContext resumed: ${audioContextRef.current.state}`);
}
// Play audio element
await 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 stream
if (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 analyzer
if (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 prompt
setAudioNeedsInteraction(true);
setupAudioAnalyser(audioRef.current); // Set up analyser anyway for when user enables
diff --git a/data.sample/soul/BEHAVIORAL_TEST_SUITE.md b/data.sample/digital-twin/BEHAVIORAL_TEST_SUITE.md
similarity index 100%
rename from data.sample/soul/BEHAVIORAL_TEST_SUITE.md
rename to data.sample/digital-twin/BEHAVIORAL_TEST_SUITE.md
diff --git a/data.sample/soul/SOUL.md b/data.sample/digital-twin/DIGITAL_TWIN.md
similarity index 100%
rename from data.sample/soul/SOUL.md
rename to data.sample/digital-twin/DIGITAL_TWIN.md
diff --git a/data.sample/soul/SOUL_GUIDE.md b/data.sample/digital-twin/DIGITAL_TWIN_GUIDE.md
similarity index 100%
rename from data.sample/soul/SOUL_GUIDE.md
rename to data.sample/digital-twin/DIGITAL_TWIN_GUIDE.md
diff --git a/data.sample/soul/meta.json b/data.sample/digital-twin/meta.json
similarity index 100%
rename from data.sample/soul/meta.json
rename to data.sample/digital-twin/meta.json
diff --git a/server/lib/soulValidation.js b/server/lib/digitalTwinValidation.js
similarity index 100%
rename from server/lib/soulValidation.js
rename to server/lib/digitalTwinValidation.js
diff --git a/server/routes/soul.js b/server/routes/digital-twin.js
similarity index 100%
rename from server/routes/soul.js
rename to server/routes/digital-twin.js
diff --git a/server/services/soul.js b/server/services/digital-twin.js
similarity index 100%
rename from server/services/soul.js
rename to server/services/digital-twin.js