LAB.PMS // SOVEREIGNTY PLANE
System Armed

MGA14 // PMS MVP

Sovereignty architecture active. Select a navigational node.

`; } else if (room === 'COCKPIT') { document.getElementById('btn-cockpit').classList.add('active'); title.innerText = 'LAB.PMS // MANAGEMENT COCKPIT'; main.innerHTML = `
Kanban View
Calendar View
`; loadCockpitTab('KANBAN'); } } function loadCockpitTab(tab) { const content = document.getElementById('cockpit-content'); document.querySelectorAll('.room-tab').forEach(t => t.classList.remove('active')); if (tab === 'KANBAN') { document.querySelector('.room-tab:nth-child(1)').classList.add('active'); content.innerHTML = `
TO DO
INFRA
Vault Phase 3 Deployment
IN PROGRESS
PMS
Web Shell Enhancement
Sub-tasksâ€ĸ Done: Foldable Sidebar
â€ĸ Pending: Kanban Filters
VERIFYING
DONE
GOV
MD+HTML Standard Pack
`; } else if (tab === 'CALENDAR') { document.querySelector('.room-tab:nth-child(2)').classList.add('active'); content.innerHTML = `
${Array.from({ length: 31 }, (_, i) => `
${i + 1} ${i + 1 === 12 ? 'PMS REVEAL' : ''} ${i + 1 === 15 ? 'DEADLINE: GOV_AUDIT' : ''}
`).join('')}
`; } } function loadDocsTab(tab) { const content = document.getElementById('docs-content'); document.querySelectorAll('.room-tab').forEach(t => t.classList.remove('active')); const tabMap = { 'GOV': 1, 'DOC': 2, 'HB': 3, 'TEMP': 4 }; if (tabMap[tab]) { document.querySelector(`.room-tab:nth-child(${tabMap[tab]})`).classList.add('active'); } const categoryMap = { 'GOV': { icon: '📁', projects: projects.filter(p => p.category === 'GOV' || p.category === 'INFRA') }, 'DOC': { icon: '📄', projects: projects.filter(p => !['GOV', 'INFRA', 'HEARTBEAT', 'TEMP'].includes(p.category)) }, 'HB': { icon: '💓', projects: projects.filter(p => p.category === 'HEARTBEAT') }, 'TEMP': { icon: 'đŸ› ī¸', projects: projects.filter(p => p.category === 'TEMP') } }; const data = categoryMap[tab]; if (data && data.projects.length > 0) { content.innerHTML = `
${data.projects.map(doc => `
${data.icon}
${doc.name}
${doc.domain} â€ĸ ${doc.status}
`).join('')}
`; } else { content.innerHTML = `

No documents found in ${tab} node.

`; } } function renderSidebar() { const projList = document.getElementById('project-list'); const agentList = document.getElementById('agent-list'); projList.innerHTML = projects.map(p => `
  • ${p.name} ${p.domain} â€ĸ [${p.status}]
  • `).join(''); agentList.innerHTML = agents.map(a => `
  • ${a.name} Level 1 â€ĸ [VERIFIED]
  • `).join(''); } function neuralQuery(model, el) { const input = el.closest('.ai-card').querySelector('.ai-query-input'); const query = input.value; if (!query) return; // Route to CLI for execution logic later, for now simulate thinking input.value = `[${model}] Processing: ${query}...`; input.disabled = true; setTimeout(() => { input.value = `INTENT_SENT: Output routed to #INFRA_BRIDGE`; setTimeout(() => { input.value = ""; input.disabled = false; }, 2000); }, 1500); } function loadProjectInMain(url, el) { const main = document.getElementById('main-view'); // Remove active state from all projects document.querySelectorAll('.project-item').forEach(i => i.classList.remove('active')); if (el) el.classList.add('active'); // Clean URL: Remove file:// if it accidentally slipped in, ensure relative const cleanUrl = url.replace('file://', ''); main.innerHTML = ``; } function loadComms() { const main = document.getElementById('main-view'); main.innerHTML = `

    Communication Hub

    Integrated Chat Signals v1.0 arriving soon.

    `; } // Init loadRoom('HOME'); renderSidebar(); // CLI Interaction const cliInput = document.querySelector('.cli-input'); cliInput.addEventListener('keypress', (e) => { if (e.key === 'Enter') { const cmd = cliInput.value.trim().toUpperCase(); cliInput.value = ''; if (cmd === 'RELOAD') location.reload(); if (cmd.startsWith('GOTO ')) loadRoom(cmd.split(' ')[1]); } });