{"repo": "awtsmoos/awtsmoos.com", "files": {"geelooy/apps/code/js/vibe/view/manager/GatekeeperBox.js": {"f80f026c091385b5e6367d172e28348b6400addb": {"t": 1785674016.1427135, "n": 6848, "h": "0fdcb1f7f6663865", "c": "\n// B\"H\n/**\n * @file GatekeeperBox.js\n * @brief THE PALACE OF THE DIMENSIONAL KEYS.\n */\n\nimport { ModelManager } from '../../model-manager.js';\nimport { UI } from '../../../ui.js';\n\nexport const GatekeeperBox = {\n /**\n * B\"H - Constructs the API Credentials Sphere.\n */\n build(gKey, orKey, groqKey, cerebrasKey, openaiKey, xaiKey, togetherKey, minimaxKey, models) {\n return {\n className: 'vibe-manager-box gatekeepers',\n children: [\n {\n className: 'vibe-manager-title-row',\n children: [\n { tag: 'h3', className: 'vibe-manager-box-title', text: '◈ The Gatekeepers' },\n { tag: 'span', style: { color: 'var(--neon-lime)', fontSize: '0.7em', fontWeight: 'bold' }, text: 'API INTEGRITY :: ACTIVE' }\n ]\n },\n // Google Section\n this._credentialPalace('Google Gemini', 'AIzaSy...', gKey, 'mgr-api-key-google', 'mgr-save-key-g'),\n // OpenRouter Section\n this._credentialPalace('OpenRouter Multi-Vessel', 'sk-or-v1-...', orKey, 'mgr-api-key-or', 'mgr-save-key-o', 'https://openrouter.ai/keys'),\n // Groq Section\n this._credentialPalace('Groq', 'gsk_...', groqKey, 'mgr-api-key-groq', 'mgr-save-key-groq', 'https://console.groq.com/keys'),\n // Cerebras Section\n this._credentialPalace('Cerebras', 'csk-...', cerebrasKey, 'mgr-api-key-cerebras', 'mgr-save-key-cerebras', 'https://cloud.cerebras.ai/platform/api-keys'),\n // OpenAI Section\n this._credentialPalace('OpenAI', 'sk-...', openaiKey, 'mgr-api-key-openai', 'mgr-save-key-openai', 'https://platform.openai.com/api-keys'),\n // xAI Section\n this._credentialPalace('xAI (Grok)', 'xai-...', xaiKey, 'mgr-api-key-xai', 'mgr-save-key-xai', 'https://console.x.ai'),\n // Together Section\n this._credentialPalace('Together AI', 'together-...', togetherKey, 'mgr-api-key-together', 'mgr-save-key-together', 'https://api.together.xyz/settings/api-keys'),\n // MiniMax Section\n this._credentialPalace('MiniMax', 'sk-cp-...', ModelManager.getKey('minimax') || '', 'mgr-api-key-minimax', 'mgr-save-key-minimax', 'https://api.minimax.io/'),\n \n // Model Selection Sphere\n {\n style: { marginTop: '10px' },\n children: [\n { tag: 'label', className: 'vibe-manager-label', style: { color: 'var(--neon-magenta)', fontSize: '0.85em' }, text: 'Manifestation Vessel (Current Model)' },\n {\n tag: 'select', id: 'mgr-model-select', className: 'vibe-manager-select',\n children: models.length > 0 ? models.map(m => {\n const pIcon = m.provider === 'openrouter' ? '🌐' : '⚡';\n let info = '';\n if (m.costPrompt !== undefined && m.costPrompt !== null) {\n info = ' ($' + m.costPrompt + ' / $' + m.costCompletion + ')';\n }\n \n return {\n tag: 'option', value: m.id,\n attributes: m.id === ModelManager.currentModel ? { selected: 'true' } : {},\n text: pIcon + ' ' + m.displayName + info\n };\n }) : [{ tag: 'option', text: 'Synthesize Credentials to View Models' }]\n }\n ]\n }\n ]\n };\n },\n\n _credentialPalace(title, hint, val, inputId, btnId, link = null) {\n const parts = [\n { tag: 'label', className: 'vibe-manager-label', text: title + ' Identifier' },\n {\n className: 'vibe-manager-input-group',\n children: [\n { tag: 'input', type: 'password', id: inputId, className: 'vibe-manager-input', value: val, placeholder: hint },\n { tag: 'button', id: btnId, className: 'primary-btn', style: { minHeight: 0, padding: '0 25px', borderRadius: '4px' }, text: 'BIND' }\n ]\n }\n ];\n\n if (link) {\n parts.push({ \n tag: 'a', href: link, target: '_blank', \n style: { display: 'inline-block', marginBottom: '15px', color: 'var(--neon-cyan)', fontSize: '0.7em', textDecoration: 'underline' }, \n text: 'Invoke Portal for New Key' \n });\n }\n\n return { children: parts };\n },\n\n bind(container, refresh) {\n const bindKey = async (id, provider) => {\n const el = container.querySelector(id);\n if (el) {\n const k = el.value.trim();\n await ModelManager.addKey(k);\n refresh();\n UI.showToast('Credential Bound: ' + provider, 'success');\n }\n };\n\n const gBtn = container.querySelector('#mgr-save-key-g');\n if (gBtn) gBtn.onclick = () => bindKey('#mgr-api-key-google', 'google');\n \n const oBtn = container.querySelector('#mgr-save-key-o');\n if (oBtn) oBtn.onclick = () => bindKey('#mgr-api-key-or', 'openrouter');\n\n const groqBtn = container.querySelector('#mgr-save-key-groq');\n if (groqBtn) groqBtn.onclick = () => bindKey('#mgr-api-key-groq', 'groq');\n\n const cerebrasBtn = container.querySelector('#mgr-save-key-cerebras');\n if (cerebrasBtn) cerebrasBtn.onclick = () => bindKey('#mgr-api-key-cerebras', 'cerebras');\n\n const openaiBtn = container.querySelector('#mgr-save-key-openai');\n if (openaiBtn) openaiBtn.onclick = () => bindKey('#mgr-api-key-openai', 'openai');\n\n const xaiBtn = container.querySelector('#mgr-save-key-xai');\n if (xaiBtn) xaiBtn.onclick = () => bindKey('#mgr-api-key-xai', 'xai');\n\n const togetherBtn = container.querySelector('#mgr-save-key-together');\n if (togetherBtn) togetherBtn.onclick = () => bindKey('#mgr-api-key-together', 'together');\n\n const minimaxBtn = container.querySelector('#mgr-save-key-minimax');\n if (minimaxBtn) minimaxBtn.onclick = () => bindKey('#mgr-api-key-minimax', 'minimax');\n\n const sel = container.querySelector('#mgr-model-select');\n if (sel) {\n sel.onchange = (e) => {\n ModelManager.currentModel = e.target.value;\n ModelManager.save();\n UI.showToast('Active Portal Shipped: ' + e.target.value, 'info');\n };\n }\n }\n};\n"}, "04b2815bc60dba84135067688ec64737fe8b2a5d": {"t": 1785846815.12362, "n": 6848, "h": "0fdcb1f7f6663865", "c": "\n// B\"H\n/**\n * @file GatekeeperBox.js\n * @brief THE PALACE OF THE DIMENSIONAL KEYS.\n */\n\nimport { ModelManager } from '../../model-manager.js';\nimport { UI } from '../../../ui.js';\n\nexport const GatekeeperBox = {\n /**\n * B\"H - Constructs the API Credentials Sphere.\n */\n build(gKey, orKey, groqKey, cerebrasKey, openaiKey, xaiKey, togetherKey, minimaxKey, models) {\n return {\n className: 'vibe-manager-box gatekeepers',\n children: [\n {\n className: 'vibe-manager-title-row',\n children: [\n { tag: 'h3', className: 'vibe-manager-box-title', text: '◈ The Gatekeepers' },\n { tag: 'span', style: { color: 'var(--neon-lime)', fontSize: '0.7em', fontWeight: 'bold' }, text: 'API INTEGRITY :: ACTIVE' }\n ]\n },\n // Google Section\n this._credentialPalace('Google Gemini', 'AIzaSy...', gKey, 'mgr-api-key-google', 'mgr-save-key-g'),\n // OpenRouter Section\n this._credentialPalace('OpenRouter Multi-Vessel', 'sk-or-v1-...', orKey, 'mgr-api-key-or', 'mgr-save-key-o', 'https://openrouter.ai/keys'),\n // Groq Section\n this._credentialPalace('Groq', 'gsk_...', groqKey, 'mgr-api-key-groq', 'mgr-save-key-groq', 'https://console.groq.com/keys'),\n // Cerebras Section\n this._credentialPalace('Cerebras', 'csk-...', cerebrasKey, 'mgr-api-key-cerebras', 'mgr-save-key-cerebras', 'https://cloud.cerebras.ai/platform/api-keys'),\n // OpenAI Section\n this._credentialPalace('OpenAI', 'sk-...', openaiKey, 'mgr-api-key-openai', 'mgr-save-key-openai', 'https://platform.openai.com/api-keys'),\n // xAI Section\n this._credentialPalace('xAI (Grok)', 'xai-...', xaiKey, 'mgr-api-key-xai', 'mgr-save-key-xai', 'https://console.x.ai'),\n // Together Section\n this._credentialPalace('Together AI', 'together-...', togetherKey, 'mgr-api-key-together', 'mgr-save-key-together', 'https://api.together.xyz/settings/api-keys'),\n // MiniMax Section\n this._credentialPalace('MiniMax', 'sk-cp-...', ModelManager.getKey('minimax') || '', 'mgr-api-key-minimax', 'mgr-save-key-minimax', 'https://api.minimax.io/'),\n \n // Model Selection Sphere\n {\n style: { marginTop: '10px' },\n children: [\n { tag: 'label', className: 'vibe-manager-label', style: { color: 'var(--neon-magenta)', fontSize: '0.85em' }, text: 'Manifestation Vessel (Current Model)' },\n {\n tag: 'select', id: 'mgr-model-select', className: 'vibe-manager-select',\n children: models.length > 0 ? models.map(m => {\n const pIcon = m.provider === 'openrouter' ? '🌐' : '⚡';\n let info = '';\n if (m.costPrompt !== undefined && m.costPrompt !== null) {\n info = ' ($' + m.costPrompt + ' / $' + m.costCompletion + ')';\n }\n \n return {\n tag: 'option', value: m.id,\n attributes: m.id === ModelManager.currentModel ? { selected: 'true' } : {},\n text: pIcon + ' ' + m.displayName + info\n };\n }) : [{ tag: 'option', text: 'Synthesize Credentials to View Models' }]\n }\n ]\n }\n ]\n };\n },\n\n _credentialPalace(title, hint, val, inputId, btnId, link = null) {\n const parts = [\n { tag: 'label', className: 'vibe-manager-label', text: title + ' Identifier' },\n {\n className: 'vibe-manager-input-group',\n children: [\n { tag: 'input', type: 'password', id: inputId, className: 'vibe-manager-input', value: val, placeholder: hint },\n { tag: 'button', id: btnId, className: 'primary-btn', style: { minHeight: 0, padding: '0 25px', borderRadius: '4px' }, text: 'BIND' }\n ]\n }\n ];\n\n if (link) {\n parts.push({ \n tag: 'a', href: link, target: '_blank', \n style: { display: 'inline-block', marginBottom: '15px', color: 'var(--neon-cyan)', fontSize: '0.7em', textDecoration: 'underline' }, \n text: 'Invoke Portal for New Key' \n });\n }\n\n return { children: parts };\n },\n\n bind(container, refresh) {\n const bindKey = async (id, provider) => {\n const el = container.querySelector(id);\n if (el) {\n const k = el.value.trim();\n await ModelManager.addKey(k);\n refresh();\n UI.showToast('Credential Bound: ' + provider, 'success');\n }\n };\n\n const gBtn = container.querySelector('#mgr-save-key-g');\n if (gBtn) gBtn.onclick = () => bindKey('#mgr-api-key-google', 'google');\n \n const oBtn = container.querySelector('#mgr-save-key-o');\n if (oBtn) oBtn.onclick = () => bindKey('#mgr-api-key-or', 'openrouter');\n\n const groqBtn = container.querySelector('#mgr-save-key-groq');\n if (groqBtn) groqBtn.onclick = () => bindKey('#mgr-api-key-groq', 'groq');\n\n const cerebrasBtn = container.querySelector('#mgr-save-key-cerebras');\n if (cerebrasBtn) cerebrasBtn.onclick = () => bindKey('#mgr-api-key-cerebras', 'cerebras');\n\n const openaiBtn = container.querySelector('#mgr-save-key-openai');\n if (openaiBtn) openaiBtn.onclick = () => bindKey('#mgr-api-key-openai', 'openai');\n\n const xaiBtn = container.querySelector('#mgr-save-key-xai');\n if (xaiBtn) xaiBtn.onclick = () => bindKey('#mgr-api-key-xai', 'xai');\n\n const togetherBtn = container.querySelector('#mgr-save-key-together');\n if (togetherBtn) togetherBtn.onclick = () => bindKey('#mgr-api-key-together', 'together');\n\n const minimaxBtn = container.querySelector('#mgr-save-key-minimax');\n if (minimaxBtn) minimaxBtn.onclick = () => bindKey('#mgr-api-key-minimax', 'minimax');\n\n const sel = container.querySelector('#mgr-model-select');\n if (sel) {\n sel.onchange = (e) => {\n ModelManager.currentModel = e.target.value;\n ModelManager.save();\n UI.showToast('Active Portal Shipped: ' + e.target.value, 'info');\n };\n }\n }\n};\n"}}, "geelooy/apps/code/js/vibe/agent/state/ProviderRegistry.js": {"f80f026c091385b5e6367d172e28348b6400addb": {"t": 1785674016.470038, "n": 2511, "h": "ee09d6992b9f926d", "c": "// B\"H\n/**\n * @file ProviderRegistry.js\n * @brief Provider metadata and API key prefix detection.\n */\n\nexport const Providers = {\n minimax: {\n id: 'minimax',\n name: 'MiniMax',\n link: 'https://platform.minimax.io/docs/api-reference/text-openai-api',\n icon: '🔬',\n color: 'var(--neon-cyan)',\n prefix: 'sk-cp-'\n },\n google: {\n id: 'google',\n name: 'Google Gemini',\n link: 'https://aistudio.google.com/app/apikey',\n icon: '⚡',\n color: 'var(--neon-cyan)',\n prefix: 'AIza'\n },\n openrouter: {\n id: 'openrouter',\n name: 'OpenRouter',\n link: 'https://openrouter.ai/keys',\n icon: '🌐',\n color: 'var(--neon-magenta)',\n prefix: 'sk-or'\n },\n groq: {\n id: 'groq',\n name: 'Groq',\n link: 'https://console.groq.com/keys',\n icon: '🚀',\n color: 'var(--neon-lime)',\n prefix: 'gsk_'\n },\n cerebras: {\n id: 'cerebras',\n name: 'Cerebras',\n link: 'https://cloud.cerebras.ai/platform/api-keys',\n icon: '🧠',\n color: 'var(--neon-cyan)',\n prefix: 'csk-'\n },\n openai: {\n id: 'openai',\n name: 'OpenAI',\n link: 'https://platform.openai.com/api-keys',\n icon: '🤖',\n color: 'var(--neon-cyan)',\n prefix: 'sk-'\n },\n xai: {\n id: 'xai',\n name: 'xAI (Grok)',\n link: 'https://console.x.ai',\n icon: '🛰️',\n color: 'var(--neon-magenta)',\n prefix: 'xai-'\n },\n together: {\n id: 'together',\n name: 'Together AI',\n link: 'https://api.together.xyz/settings/api-keys',\n icon: '🧩',\n color: 'var(--neon-lime)',\n prefix: 'together-'\n }\n};\n\nexport const ProviderUtils = {\n detect(rawKey = '') {\n if (rawKey.startsWith(Providers.minimax.prefix)) return Providers.minimax;\n if (rawKey.startsWith(Providers.openrouter.prefix)) return Providers.openrouter;\n if (rawKey.startsWith(Providers.groq.prefix)) return Providers.groq;\n if (rawKey.startsWith(Providers.cerebras.prefix)) return Providers.cerebras;\n if (rawKey.startsWith(Providers.xai.prefix)) return Providers.xai;\n if (rawKey.startsWith(Providers.together.prefix)) return Providers.together;\n if (rawKey.startsWith(Providers.google.prefix)) return Providers.google;\n if (rawKey.startsWith(Providers.openai.prefix)) return Providers.openai;\n return null;\n }\n};\n"}, "04b2815bc60dba84135067688ec64737fe8b2a5d": {"t": 1785846815.188388, "n": 2511, "h": "ee09d6992b9f926d", "c": "// B\"H\n/**\n * @file ProviderRegistry.js\n * @brief Provider metadata and API key prefix detection.\n */\n\nexport const Providers = {\n minimax: {\n id: 'minimax',\n name: 'MiniMax',\n link: 'https://platform.minimax.io/docs/api-reference/text-openai-api',\n icon: '🔬',\n color: 'var(--neon-cyan)',\n prefix: 'sk-cp-'\n },\n google: {\n id: 'google',\n name: 'Google Gemini',\n link: 'https://aistudio.google.com/app/apikey',\n icon: '⚡',\n color: 'var(--neon-cyan)',\n prefix: 'AIza'\n },\n openrouter: {\n id: 'openrouter',\n name: 'OpenRouter',\n link: 'https://openrouter.ai/keys',\n icon: '🌐',\n color: 'var(--neon-magenta)',\n prefix: 'sk-or'\n },\n groq: {\n id: 'groq',\n name: 'Groq',\n link: 'https://console.groq.com/keys',\n icon: '🚀',\n color: 'var(--neon-lime)',\n prefix: 'gsk_'\n },\n cerebras: {\n id: 'cerebras',\n name: 'Cerebras',\n link: 'https://cloud.cerebras.ai/platform/api-keys',\n icon: '🧠',\n color: 'var(--neon-cyan)',\n prefix: 'csk-'\n },\n openai: {\n id: 'openai',\n name: 'OpenAI',\n link: 'https://platform.openai.com/api-keys',\n icon: '🤖',\n color: 'var(--neon-cyan)',\n prefix: 'sk-'\n },\n xai: {\n id: 'xai',\n name: 'xAI (Grok)',\n link: 'https://console.x.ai',\n icon: '🛰️',\n color: 'var(--neon-magenta)',\n prefix: 'xai-'\n },\n together: {\n id: 'together',\n name: 'Together AI',\n link: 'https://api.together.xyz/settings/api-keys',\n icon: '🧩',\n color: 'var(--neon-lime)',\n prefix: 'together-'\n }\n};\n\nexport const ProviderUtils = {\n detect(rawKey = '') {\n if (rawKey.startsWith(Providers.minimax.prefix)) return Providers.minimax;\n if (rawKey.startsWith(Providers.openrouter.prefix)) return Providers.openrouter;\n if (rawKey.startsWith(Providers.groq.prefix)) return Providers.groq;\n if (rawKey.startsWith(Providers.cerebras.prefix)) return Providers.cerebras;\n if (rawKey.startsWith(Providers.xai.prefix)) return Providers.xai;\n if (rawKey.startsWith(Providers.together.prefix)) return Providers.together;\n if (rawKey.startsWith(Providers.google.prefix)) return Providers.google;\n if (rawKey.startsWith(Providers.openai.prefix)) return Providers.openai;\n return null;\n }\n};\n"}}}}