@hanzo/browser-extension 1.9.72 → 1.9.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chrome/background.js +47 -41
- package/chrome/content-script.js +52 -38
- package/chrome/manifest.json +1 -1
- package/chrome/newtab.css +1 -1
- package/chrome/newtab.js +50 -50
- package/chrome/popup.css +616 -288
- package/chrome/popup.html +437 -470
- package/chrome/popup.js +16 -14
- package/chrome/sidebar.css +236 -134
- package/chrome/sidebar.html +39 -1
- package/chrome/sidebar.js +75 -74
- package/firefox/background.js +20 -14
- package/firefox/content-script.js +52 -38
- package/firefox/manifest.json +1 -1
- package/firefox/newtab.css +1 -1
- package/firefox/newtab.js +50 -50
- package/firefox/popup.css +616 -288
- package/firefox/popup.html +437 -470
- package/firefox/popup.js +16 -14
- package/firefox/sidebar.css +236 -134
- package/firefox/sidebar.html +39 -1
- package/firefox/sidebar.js +75 -74
- package/package.json +1 -1
package/chrome/popup.html
CHANGED
|
@@ -8,129 +8,45 @@
|
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div class="container">
|
|
11
|
-
<!--
|
|
11
|
+
<!-- Quiet Top Header -->
|
|
12
12
|
<header class="header">
|
|
13
13
|
<div class="brand-group">
|
|
14
|
-
<svg class="logo" viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
|
|
14
|
+
<svg class="logo" viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
15
15
|
<path d="M22.21 67V44.6369H0V67H22.21Z" fill="currentColor"/>
|
|
16
16
|
<path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="currentColor"/>
|
|
17
17
|
<path d="M22.21 0H0V22.3184H22.21V0Z" fill="currentColor"/>
|
|
18
18
|
<path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="currentColor"/>
|
|
19
19
|
<path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="currentColor"/>
|
|
20
20
|
</svg>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</button>
|
|
31
|
-
<div id="model-dropdown" class="model-dropdown hidden">
|
|
32
|
-
<div class="model-dropdown-group">
|
|
33
|
-
<span class="model-group-title">Hanzo Cloud</span>
|
|
34
|
-
<button type="button" class="model-item" data-model="auto">
|
|
35
|
-
<div class="model-item-text">
|
|
36
|
-
<span class="model-name">Auto</span>
|
|
37
|
-
<span class="model-desc">Routes to best model</span>
|
|
38
|
-
</div>
|
|
39
|
-
</button>
|
|
40
|
-
<button type="button" class="model-item" data-model="zen5">
|
|
41
|
-
<div class="model-item-text">
|
|
42
|
-
<span class="model-name">Zen5</span>
|
|
43
|
-
<span class="model-desc">Flagship reasoning</span>
|
|
44
|
-
</div>
|
|
45
|
-
</button>
|
|
46
|
-
<button type="button" class="model-item" data-model="zen5-flash">
|
|
47
|
-
<div class="model-item-text">
|
|
48
|
-
<span class="model-name">Zen5 Flash</span>
|
|
49
|
-
<span class="model-desc">Ultra-fast responses</span>
|
|
50
|
-
</div>
|
|
51
|
-
</button>
|
|
52
|
-
<button type="button" class="model-item" data-model="zen5-coder">
|
|
53
|
-
<div class="model-item-text">
|
|
54
|
-
<span class="model-name">Zen5 Coder</span>
|
|
55
|
-
<span class="model-desc">Code generation & reasoning</span>
|
|
56
|
-
</div>
|
|
57
|
-
</button>
|
|
58
|
-
<button type="button" class="model-item" data-model="enso">
|
|
59
|
-
<div class="model-item-text">
|
|
60
|
-
<span class="model-name">Enso</span>
|
|
61
|
-
<span class="model-desc">Agentic planner</span>
|
|
62
|
-
</div>
|
|
63
|
-
</button>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<div class="model-dropdown-group">
|
|
67
|
-
<span class="model-group-title">Connected Subscriptions</span>
|
|
68
|
-
<button type="button" class="model-item" data-model="chatgpt-web">
|
|
69
|
-
<div class="model-item-text">
|
|
70
|
-
<span class="model-name">ChatGPT Web (Plus)</span>
|
|
71
|
-
<span class="model-desc">Zero-footprint temporary chats</span>
|
|
72
|
-
</div>
|
|
73
|
-
<span class="model-tag plus">Plus</span>
|
|
74
|
-
</button>
|
|
75
|
-
<button type="button" class="model-item" data-model="claude-web">
|
|
76
|
-
<div class="model-item-text">
|
|
77
|
-
<span class="model-name">Claude Web</span>
|
|
78
|
-
<span class="model-desc">Active Claude session</span>
|
|
79
|
-
</div>
|
|
80
|
-
</button>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
<div class="model-dropdown-group">
|
|
84
|
-
<span class="model-group-title">Local & Private AI</span>
|
|
85
|
-
<button type="button" class="model-item" data-model="hanzo-spark">
|
|
86
|
-
<div class="model-item-text">
|
|
87
|
-
<span class="model-name">Hanzo Spark</span>
|
|
88
|
-
<span class="model-desc">GB10 CUDA (10.0.0.19:1235)</span>
|
|
89
|
-
</div>
|
|
90
|
-
</button>
|
|
91
|
-
<button type="button" class="model-item" data-model="hanzo-evo">
|
|
92
|
-
<div class="model-item-text">
|
|
93
|
-
<span class="model-name">Hanzo Evo</span>
|
|
94
|
-
<span class="model-desc">Strix Halo ROCm (10.0.0.21:1234)</span>
|
|
95
|
-
</div>
|
|
96
|
-
</button>
|
|
97
|
-
<button type="button" class="model-item" data-model="hanzo-desktop">
|
|
98
|
-
<div class="model-item-text">
|
|
99
|
-
<span class="model-name">Hanzo Desktop</span>
|
|
100
|
-
<span class="model-desc">Local instance (:11435)</span>
|
|
101
|
-
</div>
|
|
102
|
-
</button>
|
|
103
|
-
<button type="button" class="model-item" data-model="webgpu">
|
|
104
|
-
<div class="model-item-text">
|
|
105
|
-
<span class="model-name">WebGPU AI</span>
|
|
106
|
-
<span class="model-desc">On-device in-browser</span>
|
|
107
|
-
</div>
|
|
108
|
-
</button>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
21
|
+
<span id="header-zap-dot" class="header-zap-dot" title="ZAP: Connecting…"></span>
|
|
22
|
+
<div class="org-picker-wrapper">
|
|
23
|
+
<button id="org-pill-btn" class="org-pill-btn" type="button" title="hanzo.id · Active organization (X-Org-Id)">
|
|
24
|
+
<span id="org-pill-label">hanzo.id</span>
|
|
25
|
+
<svg class="chevron" viewBox="0 0 16 16" width="10" height="10" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
|
|
26
|
+
<path d="M4 6l4 4 4-4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
27
|
+
</svg>
|
|
28
|
+
</button>
|
|
29
|
+
<div id="org-dropdown" class="org-dropdown hidden" role="menu"></div>
|
|
112
30
|
</div>
|
|
113
31
|
</div>
|
|
114
32
|
|
|
115
33
|
<div class="header-actions">
|
|
116
|
-
<!--
|
|
117
|
-
<button id="
|
|
118
|
-
<svg viewBox="0 0
|
|
119
|
-
<
|
|
120
|
-
<line x1="15" y1="3" x2="15" y2="21"/>
|
|
34
|
+
<!-- New Thread -->
|
|
35
|
+
<button id="popup-new-thread-btn" class="icon-btn" type="button" title="New thread" aria-label="New thread">
|
|
36
|
+
<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true">
|
|
37
|
+
<path d="M8 3v10M3 8h10" stroke-linecap="round"/>
|
|
121
38
|
</svg>
|
|
122
39
|
</button>
|
|
123
|
-
<!--
|
|
124
|
-
<button id="open-
|
|
125
|
-
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.
|
|
126
|
-
<
|
|
127
|
-
<
|
|
128
|
-
<line x1="10" y1="14" x2="21" y2="3"/>
|
|
40
|
+
<!-- Chat on the page itself -->
|
|
41
|
+
<button id="open-panel" class="icon-btn" type="button" title="Chat on the page" aria-label="Chat on the page">
|
|
42
|
+
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true">
|
|
43
|
+
<rect x="3" y="3" width="18" height="18" rx="3"/>
|
|
44
|
+
<line x1="15" y1="3" x2="15" y2="21"/>
|
|
129
45
|
</svg>
|
|
130
46
|
</button>
|
|
131
|
-
<!--
|
|
132
|
-
<button id="open-settings" class="icon-btn" title="Settings">
|
|
133
|
-
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.
|
|
47
|
+
<!-- Settings -->
|
|
48
|
+
<button id="open-settings" class="icon-btn" type="button" title="Settings" aria-label="Settings">
|
|
49
|
+
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true">
|
|
134
50
|
<circle cx="12" cy="12" r="3"/>
|
|
135
51
|
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>
|
|
136
52
|
</svg>
|
|
@@ -138,138 +54,135 @@
|
|
|
138
54
|
</div>
|
|
139
55
|
</header>
|
|
140
56
|
|
|
141
|
-
<!--
|
|
142
|
-
<nav class="popup-nav-tabs">
|
|
143
|
-
<button type="button" class="nav-tab-btn active" data-tab="tab-chat">Chat & Search</button>
|
|
144
|
-
<button type="button" class="nav-tab-btn" data-tab="tab-accounts">Accounts & Usage</button>
|
|
145
|
-
<button type="button" class="nav-tab-btn" data-tab="tab-bridges">Bridges</button>
|
|
146
|
-
</nav>
|
|
147
|
-
|
|
148
|
-
<!-- Main Container Body -->
|
|
57
|
+
<!-- Main view: the chat. It acts in the page. -->
|
|
149
58
|
<div id="main-section" class="section main-view">
|
|
59
|
+
<!-- Signed out: one line and one button, above the thread -->
|
|
60
|
+
<div id="login-section" class="login-banner hidden">
|
|
61
|
+
<span class="login-banner-text">Sign in to chat with Hanzo.</span>
|
|
62
|
+
<button id="login-btn" class="login-banner-btn" type="button">Sign in</button>
|
|
63
|
+
<button id="signup-btn-popup" class="login-banner-link" type="button">Create account</button>
|
|
64
|
+
</div>
|
|
150
65
|
|
|
151
|
-
<!--
|
|
152
|
-
<div id="tab-
|
|
153
|
-
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<span id="tab-context-title" class="context-title">Detecting active page…</span>
|
|
158
|
-
<button id="toggle-context-btn" class="context-toggle" title="Toggle page context" type="button">Active</button>
|
|
159
|
-
</div>
|
|
66
|
+
<!-- The page the agent works on -->
|
|
67
|
+
<div id="tab-context-chip" class="context-chip" title="The agent works on this tab">
|
|
68
|
+
<span class="context-dot"></span>
|
|
69
|
+
<span class="context-tag">Page</span>
|
|
70
|
+
<span id="tab-context-title" class="context-title">Detecting active page…</span>
|
|
71
|
+
</div>
|
|
160
72
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
<
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<span>Inspect</span>
|
|
170
|
-
</button>
|
|
171
|
-
<button type="button" class="tool-btn" id="tool-screenshot" title="Capture active tab">
|
|
172
|
-
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
173
|
-
<rect x="2" y="3" width="12" height="10" rx="1.5"/><circle cx="8" cy="8" r="2.5"/>
|
|
174
|
-
</svg>
|
|
175
|
-
<span>Screenshot</span>
|
|
176
|
-
</button>
|
|
177
|
-
<button type="button" class="tool-btn" id="tool-pageinfo" title="Copy page metadata">
|
|
178
|
-
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
179
|
-
<circle cx="8" cy="8" r="6"/><line x1="8" y1="7" x2="8" y2="11"/><line x1="8" y1="5" x2="8.01" y2="5"/>
|
|
180
|
-
</svg>
|
|
181
|
-
<span>Page Info</span>
|
|
182
|
-
</button>
|
|
183
|
-
<button type="button" class="tool-btn" id="tool-accessibility" title="Run accessibility audit">
|
|
184
|
-
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
185
|
-
<circle cx="8" cy="4" r="2"/><path d="M4 7h8M8 7v7M5 14l3-3 3 3"/>
|
|
186
|
-
</svg>
|
|
187
|
-
<span>A11y Audit</span>
|
|
188
|
-
</button>
|
|
189
|
-
<button type="button" class="tool-btn" id="tool-performance" title="Run performance audit">
|
|
190
|
-
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
191
|
-
<path d="M8 2v4l3 2"/><circle cx="8" cy="8" r="6"/>
|
|
192
|
-
</svg>
|
|
193
|
-
<span>Performance</span>
|
|
194
|
-
</button>
|
|
195
|
-
<button type="button" class="tool-btn" id="tool-console" title="Open JS eval prompt">
|
|
196
|
-
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
197
|
-
<polyline points="4 6 8 10 4 14"/><line x1="10" y1="14" x2="14" y2="14"/>
|
|
198
|
-
</svg>
|
|
199
|
-
<span>Console</span>
|
|
200
|
-
</button>
|
|
73
|
+
<!-- The thread -->
|
|
74
|
+
<div id="thread" class="thread" role="log" aria-live="polite">
|
|
75
|
+
<div id="thread-empty" class="thread-empty">
|
|
76
|
+
<p class="thread-empty-title">Ask, or tell me what to do on this page.</p>
|
|
77
|
+
<div class="quick-pills">
|
|
78
|
+
<button type="button" class="quick-pill" data-prompt="Summarize this page in 3 clear bullets">Summarize this page</button>
|
|
79
|
+
<button type="button" class="quick-pill" data-prompt="What can I do on this page?">What can I do here?</button>
|
|
80
|
+
<button type="button" class="quick-pill" data-prompt="Find the pricing on this site and tell me the plans">Find the pricing</button>
|
|
201
81
|
</div>
|
|
202
82
|
</div>
|
|
83
|
+
</div>
|
|
203
84
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
85
|
+
<!-- Tools pinned from settings -->
|
|
86
|
+
<div id="pins" class="pins hidden" aria-label="Pinned"></div>
|
|
87
|
+
|
|
88
|
+
<!-- Floating Composer -->
|
|
89
|
+
<form id="search-form" class="composer-box">
|
|
90
|
+
<textarea
|
|
91
|
+
id="search-input"
|
|
92
|
+
class="composer-input"
|
|
93
|
+
placeholder="Ask, or tell me what to do…"
|
|
94
|
+
rows="2"
|
|
95
|
+
autocomplete="off"
|
|
96
|
+
spellcheck="false"
|
|
97
|
+
></textarea>
|
|
98
|
+
|
|
99
|
+
<div class="composer-bottom">
|
|
100
|
+
<div class="composer-controls-left">
|
|
101
|
+
<!-- Model: the Hanzo gateway models that can use tools -->
|
|
102
|
+
<div class="model-picker-wrapper">
|
|
103
|
+
<button id="model-select-btn" class="brand-badge-btn" type="button" title="Select AI Model">
|
|
104
|
+
<span id="model-badge">Enso</span>
|
|
105
|
+
<svg class="chevron" viewBox="0 0 16 16" width="10" height="10" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
|
|
106
|
+
<path d="M4 6l4 4 4-4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
220
107
|
</svg>
|
|
221
|
-
<span>Ask AI</span>
|
|
222
108
|
</button>
|
|
223
|
-
<
|
|
224
|
-
<
|
|
225
|
-
<
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
109
|
+
<div id="model-dropdown" class="model-dropdown hidden">
|
|
110
|
+
<div class="model-dropdown-group">
|
|
111
|
+
<span class="model-group-title">Enso & Zen 6</span>
|
|
112
|
+
<button type="button" class="model-item" data-model="enso">
|
|
113
|
+
<div class="model-item-text">
|
|
114
|
+
<span class="model-name">Enso</span>
|
|
115
|
+
<span class="model-desc">Autonomous router & planner</span>
|
|
116
|
+
</div>
|
|
117
|
+
</button>
|
|
118
|
+
<button type="button" class="model-item" data-model="zen6">
|
|
119
|
+
<div class="model-item-text">
|
|
120
|
+
<span class="model-name">Zen 6</span>
|
|
121
|
+
<span class="model-desc">Flagship reasoning & coding</span>
|
|
122
|
+
</div>
|
|
123
|
+
</button>
|
|
124
|
+
<button type="button" class="model-item" data-model="zen6-flash">
|
|
125
|
+
<div class="model-item-text">
|
|
126
|
+
<span class="model-name">Zen 6 Flash</span>
|
|
127
|
+
<span class="model-desc">Ultra-fast low-latency responses</span>
|
|
128
|
+
</div>
|
|
129
|
+
</button>
|
|
130
|
+
<button type="button" class="model-item" data-model="zen6-coder">
|
|
131
|
+
<div class="model-item-text">
|
|
132
|
+
<span class="model-name">Zen 6 Coder</span>
|
|
133
|
+
<span class="model-desc">Agentic coding & systems</span>
|
|
134
|
+
</div>
|
|
135
|
+
</button>
|
|
136
|
+
<button type="button" class="model-item" data-model="zen6-max">
|
|
137
|
+
<div class="model-item-text">
|
|
138
|
+
<span class="model-name">Zen 6 Max</span>
|
|
139
|
+
<span class="model-desc">Deep multi-step reasoning</span>
|
|
140
|
+
</div>
|
|
141
|
+
</button>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
232
144
|
</div>
|
|
233
|
-
</div>
|
|
234
|
-
</form>
|
|
235
145
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
📖 Explain simply
|
|
246
|
-
</button>
|
|
247
|
-
</div>
|
|
146
|
+
<!-- Voice / Mic Trigger (shown when SpeechRecognition is supported) -->
|
|
147
|
+
<button type="button" id="voice-mic-btn" class="composer-round-btn hidden" title="Voice dictation" aria-label="Voice dictation" data-listening="false">
|
|
148
|
+
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
|
|
149
|
+
<rect x="9" y="2" width="6" height="12" rx="3"/>
|
|
150
|
+
<path d="M5 10a7 7 0 0 0 14 0" stroke-linecap="round"/>
|
|
151
|
+
<line x1="12" y1="17" x2="12" y2="22" stroke-linecap="round"/>
|
|
152
|
+
</svg>
|
|
153
|
+
</button>
|
|
154
|
+
</div>
|
|
248
155
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
<svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
259
|
-
<rect x="5" y="5" width="8" height="8" rx="1.5"/>
|
|
260
|
-
<path d="M11 5V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h2"/>
|
|
261
|
-
</svg>
|
|
262
|
-
<span>Copy</span>
|
|
263
|
-
</button>
|
|
264
|
-
<button id="continue-chat-btn" class="pill-btn highlight" type="button" title="Open full chat">
|
|
265
|
-
<span>Full Chat →</span>
|
|
266
|
-
</button>
|
|
267
|
-
</div>
|
|
156
|
+
<div class="composer-actions">
|
|
157
|
+
<button type="submit" id="ask-btn" class="composer-send-pill" title="Send (Enter)" aria-label="Send" data-busy="false">
|
|
158
|
+
<svg class="icon-send" viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2.2" aria-hidden="true">
|
|
159
|
+
<path d="M8 12V4M4.5 7.5L8 4l3.5 3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
160
|
+
</svg>
|
|
161
|
+
<svg class="icon-stop" viewBox="0 0 16 16" width="13" height="13" fill="currentColor" aria-hidden="true">
|
|
162
|
+
<rect x="4" y="4" width="8" height="8" rx="1.5"/>
|
|
163
|
+
</svg>
|
|
164
|
+
</button>
|
|
268
165
|
</div>
|
|
269
|
-
<div id="inline-answer-content" class="answer-card-body"></div>
|
|
270
166
|
</div>
|
|
167
|
+
<div class="composer-meta-row">
|
|
168
|
+
<span class="composer-shortcut"><kbd>↵</kbd> send · <kbd>⇧↵</kbd> line · <kbd>⌘K</kbd> commands</span>
|
|
169
|
+
</div>
|
|
170
|
+
</form>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
<!-- Settings: everything else, each feature pinnable to the main view -->
|
|
174
|
+
<div id="settings-section" class="section settings-view hidden">
|
|
175
|
+
<div class="settings-top">
|
|
176
|
+
<h2>Settings</h2>
|
|
177
|
+
<button id="back-btn" class="icon-btn" type="button" title="Back to Chat" aria-label="Back to Chat">
|
|
178
|
+
<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2">
|
|
179
|
+
<path d="M12 8H4M8 4l-4 4 4 4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
180
|
+
</svg>
|
|
181
|
+
</button>
|
|
182
|
+
</div>
|
|
271
183
|
|
|
272
|
-
|
|
184
|
+
<div class="settings-body">
|
|
185
|
+
<!-- Account -->
|
|
273
186
|
<div id="user-info-section" class="user-strip hidden">
|
|
274
187
|
<div class="user-strip-inner">
|
|
275
188
|
<img id="user-avatar" class="avatar-sm" src="" alt="">
|
|
@@ -278,288 +191,342 @@
|
|
|
278
191
|
</div>
|
|
279
192
|
<button id="logout-btn" class="signout-link" type="button">Sign out</button>
|
|
280
193
|
</div>
|
|
281
|
-
</div>
|
|
282
|
-
|
|
283
|
-
<!-- Tab 2: Connected Accounts & Usage -->
|
|
284
|
-
<div id="tab-accounts" class="tab-pane hidden">
|
|
285
|
-
<div class="pane-header">
|
|
286
|
-
<span class="pane-title">Connected Accounts & Usage</span>
|
|
287
|
-
<button id="usage-refresh" class="pane-action-btn" type="button" title="Refresh Usage">
|
|
288
|
-
<svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
289
|
-
<path d="M13.5 8A5.5 5.5 0 1 1 8 2.5c2 0 3.7.9 4.8 2.4M13.5 2v3h-3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
290
|
-
</svg>
|
|
291
|
-
<span>Refresh</span>
|
|
292
|
-
</button>
|
|
293
|
-
</div>
|
|
294
194
|
|
|
295
|
-
<!--
|
|
296
|
-
<
|
|
297
|
-
<
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
195
|
+
<!-- Tools: run on the open page -->
|
|
196
|
+
<details class="sec" id="sec-tools" open>
|
|
197
|
+
<summary>Tools</summary>
|
|
198
|
+
<p class="sec-note">Run on the open page. Pin one to keep it on the chat view.</p>
|
|
199
|
+
<div class="feature-list">
|
|
200
|
+
<div class="feature-row">
|
|
201
|
+
<button type="button" class="tool-btn" id="tool-picker" data-tool="picker" title="Pick an element; the agent sees it and its source (browser action=inspected)">
|
|
202
|
+
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
203
|
+
<path d="M3 3l4 10 2-4 4-2L3 3z"/>
|
|
204
|
+
</svg>
|
|
205
|
+
<span>Inspect</span>
|
|
206
|
+
</button>
|
|
207
|
+
<button type="button" class="pin-btn" data-pin="picker" aria-pressed="false" title="Pin to chat view" aria-label="Pin Inspect to chat view"></button>
|
|
302
208
|
</div>
|
|
303
|
-
<div class="
|
|
304
|
-
<
|
|
305
|
-
<
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
209
|
+
<div class="feature-row">
|
|
210
|
+
<button type="button" class="tool-btn" id="tool-screenshot" data-tool="screenshot" title="Capture active tab">
|
|
211
|
+
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
212
|
+
<rect x="2" y="3" width="12" height="10" rx="1.5"/><circle cx="8" cy="8" r="2.5"/>
|
|
213
|
+
</svg>
|
|
214
|
+
<span>Screenshot</span>
|
|
215
|
+
</button>
|
|
216
|
+
<button type="button" class="pin-btn" data-pin="screenshot" aria-pressed="false" title="Pin to chat view" aria-label="Pin Screenshot to chat view"></button>
|
|
310
217
|
</div>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
218
|
+
<div class="feature-row">
|
|
219
|
+
<button type="button" class="tool-btn" id="tool-pageinfo" data-tool="pageinfo" title="Copy page metadata">
|
|
220
|
+
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
221
|
+
<circle cx="8" cy="8" r="6"/><line x1="8" y1="7" x2="8" y2="11"/><line x1="8" y1="5" x2="8.01" y2="5"/>
|
|
222
|
+
</svg>
|
|
223
|
+
<span>Page Info</span>
|
|
224
|
+
</button>
|
|
225
|
+
<button type="button" class="pin-btn" data-pin="pageinfo" aria-pressed="false" title="Pin to chat view" aria-label="Pin Page Info to chat view"></button>
|
|
316
226
|
</div>
|
|
317
|
-
<div class="
|
|
318
|
-
<
|
|
319
|
-
|
|
227
|
+
<div class="feature-row">
|
|
228
|
+
<button type="button" class="tool-btn" id="tool-accessibility" data-tool="a11y" title="Run accessibility audit">
|
|
229
|
+
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
230
|
+
<circle cx="8" cy="4" r="2"/><path d="M4 7h8M8 7v7M5 14l3-3 3 3"/>
|
|
231
|
+
</svg>
|
|
232
|
+
<span>A11y Audit</span>
|
|
233
|
+
</button>
|
|
234
|
+
<button type="button" class="pin-btn" data-pin="a11y" aria-pressed="false" title="Pin to chat view" aria-label="Pin A11y Audit to chat view"></button>
|
|
320
235
|
</div>
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
<!-- Local Compute Nodes Card -->
|
|
330
|
-
<div class="account-card">
|
|
331
|
-
<div class="account-card-header">
|
|
332
|
-
<div class="account-icon local-icon">
|
|
333
|
-
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
334
|
-
<rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/>
|
|
335
|
-
<line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/>
|
|
336
|
-
</svg>
|
|
236
|
+
<div class="feature-row">
|
|
237
|
+
<button type="button" class="tool-btn" id="tool-performance" data-tool="perf" title="Run performance audit">
|
|
238
|
+
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
239
|
+
<path d="M8 2v4l3 2"/><circle cx="8" cy="8" r="6"/>
|
|
240
|
+
</svg>
|
|
241
|
+
<span>Performance</span>
|
|
242
|
+
</button>
|
|
243
|
+
<button type="button" class="pin-btn" data-pin="perf" aria-pressed="false" title="Pin to chat view" aria-label="Pin Performance to chat view"></button>
|
|
337
244
|
</div>
|
|
338
|
-
<div class="
|
|
339
|
-
<
|
|
340
|
-
|
|
245
|
+
<div class="feature-row">
|
|
246
|
+
<button type="button" class="tool-btn" id="tool-console" data-tool="console" title="Open JS eval prompt">
|
|
247
|
+
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
248
|
+
<polyline points="4 6 8 10 4 14"/><line x1="10" y1="14" x2="14" y2="14"/>
|
|
249
|
+
</svg>
|
|
250
|
+
<span>Console</span>
|
|
251
|
+
</button>
|
|
252
|
+
<button type="button" class="pin-btn" data-pin="console" aria-pressed="false" title="Pin to chat view" aria-label="Pin Console to chat view"></button>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="feature-row">
|
|
255
|
+
<button type="button" class="tool-btn" id="tool-answer" data-tool="answer" title="Search with the answer engine in a new tab">
|
|
256
|
+
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
257
|
+
<circle cx="7" cy="7" r="4.5"/><path d="M11 11l3.5 3.5" stroke-linecap="round"/>
|
|
258
|
+
</svg>
|
|
259
|
+
<span>Answer Engine</span>
|
|
260
|
+
</button>
|
|
261
|
+
<button type="button" class="pin-btn" data-pin="answer" aria-pressed="false" title="Pin to chat view" aria-label="Pin Answer Engine to chat view"></button>
|
|
341
262
|
</div>
|
|
342
263
|
</div>
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
264
|
+
</details>
|
|
265
|
+
|
|
266
|
+
<!-- Accounts & usage -->
|
|
267
|
+
<details class="sec" id="sec-accounts">
|
|
268
|
+
<summary>
|
|
269
|
+
<span>Accounts & usage</span>
|
|
270
|
+
<button type="button" class="pin-btn" data-pin="accounts" aria-pressed="false" title="Pin to chat view" aria-label="Pin Accounts and usage to chat view"></button>
|
|
271
|
+
</summary>
|
|
272
|
+
<div class="pane-header">
|
|
273
|
+
<span class="pane-title">Connected Accounts & Usage</span>
|
|
274
|
+
<button id="usage-refresh" class="pane-action-btn" type="button" title="Refresh Usage">
|
|
275
|
+
<svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8">
|
|
276
|
+
<path d="M13.5 8A5.5 5.5 0 1 1 8 2.5c2 0 3.7.9 4.8 2.4M13.5 2v3h-3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
277
|
+
</svg>
|
|
278
|
+
<span>Refresh</span>
|
|
279
|
+
</button>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
<!-- ChatGPT Plus Web Account Card -->
|
|
283
|
+
<div class="account-card" id="chatgpt-account-card">
|
|
284
|
+
<div class="account-card-header">
|
|
285
|
+
<div class="account-icon chatgpt-icon">
|
|
286
|
+
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
|
|
287
|
+
<path d="M22.28 9.87c-.14-.99-.57-1.92-1.24-2.67-.67-.74-1.54-1.26-2.5-1.5-.2-.79-.6-1.51-1.16-2.11-.56-.6-1.26-1.03-2.04-1.26-.78-.23-1.61-.23-2.39 0-.78.23-1.48.66-2.04 1.26-.56.6-.96 1.32-1.16 2.11-.96.24-1.83.76-2.5 1.5-.67.75-1.1 1.68-1.24 2.67-.8.36-1.46.94-1.91 1.67-.45.73-.67 1.58-.64 2.44.03.86.32 1.69.83 2.39.51.7 1.22 1.21 2.04 1.48.14.99.57 1.92 1.24 2.67.67.75 1.54 1.26 2.5 1.5.2.79.6 1.51 1.16 2.11.56.6 1.26 1.03 2.04 1.26.78.23 1.61.23 2.39 0 .78-.23 1.48-.66 2.04-1.26.56-.6.96-1.32 1.16-2.11.96-.24 1.83-.76 2.5-1.5.67-.75 1.1-1.68 1.24-2.67.8-.36 1.46-.94 1.91-1.67.45-.73.67-1.58.64-2.44-.03-.86-.32-1.69-.83-2.39-.51-.7-1.22-1.21-2.04-1.48z"/>
|
|
288
|
+
</svg>
|
|
349
289
|
</div>
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
290
|
+
<div class="account-info">
|
|
291
|
+
<div class="account-name-row">
|
|
292
|
+
<span class="account-name">ChatGPT Web</span>
|
|
293
|
+
<span class="badge-pill plus" id="chatgpt-plan-badge">Plus</span>
|
|
294
|
+
<span class="badge-pill bridge">Exposed to Dev & ZAP</span>
|
|
295
|
+
</div>
|
|
296
|
+
<span class="account-sub" id="chatgpt-user-label">Checking session…</span>
|
|
356
297
|
</div>
|
|
357
298
|
</div>
|
|
358
|
-
<div class="
|
|
359
|
-
<
|
|
360
|
-
|
|
361
|
-
<span class="
|
|
362
|
-
|
|
299
|
+
<div class="account-details" id="chatgpt-details">
|
|
300
|
+
<div class="detail-row">
|
|
301
|
+
<span class="detail-label">Mode</span>
|
|
302
|
+
<span class="detail-val">Temporary Chats (Zero Trace)</span>
|
|
303
|
+
</div>
|
|
304
|
+
<div class="detail-row">
|
|
305
|
+
<span class="detail-label">Inference Relay</span>
|
|
306
|
+
<span class="detail-val live">Ready for hanzo/dev & bots</span>
|
|
363
307
|
</div>
|
|
364
308
|
</div>
|
|
365
309
|
</div>
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
368
310
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
<button id="test-connection" class="pane-action-btn" type="button">Test</button>
|
|
374
|
-
</div>
|
|
311
|
+
<!-- Usage List (Claude & Codex via @hanzo/usage) -->
|
|
312
|
+
<div id="usage-list" class="usage-container">
|
|
313
|
+
<div class="loading-state">Loading usage data…</div>
|
|
314
|
+
</div>
|
|
375
315
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
316
|
+
<!-- Local Compute Nodes Card -->
|
|
317
|
+
<div class="account-card">
|
|
318
|
+
<div class="account-card-header">
|
|
319
|
+
<div class="account-icon local-icon">
|
|
320
|
+
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
321
|
+
<rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/>
|
|
322
|
+
<line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/>
|
|
323
|
+
</svg>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="account-info">
|
|
326
|
+
<span class="account-name">Private & Local Hardware</span>
|
|
327
|
+
<span class="account-sub">Zero cloud egress · Local private models</span>
|
|
328
|
+
</div>
|
|
382
329
|
</div>
|
|
383
|
-
<
|
|
330
|
+
<div class="node-grid">
|
|
331
|
+
<div class="node-item" id="node-spark">
|
|
332
|
+
<span class="node-dot live"></span>
|
|
333
|
+
<div class="node-meta">
|
|
334
|
+
<span class="node-title">Hanzo Spark (GB10 CUDA)</span>
|
|
335
|
+
<span class="node-addr">10.0.0.19:1235</span>
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
<div class="node-item" id="node-evo">
|
|
339
|
+
<span class="node-dot live"></span>
|
|
340
|
+
<div class="node-meta">
|
|
341
|
+
<span class="node-title">Hanzo Evo (Strix Halo ROCm)</span>
|
|
342
|
+
<span class="node-addr">10.0.0.21:1234</span>
|
|
343
|
+
</div>
|
|
344
|
+
</div>
|
|
345
|
+
<div class="node-item" id="node-desktop">
|
|
346
|
+
<span class="node-dot"></span>
|
|
347
|
+
<div class="node-meta">
|
|
348
|
+
<span class="node-title">Hanzo Desktop</span>
|
|
349
|
+
<span class="node-addr">localhost:11435</span>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
</details>
|
|
355
|
+
|
|
356
|
+
<!-- Bridges -->
|
|
357
|
+
<details class="sec" id="sec-bridges">
|
|
358
|
+
<summary>
|
|
359
|
+
<span>Bridges</span>
|
|
360
|
+
<button type="button" class="pin-btn" data-pin="bridges" aria-pressed="false" title="Pin to chat view" aria-label="Pin Bridges to chat view"></button>
|
|
361
|
+
</summary>
|
|
362
|
+
<div class="pane-header">
|
|
363
|
+
<span class="pane-title">Bridge Runtime Status</span>
|
|
364
|
+
<button id="test-connection" class="pane-action-btn" type="button">Test</button>
|
|
384
365
|
</div>
|
|
385
366
|
|
|
386
|
-
<div class="bridge-
|
|
387
|
-
<div class="bridge-card
|
|
388
|
-
<
|
|
389
|
-
|
|
367
|
+
<div class="bridge-grid">
|
|
368
|
+
<div class="bridge-card">
|
|
369
|
+
<div class="bridge-card-top">
|
|
370
|
+
<span class="status-dot disconnected" id="zap-status"></span>
|
|
371
|
+
<strong class="bridge-title">ZAP Router</strong>
|
|
372
|
+
</div>
|
|
373
|
+
<span class="bridge-detail" id="zap-detail">Checking…</span>
|
|
390
374
|
</div>
|
|
391
|
-
<span class="bridge-detail" id="cdp-detail">Checking…</span>
|
|
392
|
-
</div>
|
|
393
375
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
376
|
+
<div class="bridge-card">
|
|
377
|
+
<div class="bridge-card-top">
|
|
378
|
+
<span class="status-dot disconnected" id="cdp-status"></span>
|
|
379
|
+
<strong class="bridge-title">CDP Bridge</strong>
|
|
380
|
+
</div>
|
|
381
|
+
<span class="bridge-detail" id="cdp-detail">Checking…</span>
|
|
398
382
|
</div>
|
|
399
|
-
<span class="bridge-detail" id="mcp-port">:9224</span>
|
|
400
|
-
</div>
|
|
401
383
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
384
|
+
<div class="bridge-card">
|
|
385
|
+
<div class="bridge-card-top">
|
|
386
|
+
<span class="status-dot disconnected" id="mcp-status"></span>
|
|
387
|
+
<strong class="bridge-title">MCP Bridge</strong>
|
|
388
|
+
</div>
|
|
389
|
+
<span class="bridge-detail" id="mcp-port">:9224</span>
|
|
406
390
|
</div>
|
|
407
|
-
<span class="bridge-detail" id="gpu-detail">Checking…</span>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
391
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
392
|
+
<div class="bridge-card">
|
|
393
|
+
<div class="bridge-card-top">
|
|
394
|
+
<span class="status-dot disconnected" id="gpu-status"></span>
|
|
395
|
+
<strong class="bridge-title">WebGPU AI</strong>
|
|
396
|
+
</div>
|
|
397
|
+
<span class="bridge-detail" id="gpu-detail">Checking…</span>
|
|
398
|
+
</div>
|
|
417
399
|
</div>
|
|
418
|
-
<span id="zap-pair-error" class="status-detail error-text"></span>
|
|
419
|
-
</div>
|
|
420
400
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
<span>Tab Filesystem (exposes DOM & resources)</span>
|
|
430
|
-
<input type="checkbox" id="tab-filesystem" checked>
|
|
431
|
-
</label>
|
|
432
|
-
<label class="toggle-row">
|
|
433
|
-
<span>WebGPU AI Acceleration</span>
|
|
434
|
-
<input type="checkbox" id="webgpu-ai" checked>
|
|
435
|
-
</label>
|
|
436
|
-
<label class="toggle-row">
|
|
437
|
-
<span>Source Maps Inspection</span>
|
|
438
|
-
<input type="checkbox" id="source-maps" checked>
|
|
439
|
-
</label>
|
|
440
|
-
</div>
|
|
441
|
-
|
|
442
|
-
<!-- Shortcut Recorder -->
|
|
443
|
-
<div class="setting-group">
|
|
444
|
-
<span class="setting-title">Inspect Modifier</span>
|
|
445
|
-
<div class="shortcut-recorder-row">
|
|
446
|
-
<span class="shortcut-label">Click element to jump to code:</span>
|
|
447
|
-
<kbd id="inspect-shortcut-display" class="kbd">Ctrl</kbd>
|
|
448
|
-
<button type="button" id="record-inspect-shortcut" class="pill-btn">Record</button>
|
|
401
|
+
<!-- ZAP Pairing Box -->
|
|
402
|
+
<div id="zap-pair" class="pair-card" hidden>
|
|
403
|
+
<label for="zap-code" class="pair-label">Pair with computer: run <code>hanzo-mcp pair</code></label>
|
|
404
|
+
<div class="pair-input-group">
|
|
405
|
+
<input type="text" id="zap-code" placeholder="ws://127.0.0.1:…/#…" autocomplete="off" spellcheck="false">
|
|
406
|
+
<button id="zap-pair-btn" class="action-submit primary" type="button">Pair</button>
|
|
407
|
+
</div>
|
|
408
|
+
<span id="zap-pair-error" class="status-detail error-text"></span>
|
|
449
409
|
</div>
|
|
450
|
-
</
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
<
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
<!-- Settings Drawer -->
|
|
474
|
-
<div id="settings-section" class="section settings-view hidden">
|
|
475
|
-
<div class="settings-top">
|
|
476
|
-
<h2>Extension Settings</h2>
|
|
477
|
-
<button id="back-btn" class="icon-btn" title="Back to Chat">
|
|
478
|
-
<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2">
|
|
479
|
-
<path d="M12 8H4M8 4l-4 4 4 4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
480
|
-
</svg>
|
|
481
|
-
</button>
|
|
482
|
-
</div>
|
|
483
|
-
|
|
484
|
-
<div class="settings-body">
|
|
485
|
-
<div class="setting-group">
|
|
486
|
-
<span class="setting-title">On-Page Assistant</span>
|
|
487
|
-
<label class="toggle-row">
|
|
488
|
-
<span>Enable on-page chat panel</span>
|
|
489
|
-
<input type="checkbox" id="overlay-enabled" checked>
|
|
490
|
-
</label>
|
|
491
|
-
</div>
|
|
492
|
-
|
|
493
|
-
<div id="overlay-side-row" class="setting-group">
|
|
494
|
-
<span class="setting-title">Dock Position</span>
|
|
495
|
-
<div class="segmented">
|
|
496
|
-
<button type="button" id="pin-left" class="segmented-btn">Left</button>
|
|
497
|
-
<button type="button" id="pin-right" class="segmented-btn" data-active="true">Right</button>
|
|
410
|
+
</details>
|
|
411
|
+
|
|
412
|
+
<!-- Agent capabilities -->
|
|
413
|
+
<details class="sec" id="sec-capabilities">
|
|
414
|
+
<summary>Capabilities</summary>
|
|
415
|
+
<div class="features-section">
|
|
416
|
+
<label class="toggle-row">
|
|
417
|
+
<span>Browser Control (agent action loop)</span>
|
|
418
|
+
<input type="checkbox" id="browser-control" checked>
|
|
419
|
+
</label>
|
|
420
|
+
<label class="toggle-row">
|
|
421
|
+
<span>Tab Filesystem (exposes DOM & resources)</span>
|
|
422
|
+
<input type="checkbox" id="tab-filesystem" checked>
|
|
423
|
+
</label>
|
|
424
|
+
<label class="toggle-row">
|
|
425
|
+
<span>WebGPU AI Acceleration</span>
|
|
426
|
+
<input type="checkbox" id="webgpu-ai" checked>
|
|
427
|
+
</label>
|
|
428
|
+
<label class="toggle-row">
|
|
429
|
+
<span>Source Maps Inspection</span>
|
|
430
|
+
<input type="checkbox" id="source-maps" checked>
|
|
431
|
+
</label>
|
|
498
432
|
</div>
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
<button type="button" class="segmented-btn width-btn" data-width="wide">Wide</button>
|
|
433
|
+
<div class="setting-group">
|
|
434
|
+
<span class="setting-title">Inspect Shortcut</span>
|
|
435
|
+
<div class="shortcut-recorder-row">
|
|
436
|
+
<kbd id="inspect-shortcut-current" class="kbd">Ctrl</kbd>
|
|
437
|
+
<button id="inspect-shortcut-record" type="button" class="pill-btn">Record</button>
|
|
438
|
+
<button id="inspect-shortcut-reset" type="button" class="pill-btn">Reset</button>
|
|
439
|
+
</div>
|
|
507
440
|
</div>
|
|
508
|
-
</
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
<
|
|
513
|
-
|
|
514
|
-
<
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
<div class="backend-status-line">
|
|
519
|
-
<span class="status-dot disconnected" id="bridge-status"></span>
|
|
520
|
-
<span class="status-detail" id="bridge-detail">Not connected</span>
|
|
441
|
+
</details>
|
|
442
|
+
|
|
443
|
+
<!-- On-page chat -->
|
|
444
|
+
<details class="sec" id="sec-onpage">
|
|
445
|
+
<summary>On-page chat</summary>
|
|
446
|
+
<div class="setting-group">
|
|
447
|
+
<label class="toggle-row">
|
|
448
|
+
<span>Enable on-page chat panel</span>
|
|
449
|
+
<input type="checkbox" id="overlay-enabled" checked>
|
|
450
|
+
</label>
|
|
521
451
|
</div>
|
|
522
|
-
</div>
|
|
523
452
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
<div class="port-input-row">
|
|
531
|
-
<label for="cdp-port-setting">CDP Port</label>
|
|
532
|
-
<input type="number" id="cdp-port-setting" value="9223" min="1024" max="65535">
|
|
453
|
+
<div id="overlay-side-row" class="setting-group">
|
|
454
|
+
<span class="setting-title">Dock Position</span>
|
|
455
|
+
<div class="segmented">
|
|
456
|
+
<button type="button" id="pin-left" class="segmented-btn">Left</button>
|
|
457
|
+
<button type="button" id="pin-right" class="segmented-btn" data-active="true">Right</button>
|
|
458
|
+
</div>
|
|
533
459
|
</div>
|
|
534
|
-
<button id="save-settings" class="action-submit primary" type="button" style="margin-top:6px;">Save Settings</button>
|
|
535
|
-
</div>
|
|
536
460
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
461
|
+
<div id="overlay-width-row" class="setting-group">
|
|
462
|
+
<span class="setting-title">Panel Width</span>
|
|
463
|
+
<div class="segmented">
|
|
464
|
+
<button type="button" class="segmented-btn width-btn" data-width="compact">Compact</button>
|
|
465
|
+
<button type="button" class="segmented-btn width-btn" data-width="default" data-active="true">Default</button>
|
|
466
|
+
<button type="button" class="segmented-btn width-btn" data-width="wide">Wide</button>
|
|
467
|
+
</div>
|
|
468
|
+
</div>
|
|
469
|
+
</details>
|
|
470
|
+
|
|
471
|
+
<!-- Connection -->
|
|
472
|
+
<details class="sec" id="sec-connection">
|
|
473
|
+
<summary>Connection</summary>
|
|
474
|
+
<div class="setting-group">
|
|
475
|
+
<span class="setting-title">Browser Backend</span>
|
|
476
|
+
<select id="browser-backend" class="form-select">
|
|
477
|
+
<option value="auto">Auto (ZAP Native / CDP)</option>
|
|
478
|
+
<option value="zap">ZAP Native Router</option>
|
|
479
|
+
<option value="cdp">CDP Direct</option>
|
|
480
|
+
<option value="mcp">MCP Port</option>
|
|
481
|
+
</select>
|
|
482
|
+
<div class="backend-status-line">
|
|
483
|
+
<span class="status-dot disconnected" id="bridge-status"></span>
|
|
484
|
+
<span class="status-detail" id="bridge-detail">Not connected</span>
|
|
485
|
+
</div>
|
|
543
486
|
</div>
|
|
544
|
-
</div>
|
|
545
487
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
<
|
|
551
|
-
<small style="display:block;color:var(--text-muted);font-size:10px;">Anonymous, never query text</small>
|
|
488
|
+
<div class="setting-group">
|
|
489
|
+
<span class="setting-title">Ports & Endpoints</span>
|
|
490
|
+
<div class="port-input-row">
|
|
491
|
+
<label for="mcp-port-setting">MCP Port</label>
|
|
492
|
+
<input type="number" id="mcp-port-setting" value="9224" min="1024" max="65535">
|
|
552
493
|
</div>
|
|
553
|
-
<
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
<div>
|
|
557
|
-
<span>Contribute to training</span>
|
|
558
|
-
<small style="display:block;color:var(--text-muted);font-size:10px;">Opt-in to share searches & answers</small>
|
|
494
|
+
<div class="port-input-row">
|
|
495
|
+
<label for="cdp-port-setting">CDP Port</label>
|
|
496
|
+
<input type="number" id="cdp-port-setting" value="9223" min="1024" max="65535">
|
|
559
497
|
</div>
|
|
560
|
-
<
|
|
561
|
-
</
|
|
562
|
-
</
|
|
498
|
+
<button id="save-settings" class="action-submit primary" type="button" style="margin-top:6px;">Save Settings</button>
|
|
499
|
+
</div>
|
|
500
|
+
</details>
|
|
501
|
+
|
|
502
|
+
<!-- Privacy -->
|
|
503
|
+
<details class="sec" id="sec-privacy">
|
|
504
|
+
<summary>Privacy & data</summary>
|
|
505
|
+
<div class="setting-group">
|
|
506
|
+
<label class="toggle-row">
|
|
507
|
+
<div>
|
|
508
|
+
<span>Usage insights</span>
|
|
509
|
+
<small style="display:block;color:var(--text-muted);font-size:10px;">Anonymous, never query text</small>
|
|
510
|
+
</div>
|
|
511
|
+
<input type="checkbox" id="insights-enabled" checked>
|
|
512
|
+
</label>
|
|
513
|
+
<label class="toggle-row">
|
|
514
|
+
<div>
|
|
515
|
+
<span>Contribute to training</span>
|
|
516
|
+
<small style="display:block;color:var(--text-muted);font-size:10px;">Opt-in to share searches & answers</small>
|
|
517
|
+
</div>
|
|
518
|
+
<input type="checkbox" id="share-training">
|
|
519
|
+
</label>
|
|
520
|
+
</div>
|
|
521
|
+
</details>
|
|
522
|
+
</div>
|
|
523
|
+
</div>
|
|
524
|
+
|
|
525
|
+
<!-- Command Palette Overlay (⌘K) -->
|
|
526
|
+
<div id="popup-cmd-palette" class="cmd-palette hidden" role="dialog" aria-label="Command palette">
|
|
527
|
+
<div class="cmd-palette-card">
|
|
528
|
+
<input id="cmd-palette-input" class="cmd-palette-input" type="text" placeholder="Type a command or search…" autocomplete="off" spellcheck="false">
|
|
529
|
+
<div id="cmd-palette-list" class="cmd-palette-list" role="listbox"></div>
|
|
563
530
|
</div>
|
|
564
531
|
</div>
|
|
565
532
|
|
|
@@ -572,7 +539,7 @@
|
|
|
572
539
|
<div class="footer-links">
|
|
573
540
|
<a href="https://hanzo.ai" target="_blank" rel="noreferrer">hanzo.ai</a>
|
|
574
541
|
<a href="https://docs.hanzo.ai" target="_blank" rel="noreferrer">Docs</a>
|
|
575
|
-
<span id="footer-version" class="version-label">v1.9.
|
|
542
|
+
<span id="footer-version" class="version-label">v1.9.73</span>
|
|
576
543
|
</div>
|
|
577
544
|
</footer>
|
|
578
545
|
</div>
|