-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
656 lines (601 loc) · 34.5 KB
/
index.html
File metadata and controls
656 lines (601 loc) · 34.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Agent Workspace</title>
<!-- Xterm.js for terminal rendering -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@5.3.0/css/xterm.css" />
<!-- Our styles -->
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="styles/tabs.css">
<link rel="stylesheet" href="styles/projects-board.css">
<!-- Favicon -->
<link rel="icon" type="image/png" href="assets/agent-workspace-logo.png?v=circle">
</head>
<body class="dependency-onboarding-booting">
<!-- Sidebar -->
<aside class="sidebar" id="worktree-sidebar">
<div class="sidebar-header">
<div class="sidebar-title-line">
<div class="sidebar-logo" aria-hidden="true"></div>
<h1 class="sidebar-title">Agent Workspace</h1>
</div>
<div class="sidebar-divider" aria-hidden="true"></div>
<div class="sidebar-worktrees-line">
<h2>Worktrees</h2>
<button id="view-presets" class="icon-button sidebar-header-presets" title="View Presets" data-ui-visibility="sidebar.viewPresets">📋</button>
<button id="sidebar-toggle" class="icon-button sidebar-toggle" title="Collapse sidebar" aria-label="Collapse sidebar" aria-controls="worktree-sidebar" aria-expanded="true"><svg class="sidebar-toggle-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 18 9 12 15 6"></polyline></svg></button>
</div>
</div>
<div class="sidebar-footer">
<button id="add-worktree" class="button-secondary" onclick="window.orchestrator.showAddWorktreeModal()" title="Add New Worktree"><span style="color: #90ee90; font-weight: 700;">+</span> Add Worktree</button>
<div class="worktree-view-mode-stack">
<div class="worktree-view-mode-label">Terminal Visibility</div>
<div class="worktree-view-mode-group" role="group" aria-label="Terminal visibility">
<button id="view-all" class="button-secondary">View All</button>
<button id="view-claude-only" class="button-secondary">Agent Only</button>
<button id="view-servers-only" class="button-secondary">Servers Only</button>
</div>
</div>
</div>
<div class="worktree-list" id="worktree-list">
<!-- Worktree items will be dynamically generated -->
</div>
</aside>
<div id="sidebar-backdrop" class="sidebar-backdrop hidden" aria-hidden="true"></div>
<!-- Main Content -->
<div class="main-container">
<!-- Header -->
<header>
<button id="commander-toggle" class="header-btn commander-btn" title="Commander (Top-Level AI)" data-ui-visibility="header.commander">
🎖️ Commander
</button>
<button id="projects-board-btn" class="header-btn header-nav-btn" title="Projects kanban board" data-ui-visibility="header.projectsBoard">
<span class="header-nav-icon">🗂</span> Projects
</button>
<button id="tasks-btn" class="header-btn header-nav-btn" title="Browse tasks (Trello)" data-ui-visibility="header.tasks">
<span class="header-nav-icon">✅</span> Tasks
</button>
<button id="ports-btn" class="header-btn header-nav-btn" title="View running services" data-ui-visibility="header.ports">
<span class="header-nav-icon">🔌</span> Ports
</button>
<div class="header-actions">
<button id="greenfield-btn" class="header-btn" title="Create new project" data-ui-visibility="header.newProject">
➕ New Project
</button>
<button id="conversations-btn" class="header-btn" title="Browse conversations" data-ui-visibility="header.history">
💬 History
</button>
<button id="prs-btn" class="header-btn" title="Browse pull requests" data-ui-visibility="header.prs">
🔀 PRs
</button>
<!-- FLAGGED: Review Inbox hidden to save header space -->
<button id="queue-btn" class="header-btn" title="Review inbox (PRs + queue)" data-ui-visibility="header.queue" style="display:none">
📥 Review Inbox
</button>
<button id="project-chats-btn" class="header-btn" title="Simple projects + chats shell (Alt+P)" data-ui-visibility="header.chats" hidden aria-hidden="true" style="display:none">
🧵 Chats
</button>
<button id="command-palette-btn" class="header-btn" title="Command palette (Ctrl+K / Cmd+K)" data-ui-visibility="header.commands">
⌘ Commands
</button>
<button id="review-route-btn" class="header-btn" title="Review Route (Tier 3+ unreviewed batch review)" data-ui-visibility="header.reviewRoute">
🛣 Review Route
</button>
<button id="activity-btn" class="header-btn" title="Activity feed (agents, PRs, tests)" data-ui-visibility="header.activity">
📰 Activity
</button>
<button id="diff-viewer-open" class="header-btn" title="Open Advanced Diff Viewer for the active PR/branch (falls back to home)" data-ui-visibility="header.diff">
🔍 Diff
</button>
<div class="workflow-toggle" role="group" aria-label="Workflow mode" data-ui-visibility="header.workflowMode">
<button id="workflow-focus" class="header-btn workflow-btn" title="Focus (Tier 1–2)">🎯 Focus</button>
<button id="workflow-all" class="header-btn workflow-btn" title="All tiers (show everything)">🧩 All</button>
<button id="workflow-review" class="header-btn workflow-btn" title="Review (Queue)">🧾 Review</button>
<button id="workflow-background" class="header-btn workflow-btn" title="Background (Tier 3–4)" data-ui-visibility="header.workflowBackground">🌙 Background</button>
</div>
<div class="workflow-toggle tier-toggle" role="group" aria-label="Tier filter" data-ui-visibility="header.tierFilters">
<button id="tier-filter-all" class="header-btn workflow-btn" title="Show all tiers">All</button>
<button id="tier-filter-1" class="header-btn workflow-btn" title="Tier 1 only">T1</button>
<button id="tier-filter-2" class="header-btn workflow-btn" title="Tier 2 only">T2</button>
<button id="tier-filter-3" class="header-btn workflow-btn" title="Tier 3 only">T3</button>
<button id="tier-filter-4" class="header-btn workflow-btn" title="Tier 4 only">T4</button>
<button id="tier-filter-none" class="header-btn workflow-btn" title="No tier set">None</button>
</div>
<button id="workflow-focus-tier2" class="header-btn" title="Focus: hide Tier 2 while Tier 1 is busy" data-ui-visibility="header.focusTier2">T2 Auto</button>
<button id="workflow-focus-autoswap" class="header-btn" title="Focus: auto-swap to Tier 2 while Tier 1 is busy" data-ui-visibility="header.focusSwap">Swap T2</button>
<div id="process-banner-holder" data-ui-visibility="processBanner"><div id="process-banner" class="process-banner" title="WIP and queue status (click to open Queue)"></div></div>
<button id="recommendations-toggle" class="icon-button" title="System Recommendations" onclick="window.recommendationsUI && window.recommendationsUI.toggle()" data-ui-visibility="header.recommendations">
<span class="notification-badge recommendations-badge" id="recommendations-badge" style="display:none">0</span>
🔧
</button>
<button id="notification-toggle" class="icon-button" title="Notifications" data-ui-visibility="header.notifications">
<span class="notification-badge" id="notification-badge">0</span>
🔔
</button>
<button id="settings-toggle" class="icon-button" title="Settings" data-ui-visibility="header.settings">
⚙️
</button>
</div>
</header>
<!-- Terminal Grid -->
<main id="terminal-grid" class="terminal-grid">
<div class="loading-message" id="loading-message">
<div class="spinner"></div>
<p>Initializing terminals...</p>
</div>
</main>
</div>
<!-- View Presets Modal -->
<div id="presets-modal" class="modal hidden">
<div class="modal-content">
<h3>View Presets</h3>
<div class="preset-list">
<button class="preset-btn" data-preset="all">All Terminals (2×4)</button>
<button class="preset-btn" data-preset="claude-all">All Agents</button>
<button class="preset-btn" data-preset="servers-all">All Servers</button>
<button class="preset-btn" data-preset="work-1-5">Work 1 + 5</button>
<button class="preset-btn" data-preset="custom-claude">Agents 2+5+6+8+1+7</button>
</div>
<div class="modal-actions">
<button id="close-presets" class="button-secondary">Close</button>
</div>
</div>
</div>
<!-- Agent Startup Options Modal (Dynamic) -->
<div id="agent-startup-modal" class="modal hidden">
<div class="modal-content agent-startup-dynamic">
<h3>Start AI Agent - <span id="startup-session-id"></span></h3>
<!-- Agent Selection -->
<div class="agent-selector">
<label>Select AI Agent:</label>
<div class="agent-options" id="agent-options">
<!-- Dynamically populated -->
</div>
</div>
<!-- Mode Selection -->
<div class="mode-selector" id="mode-selector">
<label>Mode:</label>
<div class="mode-buttons" id="mode-buttons">
<!-- Dynamically populated -->
</div>
</div>
<!-- Flag Configuration -->
<div class="flag-configuration" id="flag-configuration">
<!-- Dynamically populated based on selected agent -->
</div>
<!-- Quick Presets -->
<div class="quick-presets">
<button class="preset-btn" id="preset-default" data-preset="default">
🛡️ Default (Safe)
</button>
<button class="preset-btn" id="preset-powerful" data-preset="powerful">
🚀 Most Powerful
</button>
</div>
<div class="modal-actions">
<button id="start-agent" class="button-primary">Start</button>
<button id="cancel-agent-startup" class="button-secondary">Cancel</button>
</div>
</div>
</div>
<!-- Settings Panel -->
<div id="settings-panel" class="settings-panel hidden">
<div class="panel-header">
<div class="panel-header-copy">
<h3>Settings</h3>
<span id="settings-app-version" class="app-version-chip app-version-chip-subtle" data-app-version-slot hidden></span>
</div>
<button id="close-settings" class="icon-button">✕</button>
</div>
<div class="settings-content">
<div class="settings-toolbar">
<input id="settings-search" type="search" placeholder="Search settings…" autocomplete="off" />
</div>
<div class="settings-main" id="settings-main">
<div class="settings-sections-container">
<div class="setting-section settings-glossary" data-section-id="glossary" data-section-title="Glossary">
<h4>Glossary</h4>
<p class="setting-description">New here? Skim this first for a quick mental model of Agent Workspace.</p>
<details>
<summary><strong>Workspace</strong></summary>
<div class="setting-description">A saved configuration that groups worktrees/terminals from one or
more projects [GitHub repos]. Opening a workspace starts its sessions.</div>
</details>
<details>
<summary><strong>Worktree</strong></summary>
<div class="setting-description">A git worktree linked to a specific GitHub repo/project. One
worktree has an <em>Agent</em> terminal and a paired <em>Server</em> terminal; those terminals
may be hidden in the current view, but they still belong to that worktree.</div>
</details>
<details>
<summary><strong>Terminal / Session</strong></summary>
<div class="setting-description">A running terminal in Agent Workspace where you can use a CLI
agent such as Claude Code, Codex, or OpenCode.</div>
</details>
<details>
<summary><strong>Agent vs Server</strong></summary>
<div class="setting-description"><strong>Agent</strong> is the terminal where you run a CLI
agent such as Claude Code, Codex, OpenCode, or another tool, with extra controls at the
top. <strong>Server</strong> is the paired terminal for your dev server, game/app, or any
other CLI commands you need. They can be shown or hidden independently, but they still
belong to the same worktree and generally live/die together.</div>
</details>
</div>
<div class="setting-section" data-section-id="general" data-section-title="General Settings">
<h4>General Settings</h4>
<div class="setting-group">
<label>
<input type="checkbox" id="auto-scroll" checked />
Auto-scroll Terminals
</label>
</div>
</div>
<div class="setting-section" data-section-id="branch-labels" data-section-title="Branch Labels">
<h4>Branch Labels</h4>
<div class="setting-group">
<label>
<input type="checkbox" id="branches-hide-prefixes" />
Hide branch prefixes (e.g. <code>feature/</code>, <code>fix/</code>)
</label>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="branches-colorize" />
Colorize branch labels by type
</label>
</div>
</div>
<div id="desktop-settings-section" class="setting-section hidden" data-section-id="desktop"
data-section-title="Desktop App">
<h4>Desktop App</h4>
<div class="setting-group">
<label>
<input type="checkbox" id="desktop-devtools-enabled" />
Enable DevTools hotkeys (F12 / Ctrl+Shift+I)
</label>
<p class="setting-description">Only applies to the Tauri desktop app.</p>
</div>
<div class="setting-group">
<button class="btn-secondary" id="desktop-open-devtools" type="button">Open DevTools</button>
<p class="setting-description">Opens the WebView inspector for this window.</p>
</div>
</div>
<div class="setting-section" data-section-id="workspace" data-section-title="Workspace">
<h4>Workspace</h4>
<div class="setting-group">
<button id="rename-workspace-btn" class="header-btn" style="width:auto">Rename current workspace</button>
</div>
</div>
<div class="setting-section" data-section-id="review-console" data-section-title="Review Console">
<h4>Review Console</h4>
<div class="setting-group">
<label>
Default preset:
<select id="review-console-preset">
<option value="review">Review (diff-dominant)</option>
<option value="throughput">Throughput (batch review)</option>
<option value="default">Default</option>
<option value="deep">Deep</option>
<option value="terminals">Terminals</option>
<option value="code">Code</option>
</select>
</label>
<p class="setting-description">Controls the initial layout preset when opening the Review Console.
</p>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="review-console-fullscreen" />
Open fullscreen by default
</label>
<p class="setting-description">Recommended: fullscreen. Docked mode is best for quick lookups.</p>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="review-console-diff-embed" />
Embed diff by default
</label>
<p class="setting-description">If disabled, you’ll need to click “Embed” inside the Diff panel.</p>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="review-console-show-agent" />
Show agent terminals
</label>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="review-console-show-server" />
Show server terminals
</label>
<p class="setting-description">When enabled, Review Console includes the paired server tile next to
the agent tile (when available).</p>
</div>
</div>
<div class="setting-section" data-section-id="diagnostics" data-section-title="Diagnostics">
<h4>Diagnostics</h4>
<p class="setting-description diagnostics-intro">Run a read-only environment scan for tooling, auth, and setup readiness. This section only analyzes and suggests next steps. It does not make changes for you.</p>
<div class="setting-group diagnostics-toolbar-row">
<button id="diagnostics-refresh" class="template-btn secondary" type="button">Run diagnostic scan</button>
<span id="diagnostics-status" class="diagnostics-status" aria-live="polite"></span>
</div>
<div class="setting-group">
<div id="diagnostics-summary" class="diagnostics-summary" aria-live="polite">
<div class="diagnostics-empty-state">Run a diagnostic scan to inspect your environment.</div>
</div>
</div>
<div class="setting-group">
<div id="diagnostics-guidance" class="diagnostics-guidance"></div>
</div>
<div class="setting-group">
<div id="diagnostics-details" class="diagnostics-details"></div>
</div>
</div>
<div class="setting-section" data-section-id="trello-integration" data-section-title="Trello Integration">
<h4>Trello Integration</h4>
<div class="setting-group">
<div id="trello-status" style="margin-bottom: 8px;"></div>
</div>
<div class="setting-group">
<label>
API Key:
<input id="trello-api-key" type="password" placeholder="Your Trello API key" style="width: 300px;" autocomplete="off" />
</label>
<p class="setting-description">Get your key at <a class="settings-help-link" href="https://trello.com/power-ups/admin" target="_blank" rel="noopener">trello.com/power-ups/admin</a></p>
</div>
<div class="setting-group">
<label>
Token:
<input id="trello-token" type="password" placeholder="Your Trello token" style="width: 300px;" autocomplete="off" />
</label>
<p class="setting-description">Generate a token from the API key page above.</p>
</div>
<div class="setting-group">
<button class="btn-primary" type="button" id="trello-save-creds">Save & Test</button>
<button class="btn-secondary" type="button" id="trello-save-only" style="margin-left: 6px;">Save Only</button>
<span id="trello-save-status" style="margin-left: 8px;"></span>
</div>
<p class="setting-description" style="margin-top: 4px; opacity: 0.7;">Credentials are saved locally to <code>~/.trello-credentials</code> (file permissions 600). They are never sent to any external service except the Trello API.</p>
</div>
<!-- Terminal Settings -->
<div class="setting-section" data-section-id="terminal-settings" data-section-title="Terminal Settings">
<h4>Terminal Settings</h4>
<div class="setting-group">
<label>
<input type="checkbox" id="global-skip-permissions" />
<strong>Global: Skip Permissions</strong>
<small>Apply --dangerously-skip-permissions to all new Claude sessions</small>
</label>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="global-auto-start" />
<strong>Auto-Start Claude Sessions</strong>
<small>Automatically start Claude when sessions are ready</small>
</label>
</div>
<div class="setting-group" id="auto-start-options" style="margin-left: 20px; display: none;">
<label>
<strong>Default Mode:</strong>
<select id="global-auto-start-mode">
<option value="fresh">Fresh - Start new session</option>
<option value="continue">Continue - Resume conversation</option>
<option value="resume">Resume - Restore interrupted session</option>
</select>
</label>
<label style="margin-top: 10px;">
<strong>Start Delay (ms):</strong>
<input type="number" id="global-auto-start-delay" value="500" min="0" max="5000"
style="width: 100px;" />
</label>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="session-recovery-enabled" />
<strong>Session Recovery</strong>
<small>Track session state for recovery after crashes</small>
</label>
</div>
<div class="setting-group" id="session-recovery-options" style="margin-left: 20px; display: none;">
<label>
<strong>Recovery Mode:</strong>
<select id="session-recovery-mode">
<option value="ask">Ask - Show recovery dialog</option>
<option value="auto">Auto - Automatically recover all</option>
<option value="skip">Skip - Never show recovery dialog</option>
</select>
</label>
<label style="margin-top: 10px;">
<input type="checkbox" id="recovery-resume-cwd" checked />
<span>Restore last working directory</span>
</label>
<label>
<input type="checkbox" id="recovery-resume-conversation" checked />
<span>Resume last conversation (if available)</span>
</label>
<label>
<input type="checkbox" id="recovery-skip-permissions" checked />
<span>Use YOLO mode (--dangerously-skip-permissions)</span>
</label>
<div style="display:flex; gap:8px; align-items:flex-end; flex-wrap: wrap; margin-top: 10px;">
<label>
<strong>Prune recoverables older than (days):</strong>
<input type="number" id="recovery-prune-days" value="7" min="1" max="365" style="width: 100px;" />
</label>
<button class="btn-secondary" type="button" id="recovery-prune-old">Prune old recoverables</button>
</div>
<p id="recovery-prune-status" class="setting-description" style="margin-top:8px;">Current workspace: (none)</p>
</div>
<div class="setting-group per-terminal-settings" id="per-terminal-settings">
<h5>Per-Terminal Overrides</h5>
<p class="setting-description">Override global settings for specific terminals (requires terminal
restart)</p>
<!-- Per-terminal settings will be populated by JavaScript -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Dependency Setup Wizard (Onboarding) -->
<div id="dependency-setup-modal" class="onboarding-overlay hidden" role="dialog" aria-modal="true"
aria-labelledby="dependency-setup-title">
<div class="onboarding-bg-glow"></div>
<div class="onboarding-bg-glow onboarding-bg-glow-2"></div>
<div class="onboarding-container">
<div class="onboarding-header">
<div class="onboarding-heading-row">
<h2 id="dependency-setup-title" class="onboarding-title">Agent Workspace Setup</h2>
<span id="onboarding-app-version" class="app-version-chip app-version-chip-subtle" data-app-version-slot hidden></span>
</div>
<p id="dependency-setup-summary" class="onboarding-summary-text"></p>
</div>
<div id="dependency-setup-list" class="onboarding-content-area"></div>
<!-- Close button for when it's allowed to close -->
<button id="dependency-setup-close" class="onboarding-close-btn hidden" type="button"
aria-label="Close setup">✕</button>
</div>
</div>
<!-- Notifications Panel -->
<div id="recommendations-panel" class="notifications-panel hidden" style="right: 140px;">
<div class="panel-header">
<h3>🔧 Recommendations</h3>
<div class="panel-actions">
<button onclick="window.recommendationsUI && window.recommendationsUI.dismissAll()" class="icon-button" title="Dismiss all">✕</button>
</div>
</div>
<div id="recommendations-list" class="notifications-list">
<div class="notification-empty">No recommendations</div>
</div>
</div>
<div id="notifications-panel" class="notifications-panel hidden">
<div class="panel-header">
<h3>Notifications</h3>
<div class="panel-actions">
<button id="notifications-mark-read" class="icon-button" title="Mark all as read">✓</button>
<button id="notifications-clear" class="icon-button" title="Clear all">🗑</button>
<button id="close-notifications" class="icon-button" title="Close">✕</button>
</div>
</div>
<div class="notifications-content">
<div id="notification-list" class="notification-list"></div>
</div>
</div>
<!-- Scripts -->
<script src="https://cdn.socket.io/4.6.1/socket.io.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xterm@5.3.0/lib/xterm.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.8.0/lib/xterm-addon-fit.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xterm-addon-search@0.13.0/lib/xterm-addon-search.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xterm-addon-web-links@0.9.0/lib/xterm-addon-web-links.js"></script>
<!-- Our scripts -->
<script src="logger.js"></script>
<script src="plugin-host.js"></script>
<script src="quick-links.js"></script>
<script src="commander-panel.js"></script>
<script src="recommendations.js"></script>
<script src="dashboard.js"></script>
<script src="projects-board.js"></script>
<script src="workspace-switcher.js"></script>
<script src="workspace-wizard.js"></script>
<script src="greenfield-framework-modal.js"></script>
<script src="greenfield-wizard.js"></script>
<script src="workspace-tab-manager.js"></script>
<script src="voice-control.js"></script>
<script src="conversation-browser.js"></script>
<script src="activity-feed.js"></script>
<script src="/bootstrap/setup-state.js"></script>
<script src="app.js"></script>
<!-- Focus Overlay -->
<div id="focus-overlay" class="focus-overlay">
<div class="focus-backdrop" onclick="window.orchestrator.unfocusTerminal()"></div>
<div class="focused-terminal-container">
<div class="focused-terminal-header">
<div class="focused-terminal-title">
<span class="status-indicator" id="focused-status"></span>
<span id="focused-title"></span>
<span id="focused-branch"
style="color: var(--accent-primary); font-family: var(--font-mono);"></span>
</div>
<div class="focus-controls">
<button class="focus-close-btn" onclick="window.orchestrator.unfocusTerminal()"
title="Close (ESC)">✕</button>
</div>
</div>
<div class="focused-terminal-body" id="focused-terminal-body">
<!-- Terminal will be moved here when focused -->
</div>
</div>
<div class="focus-hint">Press ESC or click outside to exit focus mode</div>
</div>
<script src="tauri-compat.js"></script>
<script src="terminal.js"></script>
<script src="notifications.js"></script>
<script src="agent-modal.js"></script>
<script>
// Trailer neon cycle with fixed glow overlay
(function() {
let running = false;
let stopped = false;
let overlay = null;
function getOverlay() {
if (!overlay) {
overlay = document.createElement('div');
overlay.className = 'neon-glow-overlay';
overlay.style.opacity = '0';
document.body.appendChild(overlay);
}
return overlay;
}
function positionOverlay(el) {
const ov = getOverlay();
const rect = el.getBoundingClientRect();
const pad = 4;
ov.style.left = (rect.left - pad) + 'px';
ov.style.top = (rect.top - pad) + 'px';
ov.style.width = (rect.width + pad * 2) + 'px';
ov.style.height = (rect.height + pad * 2) + 'px';
ov.style.opacity = '1';
ov.style.transform = 'scale(1.03)';
}
function hideOverlay() {
const ov = getOverlay();
ov.style.opacity = '0';
ov.style.transform = 'scale(1)';
}
async function sleep(ms) { return new Promise(r => setTimeout(r, ms)); }
async function runCycle() {
running = true;
while (!stopped) {
const wrappers = document.querySelectorAll('.terminal-grid .terminal-wrapper, .terminal-pair .terminal-wrapper');
if (!wrappers.length) { await sleep(1000); continue; }
for (let i = 0; i < wrappers.length; i++) {
if (stopped) break;
wrappers.forEach(w => w.classList.remove('neon-active'));
wrappers[i].classList.add('neon-active');
positionOverlay(wrappers[i]);
await sleep(700);
}
wrappers.forEach(w => w.classList.remove('neon-active'));
hideOverlay();
if (!stopped) await sleep(5000);
}
running = false;
}
function startNeonCycle() {
stopped = false;
if (!running) runCycle();
}
function stopNeonCycle() {
stopped = true;
document.querySelectorAll('.terminal-wrapper.neon-active').forEach(w => w.classList.remove('neon-active'));
hideOverlay();
}
setTimeout(startNeonCycle, 2000);
window.startNeonCycle = startNeonCycle;
window.stopNeonCycle = stopNeonCycle;
})();
</script>
</body>
</html>