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: replace Autofixer separate app with PortOS default app in sample data
Adam Eivy00276fe46341
diff --git a/.changelog/v0.10.29.md b/.changelog/v0.10.29.mdindex 9d6750ccb7..00cd6e7042 100644--- a/.changelog/v0.10.29.md+++ b/.changelog/v0.10.29.md@@ -316,6 +316,11 @@ This release introduces a structured changelog documentation system for creating## 🐛 Fixes+### Default App Setup on Fresh Install+- **Removed PortOS Autofixer as separate app**: The Autofixer is part of PortOS itself, not a standalone app - removed it from the sample apps.json+- **PortOS self-registers on fresh install**: New installs now include PortOS as a default app with correct process definitions (server, UI, CoS, autofixer, browser)+- **Dynamic repoPath resolution**: The setup script now replaces a `__PORTOS_ROOT__` placeholder with the actual install path so the PortOS app entry points to the real directory+### 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 qualitydiff --git a/data.sample/apps.json b/data.sample/apps.jsonindex 083e65efbf..c73f2ed264 100644--- a/data.sample/apps.json+++ b/data.sample/apps.json@@ -1,25 +1,61 @@{"apps": {- "portos-autofixer": {- "id": "portos-autofixer",- "name": "PortOS Autofixer",- "description": "Autonomous PM2 crash detection and repair using Claude CLI",- "repoPath": "/path/to/PortOS",+ "portos-default": {+ "id": "portos-default",+ "name": "PortOS",+ "description": "Local App OS portal for dev machines",+ "repoPath": "__PORTOS_ROOT__","type": "express",- "uiPort": 5560,- "apiPort": null,+ "uiPort": 5555,+ "apiPort": 5554,"startCommands": [- "pm2 start ecosystem.config.cjs --only portos-autofixer,portos-autofixer-ui"+ "npm run dev"],"pm2ProcessNames": [+ "portos-server",+ "portos-cos",+ "portos-ui","portos-autofixer",- "portos-autofixer-ui"+ "portos-autofixer-ui",+ "portos-browser"],- "envFile": null,- "icon": null,+ "envFile": ".env",+ "icon": "portos","editorCommand": "code .","createdAt": "2024-01-01T00:00:00.000Z",- "updatedAt": "2024-01-01T00:00:00.000Z"+ "updatedAt": "2024-01-01T00:00:00.000Z",+ "processes": [+ {+ "name": "portos-server",+ "port": 5554,+ "ports": { "api": 5554 }+ },+ {+ "name": "portos-cos",+ "port": 5558,+ "ports": { "api": 5558 }+ },+ {+ "name": "portos-ui",+ "port": 5555,+ "ports": { "ui": 5555 }+ },+ {+ "name": "portos-autofixer",+ "port": 5559,+ "ports": { "api": 5559 }+ },+ {+ "name": "portos-autofixer-ui",+ "port": 5560,+ "ports": { "ui": 5560 }+ },+ {+ "name": "portos-browser",+ "port": 5556,+ "ports": { "cdp": 5556, "health": 5557 }+ }+ ]},"example-app-1": {"id": "example-app-1",diff --git a/scripts/setup-data.js b/scripts/setup-data.jsindex 127f920d95..106040ec63 100644--- a/scripts/setup-data.js+++ b/scripts/setup-data.js@@ -1,5 +1,5 @@#!/usr/bin/env node-import { existsSync, mkdirSync, cpSync, readdirSync, statSync } from 'fs';+import { existsSync, mkdirSync, cpSync, readdirSync, statSync, readFileSync, writeFileSync } from 'fs';import { dirname, join } from 'path';import { fileURLToPath } from 'url';@@ -14,6 +14,17 @@ if (!existsSync(dataDir)) {console.log('📁 Creating data directory from data.sample...');mkdirSync(dataDir, { recursive: true });cpSync(sampleDir, dataDir, { recursive: true });++ // Replace __PORTOS_ROOT__ placeholder with actual install path in apps.json+ const appsFile = join(dataDir, 'apps.json');+ if (existsSync(appsFile)) {+ const content = readFileSync(appsFile, 'utf8');+ if (content.includes('__PORTOS_ROOT__')) {+ writeFileSync(appsFile, content.replace(/__PORTOS_ROOT__/g, rootDir));+ console.log(`📍 Set PortOS repoPath to ${rootDir}`);+ }+ }+console.log('✅ Data directory created');} else {// Ensure all subdirectories exist without overwriting existing files