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

feat: add autofixer daemon and UI with Tailscale-compatible dynamic hostnames

Adam Eivy8cfbff48c8b9
diff --git a/CLAUDE.md b/CLAUDE.md
index 7fdc937a63..961576c1aa 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -45,6 +45,7 @@ Client → HTTP/WebSocket → Routes (validate) → Services (logic) → JSON fi
- **Functional programming** - no classes, use hooks in React
- **Zod validation** - all route inputs validated via `lib/validation.js`
- **Command allowlist** - shell execution restricted to approved commands only
+- **No hardcoded localhost** - use `window.location.hostname` for URLs; app accessed via Tailscale remotely
- **Single-line logging** - use emoji prefixes and string interpolation, never log full JSON blobs or arrays
```js
console.log(`🚀 Server started on port ${PORT}`);
diff --git a/PLAN.md b/PLAN.md
index 27055b331e..8adbac5e8a 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -39,6 +39,7 @@ pm2 logs
- [x] M10: Enhanced DevTools (provider/model selection, screenshot upload, git status, usage metrics)
- [x] M11: AI Agents Page (process detection, kill ability, colorful UI, expandable details)
- [x] M12: History Improvements (expandable entries, runtime/output capture, full command display)
+- [x] M13: Autofixer Integration (PM2 crash detection, Claude CLI auto-fix, session history UI)
### Documentation
- [Contributing Guide](./docs/CONTRIBUTING.md) - Code guidelines, git workflow
@@ -270,3 +271,47 @@ Enhanced app import with real-time websocket updates as AI discovers project con
|-------|-------------|
| WS /api/detect/stream | Websocket for streaming detection |
| GET /api/detect/pm2-status | Check if app running in PM2 |
+
+---
+
+## M13: Autofixer Integration
+
+Autonomous crash detection and repair using Claude CLI.
+
+### Architecture
+- **Daemon Process** (`autofixer/server.js`): Monitors PM2 for crashed processes registered in PortOS
+- **UI Server** (`autofixer/ui.js`): Web interface for viewing logs and fix history on port 6000
+- **PM2 Integration**: Runs as `portos-autofixer` and `portos-autofixer-ui` processes
+
+### Features
+1. **Crash Detection**: Polls PM2 every 15 minutes for `errored` status on registered apps
+2. **Auto-Fix**: Invokes Claude CLI with crash context (error logs, app info) to diagnose and repair
+3. **Session History**: Stores fix attempts with prompts, outputs, and success/failure status
+4. **Cooldown**: 30-minute cooldown per process to prevent repeated fix loops
+5. **Log Streaming**: Real-time SSE log streaming from any PM2 process
+6. **Tailscale Compatible**: Dynamic hostname for remote access
+
+### Data Storage
+```
+./data/autofixer/
+├── index.json # Fix session index
+└── sessions/
+ └── {sessionId}/
+ ├── prompt.txt # Prompt sent to Claude
+ ├── output.txt # Claude's response
+ └── metadata.json # Session details
+```
+
+### Autofixer UI (port 6000)
+- Process sidebar with live status indicators
+- SSE-powered log viewer with pause/clear controls
+- History tab showing fix attempts with success/failure status
+- Links back to PortOS Dashboard
+
+### Configuration
+| Setting | Value |
+|---------|-------|
+| UI Port | 6000 |
+| Check Interval | 15 minutes |
+| Fix Cooldown | 30 minutes |
+| Max History | 100 entries |
diff --git a/autofixer/server.js b/autofixer/server.js
new file mode 100644
index 0000000000..e6680112c3
--- /dev/null
+++ b/autofixer/server.js
@@ -0,0 +1,336 @@
+import { spawn } from 'child_process';
+import { readFile, writeFile, mkdir, access } from 'fs/promises';
+import { join, dirname } from 'path';
+import { fileURLToPath } from 'url';
+import { promisify } from 'util';
+import { exec as execCb } from 'child_process';
+
+const exec = promisify(execCb);
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = dirname(__filename);
+
+// Paths
+const DATA_DIR = join(__dirname, '../data');
+const APPS_FILE = join(DATA_DIR, 'apps.json');
+const AUTOFIXER_DIR = join(DATA_DIR, 'autofixer');
+const SESSIONS_DIR = join(AUTOFIXER_DIR, 'sessions');
+const INDEX_FILE = join(AUTOFIXER_DIR, 'index.json');
+
+// Track fixed processes to avoid repeated fixes
+const recentlyFixed = new Map();
+const FIX_COOLDOWN = 30 * 60 * 1000; // 30 minutes
+const CHECK_INTERVAL = 15 * 60 * 1000; // 15 minutes
+
+// Load apps from PortOS
+async function loadApps() {
+ const data = await readFile(APPS_FILE, 'utf8').catch(() => '{"apps":{}}');
+ const parsed = JSON.parse(data);
+ return Object.entries(parsed.apps || {}).map(([id, app]) => ({ id, ...app }));
+}
+
+// Get all monitored process names from registered apps
+async function getMonitoredProcesses() {
+ const apps = await loadApps();
+ const processes = new Set();
+
+ for (const app of apps) {
+ for (const procName of app.pm2ProcessNames || []) {
+ processes.add(procName);
+ }
+ }
+
+ return Array.from(processes);
+}
+
+// Find app by process name
+async function findAppByProcess(processName) {
+ const apps = await loadApps();
+ return apps.find(app =>
+ (app.pm2ProcessNames || []).includes(processName)
+ );
+}
+
+// History management
+async function ensureHistoryDir() {
+ await mkdir(SESSIONS_DIR, { recursive: true });
+ await access(INDEX_FILE).catch(async () => {
+ await writeFile(INDEX_FILE, JSON.stringify([], null, 2));
+ });
+}
+
+async function loadIndex() {
+ const data = await readFile(INDEX_FILE, 'utf8').catch(() => '[]');
+ return JSON.parse(data);
+}
+
+async function saveIndex(index) {
+ await writeFile(INDEX_FILE, JSON.stringify(index, null, 2));
+}
+
+async function saveSession(sessionId, prompt, output, metadata) {
+ const sessionDir = join(SESSIONS_DIR, sessionId);
+ await mkdir(sessionDir, { recursive: true });
+
+ await writeFile(join(sessionDir, 'prompt.txt'), prompt);
+ await writeFile(join(sessionDir, 'output.txt'), output);
+ await writeFile(join(sessionDir, 'metadata.json'), JSON.stringify(metadata, null, 2));
+
+ const index = await loadIndex();
+ const indexEntry = {
+ sessionId: metadata.sessionId,
+ startTime: metadata.startTime,
+ endTime: metadata.endTime,
+ duration: metadata.duration,
+ success: metadata.success,
+ processName: metadata.processName,
+ appName: metadata.appName,
+ promptPreview: prompt.substring(0, 200),
+ outputSize: output.length
+ };
+
+ index.unshift(indexEntry);
+ if (index.length > 100) {
+ index.splice(100);
+ }
+
+ await saveIndex(index);
+}
+
+// Get PM2 process list
+async function getProcessList() {
+ const { stdout } = await exec('pm2 jlist');
+ const stripped = stdout.replace(/\x1b\[[0-9;]*m/g, '');
+ const jsonStart = stripped.indexOf('[{');
+ const jsonEnd = stripped.lastIndexOf('}]');
+
+ if (jsonStart < 0 || jsonEnd < 0) {
+ console.error('[Autofixer] Invalid pm2 jlist output');
+ return [];
+ }
+
+ return JSON.parse(stripped.substring(jsonStart, jsonEnd + 2));
+}
+
+// Get error logs for a process
+async function getProcessLogs(processName) {
+ const { stdout: errLogs } = await exec(`pm2 logs ${processName} --lines 100 --nostream --err`).catch(() => ({ stdout: '' }));
+ const { stdout: outLogs } = await exec(`pm2 logs ${processName} --lines 50 --nostream --out`).catch(() => ({ stdout: '' }));
+ return { errLogs, outLogs };
+}
+
+// Cooldown management
+function isOnCooldown(processName) {
+ const lastFix = recentlyFixed.get(processName);
+ if (!lastFix) return false;
+ return (Date.now() - lastFix) < FIX_COOLDOWN;
+}
+
+function markAsFixed(processName) {
+ recentlyFixed.set(processName, Date.now());
+}
+
+// Execute Claude CLI to fix the issue
+async function fixProcess(processName, app, errorLogs, outputLogs) {
+ const sessionId = `autofixer_${processName}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
+ const startTime = new Date().toISOString();
+
+ console.log(`[Autofixer] Starting fix for ${processName}: ${sessionId}`);
+
+ const prompt = `You are an autonomous autofixer for PortOS. A PM2-managed process has crashed and needs to be fixed.
+
+**CRITICAL INSTRUCTIONS:**
+1. Analyze the error logs below to understand what caused the crash
+2. Read relevant source files to understand the issue
+3. Fix the bug by editing the necessary files
+4. After fixing, run: pm2 restart ${processName}
+5. Verify the process starts successfully by checking pm2 list
+6. If it still fails, analyze the new error and try again (max 2 attempts)
+
+**App Information:**
+- App Name: ${app.name}
+- Process Name: ${processName}
+- Status: crashed/errored
+- Working Directory: ${app.repoPath}
+
+**Error Logs (last 100 lines):**
+\`\`\`
+${errorLogs || '(no error logs available)'}
+\`\`\`
+
+**Output Logs (last 50 lines):**
+\`\`\`
+${outputLogs || '(no output logs available)'}
+\`\`\`
+
+**Your Task:**
+Fix the issue and restart the process. Be systematic and thorough. Use the Bash tool to restart PM2 after making your fixes.`;
+
+ await ensureHistoryDir();
+
+ const outputBuffer = [];
+
+ return new Promise((resolve) => {
+ const child = spawn('claude', ['-p', prompt], {
+ cwd: app.repoPath,
+ stdio: ['ignore', 'pipe', 'pipe'],
+ shell: false
+ });
+
+ child.stdout.on('data', (data) => {
+ const output = data.toString();
+ outputBuffer.push(output);
+ process.stdout.write(output);
+ });
+
+ child.stderr.on('data', (data) => {
+ const output = data.toString();
+ outputBuffer.push(`[STDERR] ${output}`);
+ process.stderr.write(output);
+ });
+
+ child.on('close', async (code) => {
+ const endTime = new Date().toISOString();
+ const duration = new Date(endTime).getTime() - new Date(startTime).getTime();
+ const output = outputBuffer.join('');
+ const success = code === 0;
+
+ console.log(`${success ? '[Autofixer] Fix successful' : '[Autofixer] Fix failed'} for ${processName} (exit code: ${code})`);
+
+ const metadata = {
+ sessionId,
+ startTime,
+ endTime,
+ duration,
+ exitCode: code,
+ success,
+ processName,
+ appName: app.name,
+ appId: app.id,
+ repoPath: app.repoPath,
+ type: 'autofixer'
+ };
+
+ await saveSession(sessionId, prompt, output, metadata);
+ console.log(`[Autofixer] Saved session: ${sessionId}`);
+
+ if (success) {
+ markAsFixed(processName);
+ }
+
+ resolve({ success, sessionId, output });
+ });
+
+ child.on('error', async (error) => {
+ const endTime = new Date().toISOString();
+ const duration = new Date(endTime).getTime() - new Date(startTime).getTime();
+ const output = outputBuffer.join('') + `\n[ERROR] ${error.message}`;
+
+ console.error(`[Autofixer] Error fixing ${processName}:`, error.message);
+
+ const metadata = {
+ sessionId,
+ startTime,
+ endTime,
+ duration,
+ exitCode: -1,
+ success: false,
+ processName,
+ appName: app.name,
+ appId: app.id,
+ repoPath: app.repoPath,
+ type: 'autofixer',
+ error: error.message
+ };
+
+ await saveSession(sessionId, prompt, output, metadata);
+ resolve({ success: false, sessionId, output, error: error.message });
+ });
+ });
+}
+
+// Main check function
+async function checkAndFixProcesses() {
+ console.log('[Autofixer] Checking PM2 processes...');
+
+ const monitoredProcesses = await getMonitoredProcesses();
+
+ if (monitoredProcesses.length === 0) {
+ console.log('[Autofixer] No apps registered in PortOS');
+ return;
+ }
+
+ console.log(`[Autofixer] Monitoring ${monitoredProcesses.length} process(es): ${monitoredProcesses.join(', ')}`);
+
+ const pm2List = await getProcessList();
+
+ if (pm2List.length === 0) {
+ console.log('[Autofixer] No PM2 processes found');
+ return;
+ }
+
+ const crashedProcesses = pm2List.filter(proc => {
+ const status = proc.pm2_env?.status;
+ return status === 'errored' && monitoredProcesses.includes(proc.name);
+ });
+
+ if (crashedProcesses.length === 0) {
+ console.log('[Autofixer] All monitored processes healthy');
+ return;
+ }
+
+ console.log(`[Autofixer] Found ${crashedProcesses.length} crashed process(es)`);
+
+ for (const proc of crashedProcesses) {
+ const processName = proc.name;
+
+ if (isOnCooldown(processName)) {
+ console.log(`[Autofixer] ${processName} is on cooldown, skipping`);
+ continue;
+ }
+
+ const app = await findAppByProcess(processName);
+ if (!app) {
+ console.log(`[Autofixer] No app found for process ${processName}, skipping`);
+ continue;
+ }
+
+ console.log(`[Autofixer] Attempting to fix ${processName} (${app.name})...`);
+
+ const { errLogs, outLogs } = await getProcessLogs(processName);
+ await fixProcess(processName, app, errLogs, outLogs);
+ }
+}
+
+// Main loop
+async function main() {
+ console.log('[Autofixer] Starting PortOS Autofixer daemon');
+ console.log(`[Autofixer] Check interval: ${CHECK_INTERVAL / 60000} minutes`);
+ console.log(`[Autofixer] Fix cooldown: ${FIX_COOLDOWN / 60000} minutes per process`);
+
+ await ensureHistoryDir();
+
+ // Initial check
+ await checkAndFixProcesses();
+
+ // Periodic check
+ setInterval(async () => {
+ await checkAndFixProcesses();
+ }, CHECK_INTERVAL);
+}
+
+// Graceful shutdown
+process.on('SIGINT', () => {
+ console.log('\n[Autofixer] Shutting down...');
+ process.exit(0);
+});
+
+process.on('SIGTERM', () => {
+ console.log('\n[Autofixer] Shutting down...');
+ process.exit(0);
+});
+
+// Start
+main().catch(error => {
+ console.error('[Autofixer] Fatal error:', error);
+ process.exit(1);
+});
diff --git a/autofixer/ui.js b/autofixer/ui.js
new file mode 100644
index 0000000000..edc1f70225
--- /dev/null
+++ b/autofixer/ui.js
@@ -0,0 +1,692 @@
+import express from 'express';
+import { spawn, exec as execCb } from 'child_process';
+import { readFile } from 'fs/promises';
+import { join, dirname } from 'path';
+import { fileURLToPath } from 'url';
+import { promisify } from 'util';
+
+const exec = promisify(execCb);
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = dirname(__filename);
+
+const app = express();
+const PORT = process.env.PORT || 6000;
+
+// Paths
+const DATA_DIR = join(__dirname, '../data');
+const APPS_FILE = join(DATA_DIR, 'apps.json');
+const AUTOFIXER_DIR = join(DATA_DIR, 'autofixer');
+const INDEX_FILE = join(AUTOFIXER_DIR, 'index.json');
+
+// Load apps from PortOS
+async function loadApps() {
+ const data = await readFile(APPS_FILE, 'utf8').catch(() => '{"apps":{}}');
+ const parsed = JSON.parse(data);
+ return Object.entries(parsed.apps || {}).map(([id, app]) => ({ id, ...app }));
+}
+
+// Load autofixer history
+async function loadHistory() {
+ const data = await readFile(INDEX_FILE, 'utf8').catch(() => '[]');
+ return JSON.parse(data);
+}
+
+// API: Get registered apps and their processes
+app.get('/api/apps', async (req, res) => {
+ const apps = await loadApps();
+ res.json(apps);
+});
+
+// API: Get autofixer history
+app.get('/api/history', async (req, res) => {
+ const history = await loadHistory();
+ res.json(history);
+});
+
+// API: Get PM2 status
+app.get('/api/status', async (req, res) => {
+ const { stdout } = await exec('pm2 jlist').catch(() => ({ stdout: '[]' }));
+ const stripped = stdout.replace(/\x1b\[[0-9;]*m/g, '');
+ const jsonStart = stripped.indexOf('[');
+ const jsonEnd = stripped.lastIndexOf(']');
+
+ if (jsonStart < 0 || jsonEnd < 0) {
+ return res.json([]);
+ }
+
+ const processes = JSON.parse(stripped.substring(jsonStart, jsonEnd + 1));
+ res.json(processes.map(p => ({
+ name: p.name,
+ status: p.pm2_env?.status,
+ pid: p.pid,
+ restarts: p.pm2_env?.restart_time,
+ uptime: p.pm2_env?.pm_uptime,
+ memory: p.monit?.memory,
+ cpu: p.monit?.cpu
+ })));
+});
+
+// Serve main UI
+app.get('/', async (req, res) => {
+ const apps = await loadApps();
+ const processes = [];
+
+ // Build process options from registered apps
+ for (const app of apps) {
+ for (const proc of app.pm2ProcessNames || []) {
+ processes.push({ name: proc, app: app.name });
+ }
+ }
+
+ // Add autofixer itself
+ processes.unshift({ name: 'portos-autofixer', app: 'PortOS Autofixer' });
+
+ const processOptions = processes
+ .map(p => `<option value="${p.name}">${p.name} (${p.app})</option>`)
+ .join('\n');
+
+ res.send(`
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>PortOS Autofixer</title>
+ <style>
+ * { margin: 0; padding: 0; box-sizing: border-box; }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+ background: #0a0a0f;
+ color: #e0e0e0;
+ min-height: 100vh;
+ }
+
+ header {
+ background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
+ padding: 1rem 1.5rem;
+ border-bottom: 1px solid #2a2a4a;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ h1 {
+ font-size: 1.25rem;
+ font-weight: 600;
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ }
+
+ h1 span { font-size: 1.5rem; }
+
+ .nav-links {
+ display: flex;
+ gap: 1rem;
+ }
+
+ .nav-links a {
+ color: #888;
+ text-decoration: none;
+ font-size: 0.875rem;
+ padding: 0.5rem 1rem;
+ border-radius: 0.5rem;
+ transition: all 0.2s;
+ }
+
+ .nav-links a:hover, .nav-links a.active {
+ color: #fff;
+ background: rgba(255,255,255,0.1);
+ }
+
+ .container {
+ display: grid;
+ grid-template-columns: 300px 1fr;
+ height: calc(100vh - 60px);
+ }
+
+ .sidebar {
+ background: #12121a;
+ border-right: 1px solid #2a2a4a;
+ padding: 1rem;
+ overflow-y: auto;
+ }
+
+ .sidebar h2 {
+ font-size: 0.75rem;
+ text-transform: uppercase;
+ letter-spacing: 0.1em;
+ color: #666;
+ margin-bottom: 0.75rem;
+ }
+
+ .process-list {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+ }
+
+ .process-item {
+ padding: 0.75rem;
+ background: #1a1a2a;
+ border-radius: 0.5rem;
+ cursor: pointer;
+ transition: all 0.2s;
+ border: 1px solid transparent;
+ }
+
+ .process-item:hover {
+ border-color: #3a3a5a;
+ }
+
+ .process-item.selected {
+ border-color: #6366f1;
+ background: #1e1e3a;
+ }
+
+ .process-name {
+ font-weight: 500;
+ font-size: 0.875rem;
+ }
+
+ .process-app {
+ font-size: 0.75rem;
+ color: #666;
+ margin-top: 0.25rem;
+ }
+
+ .process-status {
+ display: inline-block;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ margin-right: 0.5rem;
+ }
+
+ .status-online { background: #22c55e; }
+ .status-stopped { background: #6b7280; }
+ .status-errored { background: #ef4444; }
+ .status-unknown { background: #eab308; }
+
+ .main-content {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .toolbar {
+ padding: 0.75rem 1rem;
+ background: #12121a;
+ border-bottom: 1px solid #2a2a4a;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ .toolbar-left {
+ display: flex;
+ align-items: center;
+ gap: 1rem;
+ }
+
+ .toolbar-title {
+ font-weight: 500;
+ }
+
+ .toolbar button {
+ padding: 0.5rem 1rem;
+ background: #2a2a4a;
+ color: #e0e0e0;
+ border: none;
+ border-radius: 0.375rem;
+ cursor: pointer;
+ font-size: 0.875rem;
+ transition: all 0.2s;
+ }
+
+ .toolbar button:hover {
+ background: #3a3a5a;
+ }
+
+ .toolbar button.pause-active {
+ background: #ef4444;
+ color: white;
+ }
+
+ #logs {
+ flex: 1;
+ overflow-y: auto;
+ padding: 1rem;
+ font-family: 'SF Mono', 'Fira Code', monospace;
+ font-size: 0.8125rem;
+ line-height: 1.6;
+ background: #0a0a0f;
+ }
+
+ .log-line {
+ padding: 0.125rem 0;
+ white-space: pre-wrap;
+ word-break: break-word;
+ }
+
+ .log-line.error { color: #f87171; }
+ .log-line.info { color: #a5f3fc; }
+
+ .status-bar {
+ padding: 0.5rem 1rem;
+ background: #12121a;
+ border-top: 1px solid #2a2a4a;
+ font-size: 0.75rem;
+ color: #666;
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .status-indicator {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ }
+
+ .status-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ }
+
+ .status-dot.connected { background: #22c55e; }
+ .status-dot.disconnected { background: #ef4444; }
+
+ .history-panel {
+ display: none;
+ }
+
+ .history-panel.active {
+ display: block;
+ }
+
+ .history-item {
+ padding: 1rem;
+ background: #1a1a2a;
+ border-radius: 0.5rem;
+ margin-bottom: 0.5rem;
+ cursor: pointer;
+ transition: all 0.2s;
+ }
+
+ .history-item:hover {
+ background: #1e1e3a;
+ }
+
+ .history-item .time {
+ font-size: 0.75rem;
+ color: #666;
+ }
+
+ .history-item .process {
+ font-weight: 500;
+ margin-top: 0.25rem;
+ }
+
+ .history-item .result {
+ font-size: 0.75rem;
+ margin-top: 0.25rem;
+ }
+
+ .history-item .result.success { color: #22c55e; }
+ .history-item .result.failed { color: #ef4444; }
+
+ ::-webkit-scrollbar { width: 8px; }
+ ::-webkit-scrollbar-track { background: #0a0a0f; }
+ ::-webkit-scrollbar-thumb { background: #2a2a4a; border-radius: 4px; }
+ ::-webkit-scrollbar-thumb:hover { background: #3a3a5a; }
+ </style>
+</head>
+<body>
+ <header>
+ <h1><span>🔧</span> PortOS Autofixer</h1>
+ <div class="nav-links">
+ <a href="#" id="portosDashboardLink" target="_blank">PortOS Dashboard</a>
+ <a href="#" class="active" id="logsTab">Logs</a>
+ <a href="#" id="historyTab">History</a>
+ </div>
+ </header>
+
+ <div class="container">
+ <div class="sidebar">
+ <h2>Processes</h2>
+ <div class="process-list" id="processList">
+ <!-- Populated by JS -->
+ </div>
+ </div>
+
+ <div class="main-content">
+ <div class="toolbar">
+ <div class="toolbar-left">
+ <span class="toolbar-title" id="currentProcess">Select a process</span>
+ </div>
+ <div>
+ <button id="clearBtn">Clear</button>
+ <button id="pauseBtn">Pause</button>
+ </div>
+ </div>
+
+ <div id="logs"></div>
+
+ <div id="historyPanel" class="history-panel">
+ <!-- History items -->
+ </div>
+
+ <div class="status-bar">
+ <div class="status-indicator">
+ <div class="status-dot" id="statusDot"></div>
+ <span id="statusText">Disconnected</span>
+ </div>
+ <span id="lineCount">0 lines</span>
+ </div>
+ </div>
+ </div>
+
+ <script>
+ const processList = document.getElementById('processList');
+ const logsContainer = document.getElementById('logs');
+ const historyPanel = document.getElementById('historyPanel');
+ const currentProcessEl = document.getElementById('currentProcess');
+ const clearBtn = document.getElementById('clearBtn');
+ const pauseBtn = document.getElementById('pauseBtn');
+ const statusDot = document.getElementById('statusDot');
+ const statusText = document.getElementById('statusText');
+ const lineCount = document.getElementById('lineCount');
+ const logsTab = document.getElementById('logsTab');
+ const historyTab = document.getElementById('historyTab');
+
+ let eventSource = null;
+ let isPaused = false;
+ let totalLines = 0;
+ let autoScroll = true;
+ let selectedProcess = null;
+ let processStatuses = {};
+
+ // Fetch PM2 status
+ async function fetchStatus() {
+ const res = await fetch('/api/status');
+ const statuses = await res.json();
+ processStatuses = {};
+ statuses.forEach(s => { processStatuses[s.name] = s.status; });
+ updateProcessList();
+ }
+
+ // Fetch apps and build process list
+ async function fetchApps() {
+ const res = await fetch('/api/apps');
+ const apps = await res.json();
+
+ const processes = [
+ { name: 'portos-autofixer', app: 'PortOS Autofixer' }
+ ];
+
+ apps.forEach(app => {
+ (app.pm2ProcessNames || []).forEach(proc => {
+ processes.push({ name: proc, app: app.name });
+ });
+ });
+
+ window.processesList = processes;
+ await fetchStatus();
+ }
+
+ function updateProcessList() {
+ const processes = window.processesList || [];
+ processList.innerHTML = processes.map(p => {
+ const status = processStatuses[p.name] || 'unknown';
+ const selected = selectedProcess === p.name ? 'selected' : '';
+ return \`
+ <div class="process-item \${selected}" data-name="\${p.name}">
+ <div class="process-name">
+ <span class="process-status status-\${status}"></span>
+ \${p.name}
+ </div>
+ <div class="process-app">\${p.app}</div>
+ </div>
+ \`;
+ }).join('');
+
+ // Reattach click handlers
+ document.querySelectorAll('.process-item').forEach(item => {
+ item.addEventListener('click', () => {
+ const name = item.dataset.name;
+ selectProcess(name);
+ });
+ });
+ }
+
+ function selectProcess(name) {
+ selectedProcess = name;
+ currentProcessEl.textContent = name;
+ logsContainer.innerHTML = '';
+ totalLines = 0;
+ lineCount.textContent = '0 lines';
+ updateProcessList();
+ connect();
+ }
+
+ function connect() {
+ if (!selectedProcess) return;
+
+ if (eventSource) {
+ eventSource.close();
+ }
+
+ eventSource = new EventSource('/logs?process=' + selectedProcess);
+
+ eventSource.onopen = () => {
+ statusText.textContent = 'Connected';
+ statusDot.className = 'status-dot connected';
+ };
+
+ eventSource.onmessage = (event) => {
+ if (isPaused) return;
+
+ const data = JSON.parse(event.data);
+
+ if (data.type === 'log') {
+ const logLine = document.createElement('div');
+ logLine.className = 'log-line ' + (data.stream === 'err' ? 'error' : 'info');
+ logLine.textContent = data.message;
+ logsContainer.appendChild(logLine);
+
+ totalLines++;
+ lineCount.textContent = totalLines + ' lines';
+
+ if (autoScroll) {
+ logsContainer.scrollTop = logsContainer.scrollHeight;
+ }
+
+ while (logsContainer.children.length > 1000) {
+ logsContainer.removeChild(logsContainer.firstChild);
+ }
+ }
+ };
+
+ eventSource.onerror = () => {
+ statusText.textContent = 'Disconnected';
+ statusDot.className = 'status-dot disconnected';
+ eventSource.close();
+ setTimeout(connect, 3000);
+ };
+ }
+
+ async function fetchHistory() {
+ const res = await fetch('/api/history');
+ const history = await res.json();
+
+ historyPanel.innerHTML = history.map(h => {
+ const date = new Date(h.startTime).toLocaleString();
+ const duration = Math.round(h.duration / 1000);
+ return \`
+ <div class="history-item">
+ <div class="time">\${date} (\${duration}s)</div>
+ <div class="process">\${h.processName} - \${h.appName || 'Unknown App'}</div>
+ <div class="result \${h.success ? 'success' : 'failed'}">
+ \${h.success ? 'Fixed successfully' : 'Fix failed'}
+ </div>
+ </div>
+ \`;
+ }).join('') || '<div style="padding:1rem;color:#666">No fix history yet</div>';
+ }
+
+ clearBtn.addEventListener('click', () => {
+ logsContainer.innerHTML = '';
+ totalLines = 0;
+ lineCount.textContent = '0 lines';
+ });
+
+ pauseBtn.addEventListener('click', () => {
+ isPaused = !isPaused;
+ pauseBtn.textContent = isPaused ? 'Resume' : 'Pause';
+ pauseBtn.classList.toggle('pause-active', isPaused);
+ });
+
+ logsContainer.addEventListener('scroll', () => {
+ const isAtBottom = logsContainer.scrollHeight - logsContainer.scrollTop <= logsContainer.clientHeight + 50;
+ autoScroll = isAtBottom;
+ });
+
+ logsTab.addEventListener('click', (e) => {
+ e.preventDefault();
+ logsTab.classList.add('active');
+ historyTab.classList.remove('active');
+ logsContainer.style.display = 'block';
+ historyPanel.classList.remove('active');
+ });
+
+ historyTab.addEventListener('click', (e) => {
+ e.preventDefault();
+ historyTab.classList.add('active');
+ logsTab.classList.remove('active');
+ logsContainer.style.display = 'none';
+ historyPanel.classList.add('active');
+ fetchHistory();
+ });
+
+ // Set dynamic PortOS Dashboard link
+ document.getElementById('portosDashboardLink').href =
+ window.location.protocol + '//' + window.location.hostname + ':5555';
+
+ // Initial load
+ fetchApps();
+ setInterval(fetchStatus, 10000);
+ </script>
+</body>
+</html>
+ `);
+});
+
+// Server-Sent Events endpoint for streaming logs
+app.get('/logs', async (req, res) => {
+ const processName = req.query.process || 'portos-autofixer';
+
+ res.setHeader('Content-Type', 'text/event-stream');
+ res.setHeader('Cache-Control', 'no-cache');
+ res.setHeader('Connection', 'keep-alive');
+ res.setHeader('X-Accel-Buffering', 'no');
+
+ res.write(`: connected\n\n`);
+
+ let pm2Process = null;
+
+ const cleanup = () => {
+ if (pm2Process && !pm2Process.killed) {
+ pm2Process.kill();
+ pm2Process = null;
+ }
+ };
+
+ req.on('close', cleanup);
+ res.on('close', cleanup);
+
+ // Get initial logs
+ const initialLogsCmd = `pm2 logs ${processName} --lines 50 --nostream --raw`;
+
+ exec(initialLogsCmd, (error, stdout) => {
+ if (res.writableEnded) return;
+
+ if (!error && stdout) {
+ const lines = stdout.split('\n').filter(line => line.trim());
+ lines.forEach(line => {
+ const event = {
+ type: 'log',
+ message: line,
+ stream: 'out',
+ timestamp: new Date().toISOString()
+ };
+ res.write(`data: ${JSON.stringify(event)}\n\n`);
+ });
+ }
+
+ // Stream new logs
+ pm2Process = spawn('pm2', ['logs', processName, '--lines', '0', '--raw']);
+
+ pm2Process.stdout.on('data', (data) => {
+ if (res.writableEnded) {
+ cleanup();
+ return;
+ }
+
+ const lines = data.toString().split('\n').filter(line => line.trim());
+ lines.forEach(line => {
+ res.write(`data: ${JSON.stringify({
+ type: 'log',
+ message: line,
+ stream: 'out',
+ timestamp: new Date().toISOString()
+ })}\n\n`);
+ });
+ });
+
+ pm2Process.stderr.on('data', (data) => {
+ if (res.writableEnded) {
+ cleanup();
+ return;
+ }
+
+ const lines = data.toString().split('\n').filter(line => line.trim());
+ lines.forEach(line => {
+ res.write(`data: ${JSON.stringify({
+ type: 'log',
+ message: line,
+ stream: 'err',
+ timestamp: new Date().toISOString()
+ })}\n\n`);
+ });
+ });
+
+ pm2Process.on('error', (error) => {
+ if (!res.writableEnded) {
+ res.write(`data: ${JSON.stringify({
+ type: 'log',
+ message: `[ERROR] Failed to spawn pm2: ${error.message}`,
+ stream: 'err',
+ timestamp: new Date().toISOString()
+ })}\n\n`);
+ }
+ cleanup();
+ });
+
+ pm2Process.on('exit', cleanup);
+ });
+});
+
+app.listen(PORT, '0.0.0.0', () => {
+ console.log(`[Autofixer UI] Running on http://localhost:${PORT}`);
+});
+
+process.on('SIGINT', () => {
+ console.log('\n[Autofixer UI] Shutting down...');
+ process.exit(0);
+});
+
+process.on('SIGTERM', () => {
+ console.log('\n[Autofixer UI] Shutting down...');
+ process.exit(0);
+});
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index fd2a42c7fc..a370acb1b4 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -16,7 +16,9 @@ import {
Activity,
GitBranch,
BarChart3,
- Cpu
+ Cpu,
+ Wrench,
+ ExternalLink
} from 'lucide-react';
import packageJson from '../../package.json';
import Logo from './Logo';
@@ -45,7 +47,8 @@ const navItems = [
{ to: '/prompts', label: 'Prompts', icon: FileText }
]
},
- { to: '/create', label: 'Add App', icon: PlusCircle, single: true }
+ { to: '/create', label: 'Add App', icon: PlusCircle, single: true },
+ { href: '//:6000', label: 'Autofixer', icon: Wrench, external: true, dynamicHost: true }
];
const SIDEBAR_KEY = 'portos-sidebar-collapsed';
@@ -107,6 +110,35 @@ export default function Layout() {
const renderNavItem = (item) => {
const Icon = item.icon;
+ // External link
+ if (item.external) {
+ // Build href - use current hostname for dynamic host links
+ const href = item.dynamicHost
+ ? `${window.location.protocol}//${window.location.hostname}${item.href.replace('//', '')}`
+ : item.href;
+
+ return (
+ <a
+ key={item.href}
+ href={href}
+ target="_blank"
+ rel="noopener noreferrer"
+ className={`flex items-center gap-3 mx-2 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors ${
+ collapsed ? 'lg:justify-center lg:px-2' : 'justify-between'
+ } text-gray-400 hover:text-white hover:bg-port-border/50`}
+ title={collapsed ? item.label : undefined}
+ >
+ <div className="flex items-center gap-3">
+ <Icon size={20} className="flex-shrink-0" />
+ <span className={`whitespace-nowrap ${collapsed ? 'lg:hidden' : ''}`}>
+ {item.label}
+ </span>
+ </div>
+ {!collapsed && <ExternalLink size={14} className="text-gray-500" />}
+ </a>
+ );
+ }
+
if (item.single) {
return (
<NavLink
diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsx
index e50564170e..b9fa5a30bf 100644
--- a/client/src/pages/Apps.jsx
+++ b/client/src/pages/Apps.jsx
@@ -134,9 +134,9 @@ export default function Apps() {
<div className="flex items-center gap-3">
{app.uiPort && (
<button
- onClick={() => window.open(`http://localhost:${app.uiPort}`, '_blank')}
+ onClick={() => window.open(`${window.location.protocol}//${window.location.hostname}:${app.uiPort}`, '_blank')}
className="text-cyan-400 hover:text-cyan-300 font-mono flex items-center gap-1"
- title={`Open UI at localhost:${app.uiPort}`}
+ title={`Open UI at ${window.location.hostname}:${app.uiPort}`}
>
:{app.uiPort} <ExternalLink size={12} />
</button>
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index c1c43e35dc..883f96b97d 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -22,6 +22,35 @@ module.exports = {
NODE_ENV: 'development'
},
watch: false
+ },
+ {
+ name: 'portos-autofixer',
+ script: 'autofixer/server.js',
+ cwd: __dirname,
+ interpreter: 'node',
+ env: {
+ NODE_ENV: 'development'
+ },
+ watch: false,
+ autorestart: true,
+ max_restarts: 10,
+ min_uptime: '10s',
+ restart_delay: 5000
+ },
+ {
+ name: 'portos-autofixer-ui',
+ script: 'autofixer/ui.js',
+ cwd: __dirname,
+ interpreter: 'node',
+ env: {
+ NODE_ENV: 'development',
+ PORT: 6000
+ },
+ watch: false,
+ autorestart: true,
+ max_restarts: 10,
+ min_uptime: '10s',
+ restart_delay: 5000
}
]
};
diff --git a/package-lock.json b/package-lock.json
index 3e6d0e9c65..b4cfa954e0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,6 +7,9 @@
"": {
"name": "portos",
"version": "0.4.0",
+ "dependencies": {
+ "express": "^5.2.1"
+ },
"devDependencies": {
"concurrently": "^8.2.2"
}
@@ -21,6 +24,19 @@
"node": ">=6.9.0"
}
},
+ "node_modules/accepts": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "^3.0.0",
+ "negotiator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
@@ -47,6 +63,68 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
+ "node_modules/body-parser": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.1.tgz",
+ "integrity": "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "^3.1.2",
+ "content-type": "^1.0.5",
+ "debug": "^4.4.3",
+ "http-errors": "^2.0.0",
+ "iconv-lite": "^0.7.0",
+ "on-finished": "^2.4.1",
+ "qs": "^6.14.0",
+ "raw-body": "^3.0.1",
+ "type-is": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
@@ -140,6 +218,46 @@
"url": "https://github.com/open-cli-tools/concurrently?sponsor=1"
}
},
+ "node_modules/content-disposition": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz",
+ "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.6.0"
+ }
+ },
"node_modules/date-fns": {
"version": "2.30.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
@@ -157,6 +275,52 @@
"url": "https://opencollective.com/date-fns"
}
},
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
"node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
@@ -164,6 +328,45 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/encodeurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/escalade": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
@@ -174,6 +377,112 @@
"node": ">=6"
}
},
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/express": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "^2.0.0",
+ "body-parser": "^2.2.1",
+ "content-disposition": "^1.0.0",
+ "content-type": "^1.0.5",
+ "cookie": "^0.7.1",
+ "cookie-signature": "^1.2.1",
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "finalhandler": "^2.1.0",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "merge-descriptors": "^2.0.0",
+ "mime-types": "^3.0.0",
+ "on-finished": "^2.4.1",
+ "once": "^1.4.0",
+ "parseurl": "^1.3.3",
+ "proxy-addr": "^2.0.7",
+ "qs": "^6.14.0",
+ "range-parser": "^1.2.1",
+ "router": "^2.2.0",
+ "send": "^1.1.0",
+ "serve-static": "^2.2.0",
+ "statuses": "^2.0.1",
+ "type-is": "^2.0.1",
+ "vary": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "on-finished": "^2.4.1",
+ "parseurl": "^1.3.3",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/get-caller-file": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
@@ -184,6 +493,55 @@
"node": "6.* || 8.* || >= 10.*"
}
},
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
@@ -194,6 +552,81 @@
"node": ">=8"
}
},
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.1.tgz",
+ "integrity": "sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
"node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
@@ -204,6 +637,12 @@
"node": ">=8"
}
},
+ "node_modules/is-promise": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
+ "license": "MIT"
+ },
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
@@ -211,6 +650,180 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/negotiator": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
+ "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.14.1",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz",
+ "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.7.0",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
"node_modules/require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
@@ -221,6 +834,22 @@
"node": ">=0.10.0"
}
},
+ "node_modules/router": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "is-promise": "^4.0.0",
+ "parseurl": "^1.3.3",
+ "path-to-regexp": "^8.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
"node_modules/rxjs": {
"version": "7.8.2",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
@@ -231,6 +860,63 @@
"tslib": "^2.1.0"
}
},
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/send": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.3",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.1",
+ "mime-types": "^3.0.2",
+ "ms": "^2.1.3",
+ "on-finished": "^2.4.1",
+ "range-parser": "^1.2.1",
+ "statuses": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/serve-static": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "parseurl": "^1.3.3",
+ "send": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
"node_modules/shell-quote": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz",
@@ -244,12 +930,93 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/side-channel": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3",
+ "side-channel-list": "^1.0.0",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/spawn-command": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz",
"integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==",
"dev": true
},
+ "node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
@@ -294,6 +1061,15 @@
"url": "https://github.com/chalk/supports-color?sponsor=1"
}
},
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
"node_modules/tree-kill": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",
@@ -311,6 +1087,38 @@
"dev": true,
"license": "0BSD"
},
+ "node_modules/type-is": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
+ "license": "MIT",
+ "dependencies": {
+ "content-type": "^1.0.5",
+ "media-typer": "^1.1.0",
+ "mime-types": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
@@ -329,6 +1137,12 @@
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
}
},
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC"
+ },
"node_modules/y18n": {
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
diff --git a/package.json b/package.json
index 8caab2e46c..f51578975d 100644
--- a/package.json
+++ b/package.json
@@ -15,5 +15,8 @@
},
"devDependencies": {
"concurrently": "^8.2.2"
+ },
+ "dependencies": {
+ "express": "^5.2.1"
}
}