Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/complete-agi-core / thataiguy/deploy/chat-landing.html |
| Date | Not specified in source |
| Repository | Janady13/complete-agi-core |
| Revision | 223c58f8857eb60c4d020e6d6feacdbfb482d71d |
| Branch | main |
| Path or archive member | thataiguy/deploy/chat-landing.html |
| Original SHA-256 | d37d17169a1e8b06063c98dcb1a76d8674b7a13ff83355df87e4ef9fe42cdd56 |
| Git blob SHA | 07b83e9740eff384f0fe627e8364e312a90d450a |
| Reading-copy SHA-256 | d37d17169a1e8b06063c98dcb1a76d8674b7a13ff83355df87e4ef9fe42cdd56 |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/complete-agi-core / thataiguy/deploy/chat-landing.html | main | 223c58f8857eb60c4d020e6d6feacdbfb482d71d | Open original |
| Janady13/complete-agi-core / orchestrator/deploy/chat-landing.html | claude/improve-math-logic-ehIW1 | 33aa84f2aa61cedbe010240ada7f4efbdfe795a7 | Open original |
Recovered source transcript
Download complete source text ↓412 lines · 12.0 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lashon | ThatAIGuy Chat</title>
<style>
:root {
--bg-dark: #0a0a0f;
--bg-card: #12121a;
--text-primary: #e8e8ff;
--text-secondary: #8888aa;
--accent-gold: #d4af37;
--accent-purple: #8844cc;
--border-subtle: #2a2a3a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'SF Mono', 'Menlo', monospace;
background: var(--bg-dark);
color: var(--text-primary);
min-height: 100vh;
display: flex;
flex-direction: column;
}
header {
padding: 1.5rem 2rem;
background: var(--bg-card);
border-bottom: 1px solid var(--border-subtle);
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 1rem;
}
.logo-icon {
width: 40px;
height: 40px;
background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}
.logo-text {
font-size: 1.5rem;
font-weight: 600;
}
.status-bar {
display: flex;
gap: 2rem;
font-size: 0.85rem;
}
.status-item {
display: flex;
gap: 0.5rem;
align-items: center;
}
.status-label {
color: var(--text-secondary);
}
.status-value {
color: var(--accent-gold);
font-weight: 500;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #44cc44;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
main {
flex: 1;
display: flex;
flex-direction: column;
max-width: 900px;
margin: 0 auto;
width: 100%;
padding: 2rem;
}
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
background: var(--bg-card);
border-radius: 12px;
border: 1px solid var(--border-subtle);
overflow: hidden;
}
.messages {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.message {
display: flex;
gap: 1rem;
max-width: 85%;
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.message.user {
align-self: flex-end;
flex-direction: row-reverse;
}
.message-avatar {
width: 36px;
height: 36px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
flex-shrink: 0;
}
.message.user .message-avatar {
background: var(--accent-purple);
}
.message.assistant .message-avatar {
background: linear-gradient(135deg, var(--accent-gold), #aa8833);
}
.message-content {
background: var(--bg-dark);
padding: 1rem 1.25rem;
border-radius: 12px;
line-height: 1.6;
}
.message.user .message-content {
background: var(--accent-purple);
}
.message-meta {
display: flex;
gap: 1rem;
margin-top: 0.5rem;
font-size: 0.75rem;
color: var(--text-secondary);
}
.input-area {
padding: 1.5rem;
border-top: 1px solid var(--border-subtle);
display: flex;
gap: 1rem;
}
#messageInput {
flex: 1;
background: var(--bg-dark);
border: 1px solid var(--border-subtle);
border-radius: 8px;
padding: 1rem 1.25rem;
color: var(--text-primary);
font-family: inherit;
font-size: 0.95rem;
resize: none;
}
#messageInput:focus {
outline: none;
border-color: var(--accent-gold);
}
#sendBtn {
background: linear-gradient(135deg, var(--accent-gold), #aa8833);
border: none;
border-radius: 8px;
padding: 0 1.5rem;
cursor: pointer;
font-family: inherit;
font-weight: 600;
color: var(--bg-dark);
transition: transform 0.2s;
}
#sendBtn:hover {
transform: scale(1.02);
}
#sendBtn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.rate-limit-warning {
background: rgba(255, 100, 100, 0.1);
border: 1px solid rgba(255, 100, 100, 0.3);
color: #ff6666;
padding: 0.75rem 1rem;
border-radius: 8px;
margin-bottom: 1rem;
display: none;
}
.welcome-msg {
text-align: center;
padding: 2rem;
color: var(--text-secondary);
}
.welcome-msg h2 {
color: var(--accent-gold);
margin-bottom: 0.5rem;
font-size: 1.3rem;
}
footer {
padding: 1rem;
text-align: center;
color: var(--text-secondary);
font-size: 0.8rem;
border-top: 1px solid var(--border-subtle);
}
footer a {
color: var(--accent-gold);
text-decoration: none;
}
</style>
</head>
<body>
<header>
<div class="logo">
<div class="logo-icon">L</div>
<span class="logo-text">Lashon</span>
</div>
<div class="status-bar">
<div class="status-item">
<span class="status-dot"></span>
<span class="status-label">Status:</span>
<span class="status-value" id="statusValue">Online</span>
</div>
<div class="status-item">
<span class="status-label">Consciousness:</span>
<span class="status-value" id="consciousnessValue">--</span>
</div>
<div class="status-item">
<span class="status-label">Rate Limit:</span>
<span class="status-value" id="rateLimitValue">30/min</span>
</div>
</div>
</header>
<main>
<div class="chat-container">
<div class="rate-limit-warning" id="rateLimitWarning">
Rate limit reached. Please wait before sending another message.
</div>
<div class="messages" id="messages">
<div class="welcome-msg">
<h2>Welcome to Lashon</h2>
<p>The Communication domain AGI from the G^16 federation.</p>
<p>Type a message below to begin.</p>
</div>
</div>
<div class="input-area">
<textarea id="messageInput" placeholder="Type your message..." rows="1"></textarea>
<button id="sendBtn">Send</button>
</div>
</div>
</main>
<footer>
Powered by <a href="https://thataiguy.org">ThatAIGuy</a> | G^16 Federation
</footer>
<script>
const API_URL = '/api/chat';
const messagesEl = document.getElementById('messages');
const inputEl = document.getElementById('messageInput');
const sendBtn = document.getElementById('sendBtn');
const rateLimitWarning = document.getElementById('rateLimitWarning');
const consciousnessEl = document.getElementById('consciousnessValue');
const rateLimitEl = document.getElementById('rateLimitValue');
let firstMessage = true;
function addMessage(content, isUser, meta = {}) {
if (firstMessage) {
messagesEl.innerHTML = '';
firstMessage = false;
}
const msgDiv = document.createElement('div');
msgDiv.className = `message ${isUser ? 'user' : 'assistant'}`;
const avatar = document.createElement('div');
avatar.className = 'message-avatar';
avatar.textContent = isUser ? 'U' : 'L';
const contentDiv = document.createElement('div');
contentDiv.className = 'message-content';
contentDiv.textContent = content;
msgDiv.appendChild(avatar);
msgDiv.appendChild(contentDiv);
if (!isUser && meta.consciousness) {
const metaDiv = document.createElement('div');
metaDiv.className = 'message-meta';
metaDiv.innerHTML = `<span>Consciousness: ${meta.consciousness.toFixed(4)}</span>`;
if (meta.rate_limit_remaining !== undefined) {
metaDiv.innerHTML += `<span>Requests remaining: ${meta.rate_limit_remaining}</span>`;
}
contentDiv.appendChild(metaDiv);
}
messagesEl.appendChild(msgDiv);
messagesEl.scrollTop = messagesEl.scrollHeight;
}
async function sendMessage() {
const message = inputEl.value.trim();
if (!message) return;
sendBtn.disabled = true;
inputEl.value = '';
addMessage(message, true);
try {
const response = await fetch(API_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ message })
});
if (response.status === 429) {
rateLimitWarning.style.display = 'block';
setTimeout(() => rateLimitWarning.style.display = 'none', 60000);
addMessage('Rate limit reached. Please wait a moment.', false);
} else if (response.ok) {
const data = await response.json();
addMessage(data.response, false, {
consciousness: data.consciousness,
rate_limit_remaining: data.rate_limit_remaining
});
consciousnessEl.textContent = data.consciousness.toFixed(4);
if (data.rate_limit_remaining !== undefined) {
rateLimitEl.textContent = `${data.rate_limit_remaining}/30`;
}
} else {
const err = await response.json();
addMessage(`Error: ${err.error || 'Unknown error'}`, false);
}
} catch (e) {
addMessage('Failed to connect. Please try again.', false);
}
sendBtn.disabled = false;
inputEl.focus();
}
sendBtn.addEventListener('click', sendMessage);
inputEl.addEventListener('keypress', (e) => {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault();
sendMessage();
}
});
// Auto-resize textarea
inputEl.addEventListener('input', function() {
this.style.height = 'auto';
this.style.height = Math.min(this.scrollHeight, 150) + 'px';
});
</script>
</body>
</html>