Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Memex-RAG | Technician Diagnostic</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .document-viewer { | |
| max-height: calc(100vh - 200px); | |
| overflow-y: auto; | |
| } | |
| .trail-node { | |
| transition: all 0.2s ease; | |
| } | |
| .trail-node:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.3s ease-in; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .agent-output { | |
| font-family: 'Courier New', monospace; | |
| background-color: #1e293b; | |
| color: #f8fafc; | |
| border-radius: 0.5rem; | |
| max-height: 400px; | |
| overflow-y: auto; | |
| } | |
| .agent-output-line { | |
| border-bottom: 1px solid #334155; | |
| padding: 0.5rem; | |
| } | |
| .agent-output-line.system { | |
| color: #60a5fa; | |
| } | |
| .agent-output-line.agent { | |
| color: #34d399; | |
| } | |
| .agent-output-line.action { | |
| color: #fbbf24; | |
| } | |
| .agent-output-line.error { | |
| color: #f87171; | |
| } | |
| .agent-output-line.tool { | |
| color: #a78bfa; | |
| } | |
| .agent-output-line.memex { | |
| color: #f472b6; | |
| } | |
| .diagnostic-step { | |
| transition: all 0.2s ease; | |
| } | |
| .diagnostic-step.active { | |
| background-color: #e0f2fe; | |
| border-left: 4px solid #0ea5e9; | |
| } | |
| .diagnostic-step.completed { | |
| color: #4ade80; | |
| } | |
| .progress-bar { | |
| height: 6px; | |
| background-color: #e5e7eb; | |
| border-radius: 3px; | |
| overflow: hidden; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| background-color: #3b82f6; | |
| transition: width 0.3s ease; | |
| } | |
| .tool-card { | |
| transition: all 0.2s ease; | |
| } | |
| .tool-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .playbook-card { | |
| border-left: 4px solid #10b981; | |
| } | |
| .playbook-card.warning { | |
| border-left: 4px solid #f59e0b; | |
| } | |
| .playbook-card.danger { | |
| border-left: 4px solid #ef4444; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Left Sidebar --> | |
| <div class="sidebar w-64 bg-gray-800 text-white flex flex-col"> | |
| <div class="p-4 border-b border-gray-700"> | |
| <h1 class="text-xl font-bold flex items-center"> | |
| <i class="fas fa-brain mr-2"></i> Memex-RAG | |
| </h1> | |
| <p class="text-sm text-gray-400 mt-1">Technician Diagnostic Console</p> | |
| </div> | |
| <div class="p-4 border-b border-gray-700"> | |
| <h2 class="font-semibold mb-2 flex items-center"> | |
| <i class="fas fa-server mr-2"></i> System Status | |
| </h2> | |
| <div class="space-y-2 text-sm"> | |
| <div class="flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div> | |
| <span>Vector Database</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div> | |
| <span>Redis Cache</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div> | |
| <span>Agent Services</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-yellow-500 mr-2"></div> | |
| <span>Tool Integrations</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 border-b border-gray-700"> | |
| <h2 class="font-semibold mb-2 flex items-center"> | |
| <i class="fas fa-history mr-2"></i> Recent Sessions | |
| </h2> | |
| <div class="text-sm space-y-1"> | |
| <div class="p-2 hover:bg-gray-700 rounded cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="truncate">DB Connection Timeout</span> | |
| <span class="text-xs text-gray-400">2h ago</span> | |
| </div> | |
| <div class="text-xs text-gray-400 mt-1">Resolved</div> | |
| </div> | |
| <div class="p-2 hover:bg-gray-700 rounded cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="truncate">API 503 Errors</span> | |
| <span class="text-xs text-gray-400">5h ago</span> | |
| </div> | |
| <div class="text-xs text-gray-400 mt-1">In Progress</div> | |
| </div> | |
| <div class="p-2 hover:bg-gray-700 rounded cursor-pointer"> | |
| <div class="flex justify-between"> | |
| <span class="truncate">Slow Query Analysis</span> | |
| <span class="text-xs text-gray-400">1d ago</span> | |
| </div> | |
| <div class="text-xs text-gray-400 mt-1">Resolved</div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 border-b border-gray-700"> | |
| <h2 class="font-semibold mb-2 flex items-center"> | |
| <i class="fas fa-tags mr-2"></i> Common Issues | |
| </h2> | |
| <div class="flex flex-wrap gap-1"> | |
| <span class="text-xs bg-gray-700 px-2 py-1 rounded">DB Connections</span> | |
| <span class="text-xs bg-gray-700 px-2 py-1 rounded">API Errors</span> | |
| <span class="text-xs bg-gray-700 px-2 py-1 rounded">Network Latency</span> | |
| <span class="text-xs bg-gray-700 px-2 py-1 rounded">Auth Failures</span> | |
| <span class="text-xs bg-gray-700 px-2 py-1 rounded">Disk Space</span> | |
| <span class="text-xs bg-gray-700 px-2 py-1 rounded">Memory Leaks</span> | |
| </div> | |
| </div> | |
| <div class="p-4 mt-auto"> | |
| <div class="text-xs text-gray-400"> | |
| <div>Connected to backend</div> | |
| <div>v2.4.0-beta</div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col overflow-hidden"> | |
| <!-- Header --> | |
| <div class="bg-white border-b p-4"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h2 class="text-2xl font-bold">Technician Diagnostic Console</h2> | |
| <div class="text-sm text-gray-600 mt-1"> | |
| Multi-agent collaboration for incident resolution | |
| </div> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="px-4 py-2 bg-gray-100 text-gray-700 hover:bg-gray-200 rounded flex items-center"> | |
| <i class="fas fa-cog mr-2"></i> Settings | |
| </button> | |
| <button class="px-4 py-2 bg-blue-100 text-blue-700 hover:bg-blue-200 rounded flex items-center"> | |
| <i class="fas fa-question-circle mr-2"></i> Help | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Tabs --> | |
| <div class="bg-white border-b"> | |
| <div class="flex"> | |
| <div class="tab px-6 py-3 text-gray-600 hover:text-gray-800 font-medium cursor-pointer"> | |
| <i class="fas fa-search mr-2"></i> Knowledge Explorer | |
| </div> | |
| <div class="tab px-6 py-3 text-gray-600 hover:text-gray-800 font-medium cursor-pointer"> | |
| <i class="fas fa-comment-dots mr-2"></i> Semantic Query | |
| </div> | |
| <div class="tab px-6 py-3 border-b-2 border-blue-500 text-blue-600 font-medium cursor-pointer"> | |
| <i class="fas fa-tools mr-2"></i> Diagnostic Session | |
| </div> | |
| <div class="tab px-6 py-3 text-gray-600 hover:text-gray-800 font-medium cursor-pointer"> | |
| <i class="fas fa-chart-line mr-2"></i> Analytics | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Diagnostic Session Content --> | |
| <div class="flex-1 overflow-auto p-6"> | |
| <div class="bg-white rounded-lg shadow"> | |
| <!-- Session Header --> | |
| <div class="p-4 border-b flex justify-between items-center"> | |
| <div> | |
| <h3 class="text-lg font-semibold">Active Diagnostic Session</h3> | |
| <div class="text-sm text-gray-600 mt-1"> | |
| Session ID: <span class="font-mono">sess_789012</span> | Started: 2 minutes ago | |
| </div> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="px-4 py-2 bg-red-100 text-red-700 hover:bg-red-200 rounded flex items-center"> | |
| <i class="fas fa-stop mr-2"></i> End Session | |
| </button> | |
| <button class="px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 flex items-center"> | |
| <i class="fas fa-save mr-2"></i> Save Trail | |
| </button> | |
| </div> | |
| </div> | |
| <div class="p-6"> | |
| <!-- Progress Bar --> | |
| <div class="mb-6"> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium">Diagnostic Progress</span> | |
| <span class="text-sm text-gray-600">65% complete</span> | |
| </div> | |
| <div class="progress-bar"> | |
| <div class="progress-fill" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <!-- Left Column - Sequence Flow --> | |
| <div class="lg:col-span-1"> | |
| <div class="bg-gray-50 rounded-lg p-4 h-full"> | |
| <h4 class="font-medium mb-3">Diagnostic Sequence Flow</h4> | |
| <div class="space-y-2"> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer completed"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-green-500 text-white flex items-center justify-center mr-2"> | |
| <i class="fas fa-check text-xs"></i> | |
| </div> | |
| <span>Start Session</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">TechnicianSession initialized in Memex</div> | |
| </div> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer completed"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-green-500 text-white flex items-center justify-center mr-2"> | |
| <i class="fas fa-check text-xs"></i> | |
| </div> | |
| <span>Issue Exploration</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">Problem described, ThoughtTrail started</div> | |
| </div> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer completed"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-green-500 text-white flex items-center justify-center mr-2"> | |
| <i class="fas fa-check text-xs"></i> | |
| </div> | |
| <span>Document Insights</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">3 relevant docs retrieved (RAG)</div> | |
| </div> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer active"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-blue-600 text-white flex items-center justify-center mr-2">4</div> | |
| <span>Tool Invocation</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">Running diagnostic tools</div> | |
| </div> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-gray-300 text-gray-700 flex items-center justify-center mr-2">5</div> | |
| <span>Agent Escalation</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">Suggested tools/playbooks</div> | |
| </div> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-gray-300 text-gray-700 flex items-center justify-center mr-2">6</div> | |
| <span>System Maintenance</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">Execute playbook</div> | |
| </div> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-gray-300 text-gray-700 flex items-center justify-center mr-2">7</div> | |
| <span>Outcome & Resolution</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">Store results and links</div> | |
| </div> | |
| <div class="diagnostic-step p-3 rounded cursor-pointer"> | |
| <div class="flex items-center"> | |
| <div class="w-5 h-5 rounded-full bg-gray-300 text-gray-700 flex items-center justify-center mr-2">8</div> | |
| <span>Session Closure</span> | |
| </div> | |
| <div class="text-xs text-gray-500 ml-7">Finalize trail and feedback</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Middle Column - Main Content --> | |
| <div class="lg:col-span-1"> | |
| <!-- Problem Description --> | |
| <div class="mb-6 bg-blue-50 rounded-lg p-4"> | |
| <h4 class="font-medium mb-2 flex items-center"> | |
| <i class="fas fa-bug mr-2 text-blue-600"></i> Reported Issue | |
| </h4> | |
| <div class="text-sm bg-white p-3 rounded border"> | |
| <p>Database connection timeouts occurring intermittently in production, especially during peak hours. Error logs show "Connection pool exhausted" messages. Started after recent deployment of v2.3.4.</p> | |
| <div class="mt-2 flex space-x-2"> | |
| <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Priority: High</span> | |
| <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded">Environment: Production</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Retrieved Documents --> | |
| <div class="mb-6"> | |
| <h4 class="font-medium mb-2 flex items-center"> | |
| <i class="fas fa-file-alt mr-2 text-green-600"></i> Retrieved Documents | |
| <span class="ml-auto text-sm text-gray-600">3 relevant</span> | |
| </h4> | |
| <div class="border rounded-lg divide-y"> | |
| <div class="p-3 hover:bg-gray-50 cursor-pointer"> | |
| <div class="font-medium">KB-2345: Connection Pool Exhaustion</div> | |
| <p class="text-sm text-gray-600 mt-1">Known issue with connection pooling in version 2.3.4 when under heavy load. Recommended to increase pool size or upgrade to 2.3.5.</p> | |
| <div class="flex space-x-2 mt-2"> | |
| <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">source: Internal KB</span> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">confidence: 92%</span> | |
| </div> | |
| </div> | |
| <div class="p-3 hover:bg-gray-50 cursor-pointer"> | |
| <div class="font-medium">Connection Pool Best Practices</div> | |
| <p class="text-sm text-gray-600 mt-1">Configuration guidelines for database connection pools in high-traffic environments.</p> | |
| <div class="flex space-x-2 mt-2"> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">source: Docs</span> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">confidence: 85%</span> | |
| </div> | |
| </div> | |
| <div class="p-3 hover:bg-gray-50 cursor-pointer"> | |
| <div class="font-medium">v2.3.5 Changelog</div> | |
| <p class="text-sm text-gray-600 mt-1">Fixed connection pool management issue that could lead to exhaustion under certain conditions.</p> | |
| <div class="flex space-x-2 mt-2"> | |
| <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded">source: Release Notes</span> | |
| <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">confidence: 78%</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Active Tools --> | |
| <div> | |
| <h4 class="font-medium mb-2 flex items-center"> | |
| <i class="fas fa-cogs mr-2 text-purple-600"></i> Active Tools | |
| <span class="ml-auto text-sm text-gray-600">2 running</span> | |
| </h4> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <div class="tool-card bg-gray-50 p-3 rounded border border-blue-200"> | |
| <div class="flex items-center mb-2"> | |
| <i class="fas fa-database text-blue-600 mr-2"></i> | |
| <span class="font-medium">DB Connection Stats</span> | |
| </div> | |
| <div class="text-xs text-gray-600 mb-2">Checking current connection pool utilization</div> | |
| <div class="progress-bar"> | |
| <div class="progress-fill" style="width: 75%"></div> | |
| </div> | |
| </div> | |
| <div class="tool-card bg-gray-50 p-3 rounded border border-purple-200"> | |
| <div class="flex items-center mb-2"> | |
| <i class="fas fa-chart-line text-purple-600 mr-2"></i> | |
| <span class="font-medium">Load Analysis</span> | |
| </div> | |
| <div class="text-xs text-gray-600 mb-2">Correlating errors with traffic patterns</div> | |
| <div class="progress-bar"> | |
| <div class="progress-fill" style="width: 40%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Right Column - Agent Output --> | |
| <div class="lg:col-span-1"> | |
| <div class="bg-gray-50 rounded-lg p-4 h-full"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h4 class="font-medium">Agent Interaction Log</h4> | |
| <div class="flex space-x-1"> | |
| <button class="p-1 text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-pause"></i> | |
| </button> | |
| <button class="p-1 text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-expand"></i> | |
| </button> | |
| <button class="p-1 text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-filter"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="agent-output rounded-lg p-2 h-96"> | |
| <div class="agent-output-line system"> | |
| [SYSTEM] TechnicianSession initialized (ID: sess_789012) in Memex | |
| </div> | |
| <div class="agent-output-line agent"> | |
| [AGENT] Ready to assist with your technical issue. Please describe the problem. | |
| </div> | |
| <div class="agent-output-line system"> | |
| [SYSTEM] Problem description received and embedded in ThoughtTrail | |
| </div> | |
| <div class="agent-output-line agent"> | |
| [AGENT] Analyzing issue: "Database connection timeouts during peak hours" | |
| </div> | |
| <div class="agent-output-line agent"> | |
| [AGENT] Searching knowledge base for similar issues... | |
| </div> | |
| <div class="agent-output-line system"> | |
| [SYSTEM] Retrieved 3 relevant documents from Redis (RAG Layer) | |
| </div> | |
| <div class="agent-output-line agent"> | |
| [AGENT] Found potential matches in KB-2345 and connection pool docs | |
| </div> | |
| <div class="agent-output-line action"> | |
| [ACTION] Suggested diagnostic tools: DB Connection Stats, Load Analysis | |
| </div> | |
| <div class="agent-output-line tool"> | |
| [TOOL] Invoking DB Connection Stats tool... | |
| </div> | |
| <div class="agent-output-line tool"> | |
| [TOOL] Invoking Load Analysis tool... | |
| </div> | |
| <div class="agent-output-line memex"> | |
| [MEMEX] Updated ThoughtTrail with retrieved documents and tool invocations | |
| </div> | |
| <div class="agent-output-line agent"> | |
| [AGENT] Based on patterns, this might be related to connection pool settings | |
| </div> | |
| <div class="agent-output-line error"> | |
| [ERROR] Could not access database metrics endpoint (timeout) | |
| </div> | |
| <div class="agent-output-line agent"> | |
| [AGENT] Escalating to maintenance playbook: db_connection_reset.yml | |
| </div> | |
| <div class="agent-output-line action"> | |
| [ACTION] Playbook requires approval before execution | |
| </div> | |
| </div> | |
| <!-- Suggested Playbooks --> | |
| <div class="mt-4"> | |
| <h4 class="font-medium mb-2 flex items-center"> | |
| <i class="fas fa-play-circle mr-2 text-green-600"></i> Suggested Playbooks | |
| </h4> | |
| <div class="space-y-2"> | |
| <div class="playbook-card bg-white p-3 rounded border"> | |
| <div class="flex items-center mb-1"> | |
| <span class="font-medium">Increase Connection Pool Size</span> | |
| <span class="ml-auto text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Low Risk</span> | |
| </div> | |
| <p class="text-sm text-gray-600">Adjusts connection pool parameters based on current load.</p> | |
| <div class="mt-2 flex justify-end space-x-2"> | |
| <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded text-sm">Details</button> | |
| <button class="px-3 py-1 bg-green-600 text-white rounded text-sm">Run</button> | |
| </div> | |
| </div> | |
| <div class="playbook-card warning bg-white p-3 rounded border"> | |
| <div class="flex items-center mb-1"> | |
| <span class="font-medium">DB Connection Reset</span> | |
| <span class="ml-auto text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Medium Risk</span> | |
| </div> | |
| <p class="text-sm text-gray-600">Gracefully resets all database connections with minimal downtime.</p> | |
| <div class="mt-2 flex justify-end space-x-2"> | |
| <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded text-sm">Details</button> | |
| <button class="px-3 py-1 bg-yellow-500 text-white rounded text-sm">Run</button> | |
| </div> | |
| </div> | |
| <div class="playbook-card danger bg-white p-3 rounded border"> | |
| <div class="flex items-center mb-1"> | |
| <span class="font-medium">Rollback to v2.3.3</span> | |
| <span class="ml-auto text-xs bg-red-100 text-red-800 px-2 py-1 rounded">High Risk</span> | |
| </div> | |
| <p class="text-sm text-gray-600">Full version rollback with estimated 15 minutes downtime.</p> | |
| <div class="mt-2 flex justify-end space-x-2"> | |
| <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded text-sm">Details</button> | |
| <button class="px-3 py-1 bg-red-600 text-white rounded text-sm">Run</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Tab switching | |
| document.querySelectorAll('.tab').forEach((tab, index) => { | |
| tab.addEventListener('click', () => { | |
| // Update tab styling | |
| document.querySelectorAll('.tab').forEach(t => { | |
| t.classList.remove('border-b-2', 'border-blue-500', 'text-blue-600'); | |
| t.classList.add('text-gray-600'); | |
| }); | |
| tab.classList.add('border-b-2', 'border-blue-500', 'text-blue-600'); | |
| tab.classList.remove('text-gray-600'); | |
| }); | |
| }); | |
| // Diagnostic step click handler | |
| document.querySelectorAll('.diagnostic-step').forEach(step => { | |
| step.addEventListener('click', () => { | |
| document.querySelectorAll('.diagnostic-step').forEach(s => { | |
| s.classList.remove('active'); | |
| }); | |
| step.classList.add('active'); | |
| }); | |
| }); | |
| // Simulate agent output updates | |
| function simulateAgentOutput() { | |
| const outputContainer = document.querySelector('.agent-output'); | |
| const lines = [ | |
| '[TOOL] DB Connection Stats completed:', | |
| 'Current pool size: 20/20 (100%)', | |
| 'Max wait time: 5000ms', | |
| 'Active connections: 19', | |
| '', | |
| '[AGENT] Analysis: Connection pool is exhausted during peak loads', | |
| '[ACTION] Recommending increasing pool size to 30', | |
| '[MEMEX] Updating ThoughtTrail with analysis results' | |
| ]; | |
| lines.forEach((line, index) => { | |
| setTimeout(() => { | |
| const lineElement = document.createElement('div'); | |
| if (line.startsWith('[TOOL]')) { | |
| lineElement.className = 'agent-output-line tool'; | |
| } else if (line.startsWith('[AGENT]')) { | |
| lineElement.className = 'agent-output-line agent'; | |
| } else if (line.startsWith('[ACTION]')) { | |
| lineElement.className = 'agent-output-line action'; | |
| } else if (line.startsWith('[MEMEX]')) { | |
| lineElement.className = 'agent-output-line memex'; | |
| } else if (line === '') { | |
| lineElement.className = 'agent-output-line'; | |
| lineElement.innerHTML = ' '; | |
| outputContainer.appendChild(lineElement); | |
| return; | |
| } else { | |
| lineElement.className = 'agent-output-line'; | |
| } | |
| lineElement.textContent = line; | |
| outputContainer.appendChild(lineElement); | |
| outputContainer.scrollTop = outputContainer.scrollHeight; | |
| // Update progress bar when tool completes | |
| if (line.startsWith('[TOOL] DB Connection Stats completed')) { | |
| document.querySelectorAll('.progress-fill')[0].style.width = '100%'; | |
| } | |
| }, index * 1500); | |
| }); | |
| } | |
| // Start simulation after a delay | |
| setTimeout(simulateAgentOutput, 2000); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=b08x/memex-rag-tech-dashboard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |