@hanzo/browser-extension 1.9.71 → 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/popup.html CHANGED
@@ -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,95 +54,135 @@
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 &amp; Tools</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
- <!-- Omnibox Form (Chat & Search) -->
162
- <form id="search-form" class="composer-box">
163
- <textarea
164
- id="search-input"
165
- class="composer-input"
166
- placeholder="Ask Hanzo anything, or search…"
167
- rows="3"
168
- autocomplete="off"
169
- spellcheck="false"
170
- ></textarea>
171
-
172
- <div class="composer-bottom">
173
- <div class="composer-actions">
174
- <button type="submit" id="ask-btn" class="action-submit primary" title="Ask Hanzo AI">
175
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2">
176
- <path d="M8 12V4M4 8l4-4 4 4" stroke-linecap="round" stroke-linejoin="round"/>
177
- </svg>
178
- <span>Ask AI</span>
179
- </button>
180
- <button type="button" id="search-web-btn" class="action-submit secondary" title="Search Answer Engine">
181
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2">
182
- <circle cx="7" cy="7" r="4.5"/><path d="M11 11l3.5 3.5" stroke-linecap="round"/>
183
- </svg>
184
- <span>Search</span>
185
- </button>
186
- </div>
187
- <div class="composer-shortcut">
188
- <kbd>Enter</kbd> ask · <kbd>Shift+↵</kbd> line
189
- </div>
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>
190
81
  </div>
191
- </form>
192
-
193
- <!-- Quick Action Pills -->
194
- <div class="quick-pills">
195
- <button type="button" class="quick-pill" data-prompt="Summarize this page in 3 clear bullets">
196
- ⚡ Summarize page
197
- </button>
198
- <button type="button" class="quick-pill" data-prompt="Extract the key takeaways and conclusions">
199
- 💡 Key takeaways
200
- </button>
201
- <button type="button" class="quick-pill" data-prompt="Explain this simply with examples">
202
- 📖 Explain simply
203
- </button>
204
82
  </div>
83
+ </div>
205
84
 
206
- <!-- Inline Answer Area (renders fast answers inside popup) -->
207
- <div id="inline-answer" class="inline-answer hidden">
208
- <div class="answer-card-header">
209
- <div class="answer-model">
210
- <span class="live-dot-pulse"></span>
211
- <span id="answer-header-text">Hanzo AI Response</span>
212
- </div>
213
- <div class="answer-btn-group">
214
- <button id="copy-inline-btn" class="pill-btn" type="button" title="Copy answer">
215
- <svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8">
216
- <rect x="5" y="5" width="8" height="8" rx="1.5"/>
217
- <path d="M11 5V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h2"/>
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"/>
218
107
  </svg>
219
- <span>Copy</span>
220
- </button>
221
- <button id="continue-chat-btn" class="pill-btn highlight" type="button" title="Open full chat">
222
- <span>Full Chat →</span>
223
108
  </button>
109
+ <div id="model-dropdown" class="model-dropdown hidden">
110
+ <div class="model-dropdown-group">
111
+ <span class="model-group-title">Enso &amp; 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 &amp; 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 &amp; 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 &amp; 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>
224
144
  </div>
145
+
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>
155
+
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>
225
165
  </div>
226
- <div id="inline-answer-content" class="answer-card-body"></div>
227
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>
228
172
 
229
- <!-- User Info (compact) -->
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>
183
+
184
+ <div class="settings-body">
185
+ <!-- Account -->
230
186
  <div id="user-info-section" class="user-strip hidden">
231
187
  <div class="user-strip-inner">
232
188
  <img id="user-avatar" class="avatar-sm" src="" alt="">
@@ -235,331 +191,342 @@
235
191
  </div>
236
192
  <button id="logout-btn" class="signout-link" type="button">Sign out</button>
237
193
  </div>
238
- </div>
239
194
 
240
- <!-- Tab 2: Connected Accounts & Usage -->
241
- <div id="tab-accounts" class="tab-pane hidden">
242
- <div class="pane-header">
243
- <span class="pane-title">Connected Accounts &amp; Usage</span>
244
- <button id="usage-refresh" class="pane-action-btn" type="button" title="Refresh Usage">
245
- <svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8">
246
- <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"/>
247
- </svg>
248
- <span>Refresh</span>
249
- </button>
250
- </div>
251
-
252
- <!-- ChatGPT Plus Web Account Card -->
253
- <div class="account-card" id="chatgpt-account-card">
254
- <div class="account-card-header">
255
- <div class="account-icon chatgpt-icon">
256
- <svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
257
- <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"/>
258
- </svg>
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>
259
208
  </div>
260
- <div class="account-info">
261
- <div class="account-name-row">
262
- <span class="account-name">ChatGPT Web</span>
263
- <span class="badge-pill plus" id="chatgpt-plan-badge">Plus</span>
264
- <span class="badge-pill bridge">Exposed to Dev &amp; ZAP</span>
265
- </div>
266
- <span class="account-sub" id="chatgpt-user-label">Checking session…</span>
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>
267
217
  </div>
268
- </div>
269
- <div class="account-details" id="chatgpt-details">
270
- <div class="detail-row">
271
- <span class="detail-label">Mode</span>
272
- <span class="detail-val">Temporary Chats (Zero Trace)</span>
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>
273
226
  </div>
274
- <div class="detail-row">
275
- <span class="detail-label">Inference Relay</span>
276
- <span class="detail-val live">Ready for hanzo/dev &amp; bots</span>
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>
277
235
  </div>
278
- </div>
279
- </div>
280
-
281
- <!-- Usage List (Claude & Codex via @hanzo/usage) -->
282
- <div id="usage-list" class="usage-container">
283
- <div class="loading-state">Loading usage data…</div>
284
- </div>
285
-
286
- <!-- Local Compute Nodes Card -->
287
- <div class="account-card">
288
- <div class="account-card-header">
289
- <div class="account-icon local-icon">
290
- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
291
- <rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/>
292
- <line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/>
293
- </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>
244
+ </div>
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>
294
253
  </div>
295
- <div class="account-info">
296
- <span class="account-name">Private &amp; Local Hardware</span>
297
- <span class="account-sub">Zero cloud egress · Local private models</span>
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>
298
262
  </div>
299
263
  </div>
300
- <div class="node-grid">
301
- <div class="node-item" id="node-spark">
302
- <span class="node-dot live"></span>
303
- <div class="node-meta">
304
- <span class="node-title">Hanzo Spark (GB10 CUDA)</span>
305
- <span class="node-addr">10.0.0.19:1235</span>
264
+ </details>
265
+
266
+ <!-- Accounts & usage -->
267
+ <details class="sec" id="sec-accounts">
268
+ <summary>
269
+ <span>Accounts &amp; 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 &amp; 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>
306
289
  </div>
307
- </div>
308
- <div class="node-item" id="node-evo">
309
- <span class="node-dot live"></span>
310
- <div class="node-meta">
311
- <span class="node-title">Hanzo Evo (Strix Halo ROCm)</span>
312
- <span class="node-addr">10.0.0.21:1234</span>
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 &amp; ZAP</span>
295
+ </div>
296
+ <span class="account-sub" id="chatgpt-user-label">Checking session…</span>
313
297
  </div>
314
298
  </div>
315
- <div class="node-item" id="node-desktop">
316
- <span class="node-dot"></span>
317
- <div class="node-meta">
318
- <span class="node-title">Hanzo Desktop</span>
319
- <span class="node-addr">localhost:11435</span>
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 &amp; bots</span>
320
307
  </div>
321
308
  </div>
322
309
  </div>
323
- </div>
324
- </div>
325
310
 
326
- <!-- Tab 3: Bridges & Tools View -->
327
- <div id="tab-bridges" class="tab-pane hidden">
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>
331
- </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>
332
315
 
333
- <!-- Bridges Status Grid -->
334
- <div class="bridge-grid">
335
- <div class="bridge-card">
336
- <div class="bridge-card-top">
337
- <span class="status-dot disconnected" id="zap-status"></span>
338
- <strong class="bridge-title">ZAP Router</strong>
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 &amp; Local Hardware</span>
327
+ <span class="account-sub">Zero cloud egress · Local private models</span>
328
+ </div>
329
+ </div>
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>
339
352
  </div>
340
- <span class="bridge-detail" id="zap-detail">Checking…</span>
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>
341
365
  </div>
342
366
 
343
- <div class="bridge-card">
344
- <div class="bridge-card-top">
345
- <span class="status-dot disconnected" id="cdp-status"></span>
346
- <strong class="bridge-title">CDP Bridge</strong>
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>
347
374
  </div>
348
- <span class="bridge-detail" id="cdp-detail">Checking…</span>
349
- </div>
350
375
 
351
- <div class="bridge-card">
352
- <div class="bridge-card-top">
353
- <span class="status-dot disconnected" id="mcp-status"></span>
354
- <strong class="bridge-title">MCP Bridge</strong>
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>
355
382
  </div>
356
- <span class="bridge-detail" id="mcp-port">:9224</span>
357
- </div>
358
383
 
359
- <div class="bridge-card">
360
- <div class="bridge-card-top">
361
- <span class="status-dot disconnected" id="gpu-status"></span>
362
- <strong class="bridge-title">WebGPU AI</strong>
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>
363
390
  </div>
364
- <span class="bridge-detail" id="gpu-detail">Checking…</span>
365
- </div>
366
- </div>
367
391
 
368
- <!-- ZAP Pairing Box -->
369
- <div id="zap-pair" class="pair-card" hidden>
370
- <label for="zap-code" class="pair-label">Pair with computer: run <code>hanzo-mcp pair</code></label>
371
- <div class="pair-input-group">
372
- <input type="text" id="zap-code" placeholder="ws://127.0.0.1:…/#…" autocomplete="off" spellcheck="false">
373
- <button id="zap-pair-btn" class="action-submit primary" type="button">Pair</button>
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>
374
399
  </div>
375
- <span id="zap-pair-error" class="status-detail error-text"></span>
376
- </div>
377
400
 
378
- <!-- Developer Quick Tools -->
379
- <div class="tools-section">
380
- <span class="setting-title">Developer Quick Tools</span>
381
- <div class="tools-btn-grid">
382
- <button type="button" class="tool-btn" id="tool-picker" title="Inspect element on page">
383
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
384
- <path d="M3 3l4 10 2-4 4-2L3 3z"/>
385
- </svg>
386
- <span>Pick Element</span>
387
- </button>
388
- <button type="button" class="tool-btn" id="tool-screenshot" title="Capture active tab">
389
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
390
- <rect x="2" y="3" width="12" height="10" rx="1.5"/><circle cx="8" cy="8" r="2.5"/>
391
- </svg>
392
- <span>Screenshot</span>
393
- </button>
394
- <button type="button" class="tool-btn" id="tool-pageinfo" title="Copy page metadata">
395
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
396
- <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"/>
397
- </svg>
398
- <span>Page Info</span>
399
- </button>
400
- <button type="button" class="tool-btn" id="tool-accessibility" title="Run accessibility audit">
401
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
402
- <circle cx="8" cy="4" r="2"/><path d="M4 7h8M8 7v7M5 14l3-3 3 3"/>
403
- </svg>
404
- <span>A11y Audit</span>
405
- </button>
406
- <button type="button" class="tool-btn" id="tool-performance" title="Run performance audit">
407
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
408
- <path d="M8 2v4l3 2"/><circle cx="8" cy="8" r="6"/>
409
- </svg>
410
- <span>Performance</span>
411
- </button>
412
- <button type="button" class="tool-btn" id="tool-console" title="Open JS eval prompt">
413
- <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8">
414
- <polyline points="4 6 8 10 4 14"/><line x1="10" y1="14" x2="14" y2="14"/>
415
- </svg>
416
- <span>Console</span>
417
- </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>
418
409
  </div>
419
- </div>
420
-
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>
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 &amp; 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>
449
432
  </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>
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>
498
440
  </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>
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>
507
451
  </div>
508
- </div>
509
452
 
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>
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>
521
459
  </div>
522
- </div>
523
460
 
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">
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>
533
468
  </div>
534
- <button id="save-settings" class="action-submit primary" type="button" style="margin-top:6px;">Save Settings</button>
535
- </div>
536
-
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>
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
- <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>
488
+ <div class="setting-group">
489
+ <span class="setting-title">Ports &amp; 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
- <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>
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
- <input type="checkbox" id="share-training">
561
- </label>
562
- </div>
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 &amp; 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 &amp; 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.71</span>
542
+ <span id="footer-version" class="version-label">v1.9.73</span>
576
543
  </div>
577
544
  </footer>
578
545
  </div>