-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (84 loc) · 3.79 KB
/
index.html
File metadata and controls
91 lines (84 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ClientAgentJS - Chat Explorer</title>
<link rel="stylesheet" href="./browser-basic.css" />
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body class="browser-basic-page">
<div class="browser-basic-container">
<header class="browser-basic-hero">
<div class="hero-content">
<h1>ClientAgentJS Chat Explorer</h1>
<p>
A full-featured example of the <code class="browser-basic-code">ClientAgentJS</code> API.
Configure your profiles, start a session, and interact with the agent.
</p>
</div>
<div class="browser-basic-toolbar main-actions">
<button class="browser-basic-toolbar-btn primary" id="btn-open-config">
<span class="icon">⚙️</span> Model
</button>
<button class="browser-basic-toolbar-btn" id="btn-open-mcp">
<span class="icon">🔌</span> MCP
</button>
<button class="browser-basic-toolbar-btn" id="btn-quick-ollama" title="Create a local Ollama profile (requires Ollama running)">
Quick Ollama
</button>
</div>
</header>
<main class="chat-layout">
<aside class="chat-sidebar">
<section class="sidebar-section">
<h3 class="browser-basic-section-title">Session</h3>
<div class="sidebar-actions">
<button class="browser-basic-toolbar-btn" id="btn-new-chat">New Chat Session</button>
<button class="browser-basic-toolbar-btn" id="btn-check">Refresh Status</button>
</div>
<div id="agent-status-badge" class="status-badge">Checking...</div>
<div id="agents-md-badge" class="status-badge subtle">AGENTS.md inactive</div>
</section>
<section class="sidebar-section">
<h3 class="browser-basic-section-title">Storage & Portability</h3>
<div class="storage-toggle">
<label>
<input type="radio" name="storage-type" value="session" checked> Session
</label>
<label>
<input type="radio" name="storage-type" value="local"> Local
</label>
</div>
<div class="sidebar-actions">
<button class="browser-basic-toolbar-btn small" id="btn-export">Export Config</button>
<button class="browser-basic-toolbar-btn small" id="btn-import">Import Config</button>
</div>
</section>
<section class="sidebar-section logs-section">
<h3 class="browser-basic-section-title">Event Log</h3>
<div id="event-log" class="event-log"></div>
</section>
</aside>
<section class="chat-main">
<div id="messages" class="messages-container">
<div class="message system">
Welcome! Please configure a profile to start chatting.
</div>
</div>
<div class="chat-input-area">
<div class="input-wrapper">
<textarea id="prompt" class="browser-basic-textarea" placeholder="Type a message... (Shift+Enter to send)"></textarea>
</div>
<div class="browser-basic-toolbar chat-controls">
<button class="browser-basic-toolbar-btn primary" id="btn-send">Send</button>
<button class="browser-basic-toolbar-btn danger" id="btn-stop" disabled>Stop</button>
<button class="browser-basic-toolbar-btn danger" id="btn-clear">Clear Chat</button>
</div>
</div>
</section>
</main>
</div>
<script type="module" src="./main.js"></script>
</body>
</html>