@hanzo/browser-extension 1.9.72 → 1.9.74

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.
@@ -8,129 +8,45 @@
8
8
  </head>
9
9
  <body>
10
10
  <div class="container">
11
- <!-- Modern Header -->
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
- <div class="brand-meta">
22
- <span class="brand-title">Hanzo AI</span>
23
- <!-- Dynamic Model Badge Button with Dropdown -->
24
- <div class="model-picker-wrapper">
25
- <button id="model-select-btn" class="brand-badge-btn" type="button" title="Select AI Model">
26
- <span id="model-badge">Auto</span>
27
- <svg class="chevron" viewBox="0 0 16 16" width="10" height="10" fill="none" stroke="currentColor" stroke-width="2">
28
- <path d="M4 6l4 4 4-4" stroke-linecap="round" stroke-linejoin="round"/>
29
- </svg>
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 &amp; 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
- <!-- Open Side Panel -->
117
- <button id="open-panel" class="icon-btn" title="Open Side Panel">
118
- <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8">
119
- <rect x="3" y="3" width="18" height="18" rx="3"/>
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
- <!-- Open New Tab -->
124
- <button id="open-newtab-btn" class="icon-btn" title="Open in New Tab">
125
- <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8">
126
- <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>
127
- <polyline points="15 3 21 3 21 9"/>
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
- <!-- Toggle Settings -->
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.8">
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,101 @@
138
54
  </div>
139
55
  </header>
140
56
 
141
- <!-- Navigation Tabs -->
142
- <nav class="popup-nav-tabs">
143
- <button type="button" class="nav-tab-btn active" data-tab="tab-chat">Chat &amp; Search</button>
144
- <button type="button" class="nav-tab-btn" data-tab="tab-accounts">Accounts &amp; 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
- <!-- Tab 1: Chat & Search View -->
152
- <div id="tab-chat" class="tab-pane active">
153
- <!-- Active Tab Context Chip -->
154
- <div id="tab-context-chip" class="context-chip" title="Active page context included">
155
- <span class="context-dot"></span>
156
- <span class="context-tag">Page</span>
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
- <!-- Page tools: first tab, one click from opening the popup -->
162
- <div class="tools-section">
163
- <span class="setting-title">Tools</span>
164
- <div class="tools-btn-grid">
165
- <button type="button" class="tool-btn" id="tool-picker" title="Pick an element; the agent sees it and its source (browser action=inspected)">
166
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
167
- <path d="M3 3l4 10 2-4 4-2L3 3z"/>
168
- </svg>
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
- <!-- Omnibox Form (Chat & Search) -->
205
- <form id="search-form" class="composer-box">
206
- <textarea
207
- id="search-input"
208
- class="composer-input"
209
- placeholder="Ask Hanzo anything, or search…"
210
- rows="3"
211
- autocomplete="off"
212
- spellcheck="false"
213
- ></textarea>
214
-
215
- <div class="composer-bottom">
216
- <div class="composer-actions">
217
- <button type="submit" id="ask-btn" class="action-submit primary" title="Ask Hanzo AI">
218
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2">
219
- <path d="M8 12V4M4 8l4-4 4 4" stroke-linecap="round" stroke-linejoin="round"/>
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
- </button>
223
- <button type="button" id="search-web-btn" class="action-submit secondary" title="Search Answer Engine">
224
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2">
225
- <circle cx="7" cy="7" r="4.5"/><path d="M11 11l3.5 3.5" stroke-linecap="round"/>
226
- </svg>
227
- <span>Search</span>
228
108
  </button>
109
+ <div id="model-dropdown" class="model-dropdown hidden"></div>
229
110
  </div>
230
- <div class="composer-shortcut">
231
- <kbd>Enter</kbd> ask · <kbd>Shift+↵</kbd> line
232
- </div>
233
- </div>
234
- </form>
235
111
 
236
- <!-- Quick Action Pills -->
237
- <div class="quick-pills">
238
- <button type="button" class="quick-pill" data-prompt="Summarize this page in 3 clear bullets">
239
- ⚡ Summarize page
240
- </button>
241
- <button type="button" class="quick-pill" data-prompt="Extract the key takeaways and conclusions">
242
- 💡 Key takeaways
243
- </button>
244
- <button type="button" class="quick-pill" data-prompt="Explain this simply with examples">
245
- 📖 Explain simply
246
- </button>
247
- </div>
112
+ <!-- Voice / Mic Trigger (shown when SpeechRecognition is supported) -->
113
+ <button type="button" id="voice-mic-btn" class="composer-round-btn hidden" title="Voice dictation" aria-label="Voice dictation" data-listening="false">
114
+ <svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
115
+ <rect x="9" y="2" width="6" height="12" rx="3"/>
116
+ <path d="M5 10a7 7 0 0 0 14 0" stroke-linecap="round"/>
117
+ <line x1="12" y1="17" x2="12" y2="22" stroke-linecap="round"/>
118
+ </svg>
119
+ </button>
120
+ </div>
248
121
 
249
- <!-- Inline Answer Area (renders fast answers inside popup) -->
250
- <div id="inline-answer" class="inline-answer hidden">
251
- <div class="answer-card-header">
252
- <div class="answer-model">
253
- <span class="live-dot-pulse"></span>
254
- <span id="answer-header-text">Hanzo AI Response</span>
255
- </div>
256
- <div class="answer-btn-group">
257
- <button id="copy-inline-btn" class="pill-btn" type="button" title="Copy answer">
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>
122
+ <div class="composer-actions">
123
+ <button type="submit" id="ask-btn" class="composer-send-pill" title="Send (Enter)" aria-label="Send" data-busy="false">
124
+ <svg class="icon-send" viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2.2" aria-hidden="true">
125
+ <path d="M8 12V4M4.5 7.5L8 4l3.5 3.5" stroke-linecap="round" stroke-linejoin="round"/>
126
+ </svg>
127
+ <svg class="icon-stop" viewBox="0 0 16 16" width="13" height="13" fill="currentColor" aria-hidden="true">
128
+ <rect x="4" y="4" width="8" height="8" rx="1.5"/>
129
+ </svg>
130
+ </button>
268
131
  </div>
269
- <div id="inline-answer-content" class="answer-card-body"></div>
270
132
  </div>
133
+ <div class="composer-meta-row">
134
+ <span class="composer-shortcut"><kbd>↵</kbd> send · <kbd>⇧↵</kbd> line · <kbd>⌘K</kbd> commands</span>
135
+ </div>
136
+ </form>
137
+ </div>
138
+
139
+ <!-- Settings: everything else, each feature pinnable to the main view -->
140
+ <div id="settings-section" class="section settings-view hidden">
141
+ <div class="settings-top">
142
+ <h2>Settings</h2>
143
+ <button id="back-btn" class="icon-btn" type="button" title="Back to Chat" aria-label="Back to Chat">
144
+ <svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2">
145
+ <path d="M12 8H4M8 4l-4 4 4 4" stroke-linecap="round" stroke-linejoin="round"/>
146
+ </svg>
147
+ </button>
148
+ </div>
271
149
 
272
- <!-- User Info (compact) -->
150
+ <div class="settings-body">
151
+ <!-- Account -->
273
152
  <div id="user-info-section" class="user-strip hidden">
274
153
  <div class="user-strip-inner">
275
154
  <img id="user-avatar" class="avatar-sm" src="" alt="">
@@ -278,288 +157,342 @@
278
157
  </div>
279
158
  <button id="logout-btn" class="signout-link" type="button">Sign out</button>
280
159
  </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 &amp; 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
160
 
295
- <!-- ChatGPT Plus Web Account Card -->
296
- <div class="account-card" id="chatgpt-account-card">
297
- <div class="account-card-header">
298
- <div class="account-icon chatgpt-icon">
299
- <svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
300
- <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"/>
301
- </svg>
161
+ <!-- Tools: run on the open page -->
162
+ <details class="sec" id="sec-tools" open>
163
+ <summary>Tools</summary>
164
+ <p class="sec-note">Run on the open page. Pin one to keep it on the chat view.</p>
165
+ <div class="feature-list">
166
+ <div class="feature-row">
167
+ <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)">
168
+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
169
+ <path d="M3 3l4 10 2-4 4-2L3 3z"/>
170
+ </svg>
171
+ <span>Inspect</span>
172
+ </button>
173
+ <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
174
  </div>
303
- <div class="account-info">
304
- <div class="account-name-row">
305
- <span class="account-name">ChatGPT Web</span>
306
- <span class="badge-pill plus" id="chatgpt-plan-badge">Plus</span>
307
- <span class="badge-pill bridge">Exposed to Dev &amp; ZAP</span>
308
- </div>
309
- <span class="account-sub" id="chatgpt-user-label">Checking session…</span>
175
+ <div class="feature-row">
176
+ <button type="button" class="tool-btn" id="tool-screenshot" data-tool="screenshot" title="Capture active tab">
177
+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
178
+ <rect x="2" y="3" width="12" height="10" rx="1.5"/><circle cx="8" cy="8" r="2.5"/>
179
+ </svg>
180
+ <span>Screenshot</span>
181
+ </button>
182
+ <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
183
  </div>
311
- </div>
312
- <div class="account-details" id="chatgpt-details">
313
- <div class="detail-row">
314
- <span class="detail-label">Mode</span>
315
- <span class="detail-val">Temporary Chats (Zero Trace)</span>
184
+ <div class="feature-row">
185
+ <button type="button" class="tool-btn" id="tool-pageinfo" data-tool="pageinfo" title="Copy page metadata">
186
+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
187
+ <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"/>
188
+ </svg>
189
+ <span>Page Info</span>
190
+ </button>
191
+ <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
192
  </div>
317
- <div class="detail-row">
318
- <span class="detail-label">Inference Relay</span>
319
- <span class="detail-val live">Ready for hanzo/dev &amp; bots</span>
193
+ <div class="feature-row">
194
+ <button type="button" class="tool-btn" id="tool-accessibility" data-tool="a11y" title="Run accessibility audit">
195
+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
196
+ <circle cx="8" cy="4" r="2"/><path d="M4 7h8M8 7v7M5 14l3-3 3 3"/>
197
+ </svg>
198
+ <span>A11y Audit</span>
199
+ </button>
200
+ <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
201
  </div>
321
- </div>
322
- </div>
323
-
324
- <!-- Usage List (Claude & Codex via @hanzo/usage) -->
325
- <div id="usage-list" class="usage-container">
326
- <div class="loading-state">Loading usage data…</div>
327
- </div>
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>
202
+ <div class="feature-row">
203
+ <button type="button" class="tool-btn" id="tool-performance" data-tool="perf" title="Run performance audit">
204
+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
205
+ <path d="M8 2v4l3 2"/><circle cx="8" cy="8" r="6"/>
206
+ </svg>
207
+ <span>Performance</span>
208
+ </button>
209
+ <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
210
  </div>
338
- <div class="account-info">
339
- <span class="account-name">Private &amp; Local Hardware</span>
340
- <span class="account-sub">Zero cloud egress · Local private models</span>
211
+ <div class="feature-row">
212
+ <button type="button" class="tool-btn" id="tool-console" data-tool="console" title="Open JS eval prompt">
213
+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
214
+ <polyline points="4 6 8 10 4 14"/><line x1="10" y1="14" x2="14" y2="14"/>
215
+ </svg>
216
+ <span>Console</span>
217
+ </button>
218
+ <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>
219
+ </div>
220
+ <div class="feature-row">
221
+ <button type="button" class="tool-btn" id="tool-answer" data-tool="answer" title="Search with the answer engine in a new tab">
222
+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
223
+ <circle cx="7" cy="7" r="4.5"/><path d="M11 11l3.5 3.5" stroke-linecap="round"/>
224
+ </svg>
225
+ <span>Answer Engine</span>
226
+ </button>
227
+ <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
228
  </div>
342
229
  </div>
343
- <div class="node-grid">
344
- <div class="node-item" id="node-spark">
345
- <span class="node-dot live"></span>
346
- <div class="node-meta">
347
- <span class="node-title">Hanzo Spark (GB10 CUDA)</span>
348
- <span class="node-addr">10.0.0.19:1235</span>
230
+ </details>
231
+
232
+ <!-- Accounts & usage -->
233
+ <details class="sec" id="sec-accounts">
234
+ <summary>
235
+ <span>Accounts &amp; usage</span>
236
+ <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>
237
+ </summary>
238
+ <div class="pane-header">
239
+ <span class="pane-title">Connected Accounts &amp; Usage</span>
240
+ <button id="usage-refresh" class="pane-action-btn" type="button" title="Refresh Usage">
241
+ <svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8">
242
+ <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"/>
243
+ </svg>
244
+ <span>Refresh</span>
245
+ </button>
246
+ </div>
247
+
248
+ <!-- ChatGPT Plus Web Account Card -->
249
+ <div class="account-card" id="chatgpt-account-card">
250
+ <div class="account-card-header">
251
+ <div class="account-icon chatgpt-icon">
252
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
253
+ <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"/>
254
+ </svg>
349
255
  </div>
350
- </div>
351
- <div class="node-item" id="node-evo">
352
- <span class="node-dot live"></span>
353
- <div class="node-meta">
354
- <span class="node-title">Hanzo Evo (Strix Halo ROCm)</span>
355
- <span class="node-addr">10.0.0.21:1234</span>
256
+ <div class="account-info">
257
+ <div class="account-name-row">
258
+ <span class="account-name">ChatGPT Web</span>
259
+ <span class="badge-pill plus" id="chatgpt-plan-badge">Plus</span>
260
+ <span class="badge-pill bridge">Exposed to Dev &amp; ZAP</span>
261
+ </div>
262
+ <span class="account-sub" id="chatgpt-user-label">Checking session…</span>
356
263
  </div>
357
264
  </div>
358
- <div class="node-item" id="node-desktop">
359
- <span class="node-dot"></span>
360
- <div class="node-meta">
361
- <span class="node-title">Hanzo Desktop</span>
362
- <span class="node-addr">localhost:11435</span>
265
+ <div class="account-details" id="chatgpt-details">
266
+ <div class="detail-row">
267
+ <span class="detail-label">Mode</span>
268
+ <span class="detail-val">Temporary Chats (Zero Trace)</span>
269
+ </div>
270
+ <div class="detail-row">
271
+ <span class="detail-label">Inference Relay</span>
272
+ <span class="detail-val live">Ready for hanzo/dev &amp; bots</span>
363
273
  </div>
364
274
  </div>
365
275
  </div>
366
- </div>
367
- </div>
368
276
 
369
- <!-- Tab 3: Bridges View -->
370
- <div id="tab-bridges" class="tab-pane hidden">
371
- <div class="pane-header">
372
- <span class="pane-title">Bridge Runtime Status</span>
373
- <button id="test-connection" class="pane-action-btn" type="button">Test</button>
374
- </div>
277
+ <!-- Usage List (Claude & Codex via @hanzo/usage) -->
278
+ <div id="usage-list" class="usage-container">
279
+ <div class="loading-state">Loading usage data…</div>
280
+ </div>
375
281
 
376
- <!-- Bridges Status Grid -->
377
- <div class="bridge-grid">
378
- <div class="bridge-card">
379
- <div class="bridge-card-top">
380
- <span class="status-dot disconnected" id="zap-status"></span>
381
- <strong class="bridge-title">ZAP Router</strong>
282
+ <!-- Local Compute Nodes Card -->
283
+ <div class="account-card">
284
+ <div class="account-card-header">
285
+ <div class="account-icon local-icon">
286
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
287
+ <rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/>
288
+ <line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/>
289
+ </svg>
290
+ </div>
291
+ <div class="account-info">
292
+ <span class="account-name">Private &amp; Local Hardware</span>
293
+ <span class="account-sub">Zero cloud egress · Local private models</span>
294
+ </div>
382
295
  </div>
383
- <span class="bridge-detail" id="zap-detail">Checking…</span>
296
+ <div class="node-grid">
297
+ <div class="node-item" id="node-spark">
298
+ <span class="node-dot live"></span>
299
+ <div class="node-meta">
300
+ <span class="node-title">Hanzo Spark (GB10 CUDA)</span>
301
+ <span class="node-addr">10.0.0.19:1235</span>
302
+ </div>
303
+ </div>
304
+ <div class="node-item" id="node-evo">
305
+ <span class="node-dot live"></span>
306
+ <div class="node-meta">
307
+ <span class="node-title">Hanzo Evo (Strix Halo ROCm)</span>
308
+ <span class="node-addr">10.0.0.21:1234</span>
309
+ </div>
310
+ </div>
311
+ <div class="node-item" id="node-desktop">
312
+ <span class="node-dot"></span>
313
+ <div class="node-meta">
314
+ <span class="node-title">Hanzo Desktop</span>
315
+ <span class="node-addr">localhost:11435</span>
316
+ </div>
317
+ </div>
318
+ </div>
319
+ </div>
320
+ </details>
321
+
322
+ <!-- Bridges -->
323
+ <details class="sec" id="sec-bridges">
324
+ <summary>
325
+ <span>Bridges</span>
326
+ <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>
327
+ </summary>
328
+ <div class="pane-header">
329
+ <span class="pane-title">Bridge Runtime Status</span>
330
+ <button id="test-connection" class="pane-action-btn" type="button">Test</button>
384
331
  </div>
385
332
 
386
- <div class="bridge-card">
387
- <div class="bridge-card-top">
388
- <span class="status-dot disconnected" id="cdp-status"></span>
389
- <strong class="bridge-title">CDP Bridge</strong>
333
+ <div class="bridge-grid">
334
+ <div class="bridge-card">
335
+ <div class="bridge-card-top">
336
+ <span class="status-dot disconnected" id="zap-status"></span>
337
+ <strong class="bridge-title">ZAP Router</strong>
338
+ </div>
339
+ <span class="bridge-detail" id="zap-detail">Checking…</span>
390
340
  </div>
391
- <span class="bridge-detail" id="cdp-detail">Checking…</span>
392
- </div>
393
341
 
394
- <div class="bridge-card">
395
- <div class="bridge-card-top">
396
- <span class="status-dot disconnected" id="mcp-status"></span>
397
- <strong class="bridge-title">MCP Bridge</strong>
342
+ <div class="bridge-card">
343
+ <div class="bridge-card-top">
344
+ <span class="status-dot disconnected" id="cdp-status"></span>
345
+ <strong class="bridge-title">CDP Bridge</strong>
346
+ </div>
347
+ <span class="bridge-detail" id="cdp-detail">Checking…</span>
398
348
  </div>
399
- <span class="bridge-detail" id="mcp-port">:9224</span>
400
- </div>
401
349
 
402
- <div class="bridge-card">
403
- <div class="bridge-card-top">
404
- <span class="status-dot disconnected" id="gpu-status"></span>
405
- <strong class="bridge-title">WebGPU AI</strong>
350
+ <div class="bridge-card">
351
+ <div class="bridge-card-top">
352
+ <span class="status-dot disconnected" id="mcp-status"></span>
353
+ <strong class="bridge-title">MCP Bridge</strong>
354
+ </div>
355
+ <span class="bridge-detail" id="mcp-port">:9224</span>
406
356
  </div>
407
- <span class="bridge-detail" id="gpu-detail">Checking…</span>
408
- </div>
409
- </div>
410
357
 
411
- <!-- ZAP Pairing Box -->
412
- <div id="zap-pair" class="pair-card" hidden>
413
- <label for="zap-code" class="pair-label">Pair with computer: run <code>hanzo-mcp pair</code></label>
414
- <div class="pair-input-group">
415
- <input type="text" id="zap-code" placeholder="ws://127.0.0.1:…/#…" autocomplete="off" spellcheck="false">
416
- <button id="zap-pair-btn" class="action-submit primary" type="button">Pair</button>
358
+ <div class="bridge-card">
359
+ <div class="bridge-card-top">
360
+ <span class="status-dot disconnected" id="gpu-status"></span>
361
+ <strong class="bridge-title">WebGPU AI</strong>
362
+ </div>
363
+ <span class="bridge-detail" id="gpu-detail">Checking…</span>
364
+ </div>
417
365
  </div>
418
- <span id="zap-pair-error" class="status-detail error-text"></span>
419
- </div>
420
366
 
421
- <!-- Feature Capabilities -->
422
- <div class="features-section">
423
- <span class="setting-title">Agentic Capabilities</span>
424
- <label class="toggle-row">
425
- <span>Browser Control (agent action loop)</span>
426
- <input type="checkbox" id="browser-control" checked>
427
- </label>
428
- <label class="toggle-row">
429
- <span>Tab Filesystem (exposes DOM &amp; 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>
367
+ <!-- ZAP Pairing Box -->
368
+ <div id="zap-pair" class="pair-card" hidden>
369
+ <label for="zap-code" class="pair-label">Pair with computer: run <code>hanzo-mcp pair</code></label>
370
+ <div class="pair-input-group">
371
+ <input type="text" id="zap-code" placeholder="ws://127.0.0.1:…/#…" autocomplete="off" spellcheck="false">
372
+ <button id="zap-pair-btn" class="action-submit primary" type="button">Pair</button>
373
+ </div>
374
+ <span id="zap-pair-error" class="status-detail error-text"></span>
449
375
  </div>
450
- </div>
451
- </div>
452
- </div>
453
-
454
- <!-- Sign In Drawer / Section -->
455
- <div id="login-section" class="section login-view hidden">
456
- <div class="login-card">
457
- <div class="login-icon-box">
458
- <svg class="logo-lg" viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
459
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="currentColor"/>
460
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="currentColor"/>
461
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="currentColor"/>
462
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="currentColor"/>
463
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="currentColor"/>
464
- </svg>
465
- </div>
466
- <h2 class="login-heading">Sign in to Hanzo AI</h2>
467
- <p class="login-subtext">Access unified reasoning models, history, memory, and coding agents.</p>
468
- <button id="login-btn" class="btn-solid-full" type="button">Sign in</button>
469
- <button id="signup-btn-popup" class="btn-ghost-full" type="button">Create account</button>
470
- </div>
471
- </div>
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>
376
+ </details>
377
+
378
+ <!-- Agent capabilities -->
379
+ <details class="sec" id="sec-capabilities">
380
+ <summary>Capabilities</summary>
381
+ <div class="features-section">
382
+ <label class="toggle-row">
383
+ <span>Browser Control (agent action loop)</span>
384
+ <input type="checkbox" id="browser-control" checked>
385
+ </label>
386
+ <label class="toggle-row">
387
+ <span>Tab Filesystem (exposes DOM &amp; resources)</span>
388
+ <input type="checkbox" id="tab-filesystem" checked>
389
+ </label>
390
+ <label class="toggle-row">
391
+ <span>WebGPU AI Acceleration</span>
392
+ <input type="checkbox" id="webgpu-ai" checked>
393
+ </label>
394
+ <label class="toggle-row">
395
+ <span>Source Maps Inspection</span>
396
+ <input type="checkbox" id="source-maps" checked>
397
+ </label>
498
398
  </div>
499
- </div>
500
-
501
- <div id="overlay-width-row" class="setting-group">
502
- <span class="setting-title">Panel Width</span>
503
- <div class="segmented">
504
- <button type="button" class="segmented-btn width-btn" data-width="compact">Compact</button>
505
- <button type="button" class="segmented-btn width-btn" data-width="default" data-active="true">Default</button>
506
- <button type="button" class="segmented-btn width-btn" data-width="wide">Wide</button>
399
+ <div class="setting-group">
400
+ <span class="setting-title">Inspect Shortcut</span>
401
+ <div class="shortcut-recorder-row">
402
+ <kbd id="inspect-shortcut-current" class="kbd">Ctrl</kbd>
403
+ <button id="inspect-shortcut-record" type="button" class="pill-btn">Record</button>
404
+ <button id="inspect-shortcut-reset" type="button" class="pill-btn">Reset</button>
405
+ </div>
507
406
  </div>
508
- </div>
509
-
510
- <div class="setting-group">
511
- <span class="setting-title">Browser Backend</span>
512
- <select id="browser-backend" class="form-select">
513
- <option value="auto">Auto (ZAP Native / CDP)</option>
514
- <option value="zap">ZAP Native Router</option>
515
- <option value="cdp">CDP Direct</option>
516
- <option value="mcp">MCP Port</option>
517
- </select>
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>
407
+ </details>
408
+
409
+ <!-- On-page chat -->
410
+ <details class="sec" id="sec-onpage">
411
+ <summary>On-page chat</summary>
412
+ <div class="setting-group">
413
+ <label class="toggle-row">
414
+ <span>Enable on-page chat panel</span>
415
+ <input type="checkbox" id="overlay-enabled" checked>
416
+ </label>
521
417
  </div>
522
- </div>
523
418
 
524
- <div class="setting-group">
525
- <span class="setting-title">Ports &amp; Endpoints</span>
526
- <div class="port-input-row">
527
- <label for="mcp-port-setting">MCP Port</label>
528
- <input type="number" id="mcp-port-setting" value="9224" min="1024" max="65535">
529
- </div>
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">
419
+ <div id="overlay-side-row" class="setting-group">
420
+ <span class="setting-title">Dock Position</span>
421
+ <div class="segmented">
422
+ <button type="button" id="pin-left" class="segmented-btn">Left</button>
423
+ <button type="button" id="pin-right" class="segmented-btn" data-active="true">Right</button>
424
+ </div>
533
425
  </div>
534
- <button id="save-settings" class="action-submit primary" type="button" style="margin-top:6px;">Save Settings</button>
535
- </div>
536
426
 
537
- <div class="setting-group">
538
- <span class="setting-title">Inspect Shortcut</span>
539
- <div class="shortcut-recorder-row">
540
- <kbd id="inspect-shortcut-current" class="kbd">Ctrl</kbd>
541
- <button id="inspect-shortcut-record" type="button" class="pill-btn">Record</button>
542
- <button id="inspect-shortcut-reset" type="button" class="pill-btn">Reset</button>
427
+ <div id="overlay-width-row" class="setting-group">
428
+ <span class="setting-title">Panel Width</span>
429
+ <div class="segmented">
430
+ <button type="button" class="segmented-btn width-btn" data-width="compact">Compact</button>
431
+ <button type="button" class="segmented-btn width-btn" data-width="default" data-active="true">Default</button>
432
+ <button type="button" class="segmented-btn width-btn" data-width="wide">Wide</button>
433
+ </div>
434
+ </div>
435
+ </details>
436
+
437
+ <!-- Connection -->
438
+ <details class="sec" id="sec-connection">
439
+ <summary>Connection</summary>
440
+ <div class="setting-group">
441
+ <span class="setting-title">Browser Backend</span>
442
+ <select id="browser-backend" class="form-select">
443
+ <option value="auto">Auto (ZAP Native / CDP)</option>
444
+ <option value="zap">ZAP Native Router</option>
445
+ <option value="cdp">CDP Direct</option>
446
+ <option value="mcp">MCP Port</option>
447
+ </select>
448
+ <div class="backend-status-line">
449
+ <span class="status-dot disconnected" id="bridge-status"></span>
450
+ <span class="status-detail" id="bridge-detail">Not connected</span>
451
+ </div>
543
452
  </div>
544
- </div>
545
453
 
546
- <div class="setting-group">
547
- <span class="setting-title">Privacy &amp; Data</span>
548
- <label class="toggle-row">
549
- <div>
550
- <span>Usage insights</span>
551
- <small style="display:block;color:var(--text-muted);font-size:10px;">Anonymous, never query text</small>
454
+ <div class="setting-group">
455
+ <span class="setting-title">Ports &amp; Endpoints</span>
456
+ <div class="port-input-row">
457
+ <label for="mcp-port-setting">MCP Port</label>
458
+ <input type="number" id="mcp-port-setting" value="9224" min="1024" max="65535">
552
459
  </div>
553
- <input type="checkbox" id="insights-enabled" checked>
554
- </label>
555
- <label class="toggle-row">
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 &amp; answers</small>
460
+ <div class="port-input-row">
461
+ <label for="cdp-port-setting">CDP Port</label>
462
+ <input type="number" id="cdp-port-setting" value="9223" min="1024" max="65535">
559
463
  </div>
560
- <input type="checkbox" id="share-training">
561
- </label>
562
- </div>
464
+ <button id="save-settings" class="action-submit primary" type="button" style="margin-top:6px;">Save Settings</button>
465
+ </div>
466
+ </details>
467
+
468
+ <!-- Privacy -->
469
+ <details class="sec" id="sec-privacy">
470
+ <summary>Privacy &amp; data</summary>
471
+ <div class="setting-group">
472
+ <label class="toggle-row">
473
+ <div>
474
+ <span>Usage insights</span>
475
+ <small style="display:block;color:var(--text-muted);font-size:10px;">Anonymous, never query text</small>
476
+ </div>
477
+ <input type="checkbox" id="insights-enabled" checked>
478
+ </label>
479
+ <label class="toggle-row">
480
+ <div>
481
+ <span>Contribute to training</span>
482
+ <small style="display:block;color:var(--text-muted);font-size:10px;">Opt-in to share searches &amp; answers</small>
483
+ </div>
484
+ <input type="checkbox" id="share-training">
485
+ </label>
486
+ </div>
487
+ </details>
488
+ </div>
489
+ </div>
490
+
491
+ <!-- Command Palette Overlay (⌘K) -->
492
+ <div id="popup-cmd-palette" class="cmd-palette hidden" role="dialog" aria-label="Command palette">
493
+ <div class="cmd-palette-card">
494
+ <input id="cmd-palette-input" class="cmd-palette-input" type="text" placeholder="Type a command or search…" autocomplete="off" spellcheck="false">
495
+ <div id="cmd-palette-list" class="cmd-palette-list" role="listbox"></div>
563
496
  </div>
564
497
  </div>
565
498
 
@@ -572,7 +505,7 @@
572
505
  <div class="footer-links">
573
506
  <a href="https://hanzo.ai" target="_blank" rel="noreferrer">hanzo.ai</a>
574
507
  <a href="https://docs.hanzo.ai" target="_blank" rel="noreferrer">Docs</a>
575
- <span id="footer-version" class="version-label">v1.9.71</span>
508
+ <span id="footer-version" class="version-label"></span>
576
509
  </div>
577
510
  </footer>
578
511
  </div>