-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.html
More file actions
1589 lines (1496 loc) · 89.3 KB
/
Copy pathindex.html
File metadata and controls
1589 lines (1496 loc) · 89.3 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
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Eva AI Assistant</title>
<!-- Optional local config override (prevents file:// fetch issues) -->
<script src="config.local.js"></script>
<!-- Scripts -->
<script src="core/js/dialogs.js?v=5.5.12"></script>
<script src="core/js/profiles.js?v=5.5.12"></script>
<script src="core/js/prompt-budget.js?v=5.5.12"></script>
<script src="core/js/learning.js?v=5.5.12"></script>
<script src="core/js/voice-endpoint.js?v=5.5.12"></script>
<script src="core/js/request-routing.js?v=5.5.12"></script>
<script src="core/js/options.js?v=5.5.12"></script>
<script src="core/js/external.js"></script>
<script src="core/js/gpt-core.js"></script>
<script src="core/js/gl-google.js"></script>
<script src="core/js/lm-studio.js"></script>
<script src="core/js/copilot.js"></script>
<script src="core/js/cognition.js?v=5.5.12"></script>
<script src="core/js/skills.js?v=5.5.12"></script>
<script src="core/js/memory-inspector.js?v=5.5.12"></script>
<script src="core/js/browser-agent.js"></script>
<script src="core/js/camera.js"></script>
<script src="core/js/aig.js"></script>
<script src="core/js/dalle3.js"></script>
<script src="core/js/idb-store.js"></script>
<script src="core/js/sessions.js?v=5.5.12"></script>
<script src="core/js/assets.js?v=5.5.12"></script>
<script src="core/js/workspaces.js?v=5.5.12"></script>
<script src="core/js/agents.js?v=5.5.12"></script>
<script src="core/js/harness-control.js?v=5.5.12"></script>
<script src="core/js/voice.js"></script>
<script src="core/js/aws-sdk-2.1304.0.min.js"></script>
<script>
auth();
// Adjust for Mobile User Agents
mobile_txtout();
</script>
<!-- Original CSS -->
<link rel="stylesheet" type="text/css" href="core/style.css?v=5.5.12">
</head>
<body onload="OnLoad()">
<!-- Custom window title bar (frameless Electron) -->
<div id="evaTitleBar" class="eva-titlebar">
<span class="eva-titlebar-label">Eva</span>
<div class="eva-titlebar-controls">
<button class="eva-titlebar-btn" id="winMinBtn" aria-label="Minimize">–</button>
<button class="eva-titlebar-btn" id="winMaxBtn" aria-label="Maximize">□</button>
<button class="eva-titlebar-btn eva-titlebar-close" id="winCloseBtn" aria-label="Close">✕</button>
</div>
</div>
<script>
(function() {
if (typeof evaStandalone !== 'undefined' && evaStandalone.isStandalone) {
document.body.classList.add('eva-standalone');
document.getElementById('winMinBtn').addEventListener('click', function() { evaStandalone.minimize(); });
document.getElementById('winMaxBtn').addEventListener('click', function() { evaStandalone.maximize(); });
document.getElementById('winCloseBtn').addEventListener('click', function() { evaStandalone.close(); });
} else {
document.getElementById('evaTitleBar').style.display = 'none';
}
})();
</script>
<script>
// Adjust for Mobile User Agents
useragent_adjust();
</script>
<!-- Eva Theme Sidebar (shown in Eva theme only) -->
<nav id="evaSidebar" class="eva-sidebar" aria-label="Eva sidebar">
<div class="eva-sidebar-header">
<img src="core/img/thumb-125.jpeg" alt="Eva" class="eva-sidebar-avatar">
<span class="eva-sidebar-title">Eva</span>
</div>
<div class="eva-sidebar-nav">
<button id="evaNewChatBtn" class="eva-nav-item" type="button" title="New Chat">
<span class="eva-nav-icon">+</span> New Chat
</button>
<button id="evaVoiceViewBtn" class="eva-nav-item eva-nav-eva" type="button" title="Eva Voice" onclick="toggleVoiceView()">
<span class="eva-nav-icon">◉</span> Eva
</button>
<button id="evaChatsBtn" class="eva-nav-item" type="button" title="Sessions" onclick="toggleSessionPanel()">
<span class="eva-nav-icon">💬</span> Sessions
</button>
<button id="evaSkillsBtn" class="eva-nav-item" type="button" title="Skills" onclick="toggleSkillsPanel(event)">
<span class="eva-nav-icon">🧩</span> Skills
</button>
<button id="evaMemoryBtn" class="eva-nav-item" type="button" title="Memory" onclick="EvaMemoryInspector.toggle(event)">
<span class="eva-nav-icon">◈</span> Memory
</button>
<button id="evaAssetsBtn" class="eva-nav-item" type="button" title="Assets" onclick="EvaAssets.open()">
<span class="eva-nav-icon">📁</span> Assets
</button>
<button id="evaAgentsBtn" class="eva-nav-item" type="button" title="Agent Operations" onclick="EvaAgents.open()">
<span class="eva-nav-icon">▦</span> Agents
</button>
<button id="evaWorkspacesBtn" class="eva-nav-item" type="button" title="Coding workspaces" onclick="EvaWorkspaces.openWorkbench()">
<span class="eva-nav-icon">▣</span> Workspaces
</button>
<button id="evaTerminalBtn" class="eva-nav-item" type="button" title="Terminal" onclick="toggleTerminalPanel()">
<span class="eva-nav-icon">💻</span> Terminal
</button>
<button id="evaSettingsBtn" class="eva-nav-item" type="button" title="Settings">
<span class="eva-nav-icon">⚙️</span> Settings
</button>
</div>
<div class="eva-sidebar-sessions">
<div class="eva-sessions-label">Today</div>
<ul id="evaSidebarSessionList" class="eva-session-list"></ul>
<button class="eva-view-all" type="button" onclick="toggleSessionPanel()">View all</button>
</div>
<div class="eva-sidebar-footer">
<div class="eva-sidebar-voice" role="group" aria-label="Eva voice controls">
<button id="evaSidebarMicButton" class="eva-sidebar-voice-shell" type="button" title="Start Eva voice control" aria-label="Start Eva voice control" onclick="toggleCompactVoiceController()">
<span class="eva-sidebar-voice-shell-frame" aria-hidden="true"></span>
<span class="eva-sidebar-voice-shell-core" aria-hidden="true"></span>
<span class="eva-sidebar-voice-shell-scan" aria-hidden="true"></span>
</button>
<div class="eva-sidebar-voice-copy">
<span class="eva-sidebar-voice-label">EVA VOICE</span>
<span id="evaSidebarVoiceStatus" class="eva-sidebar-voice-status" aria-live="polite">STANDBY</span>
</div>
<button id="evaSidebarVoiceViewButton" class="eva-sidebar-voice-expand" type="button" title="Open Eva Voice" aria-label="Open Eva Voice" onclick="toggleVoiceView()">
<span aria-hidden="true">↗</span>
</button>
</div>
<button class="eva-sidebar-user" id="evaUserBtn" type="button" title="Switch user profile">
<span class="eva-user-icon">👤</span>
<span class="eva-user-name" id="evaActiveProfileName">appatalks</span>
<span class="eva-user-arrow">›</span>
</button>
</div>
</nav>
<button id="agentsMobileBtn" class="agents-mobile-btn" type="button" title="Agent Operations" aria-label="Open Agent Operations" onclick="EvaAgents.open()">▦</button>
<!-- LCARS Left Sidebar (shown in LCARS theme) -->
<nav id="lcarsSidebar" aria-label="LCARS sidebar">
<div class="lcars-rail" aria-hidden="true"></div>
<!-- Decorative LCARS chips -->
<div class="lcars-chip" id="lcarsChipTop"></div>
<div class="lcars-chip peach" id="lcarsChipPeach">
<button id="sidebarSettingsBtn" type="button" title="Settings">Settings</button>
</div>
<div class="lcars-chip red" id="lcarsChipRed">
<button id="sidebarClearBtn" type="button" title="Clear Memory">Clear</button>
</div>
<div class="lcars-chip sand" id="lcarsChipSand">
<!-- Speak button will be moved here at runtime in LCARS -->
</div>
<div class="lcars-chip print" id="lcarsChipPrint">
<!-- Print button will be moved here at runtime in LCARS -->
</div>
<!-- Session Explorer (inside LCARS sidebar) -->
<div class="lcars-chip sessions" id="lcarsChipSessions">
<button id="sidebarSessionsBtn" type="button" title="Sessions">Sessions</button>
</div>
<div class="lcars-chip agents" id="lcarsChipAgents">
<button id="lcarsWorkspacesBtn" type="button" title="Coding workspaces" onclick="EvaWorkspaces.openWorkbench()">Workspaces</button>
</div>
<div class="lcars-chip memory" id="lcarsChipMemory">
<button id="lcarsMemoryBtn" type="button" title="Memory" onclick="EvaMemoryInspector.open()">Memory</button>
</div>
<div class="lcars-label" aria-hidden="true">Access • 49204.3</div>
</nav>
<!-- Session Explorer Panel (works in all themes) -->
<div id="sessionPanel" class="session-panel" aria-hidden="true">
<div class="session-panel-header">
<span>Sessions</span>
<button id="sessionPanelClose" aria-label="Close sessions">×</button>
</div>
<div class="session-panel-actions">
<button id="sessionNewBtn" title="New session">+ New</button>
<button id="sessionExportBtn" title="Export session">⤓ Export</button>
</div>
<div class="session-tab-controls">
<div class="session-tabs" role="tablist" aria-label="Session views">
<button id="sessionChatsTab" type="button" role="tab" aria-selected="true" aria-controls="sessionChatsView">Chats</button>
<button id="sessionActiveTab" type="button" role="tab" aria-selected="false" aria-controls="sessionActiveView" tabindex="-1">Active</button>
</div>
<button id="sessionActiveRefreshBtn" type="button" title="Refresh active sessions" aria-label="Refresh active sessions">↻</button>
</div>
<div id="sessionChatsView" class="session-tab-view" role="tabpanel" aria-labelledby="sessionChatsTab">
<ul id="sessionList" class="session-list"></ul>
</div>
<div id="sessionActiveView" class="session-tab-view" role="tabpanel" aria-labelledby="sessionActiveTab" hidden>
<ul id="activeSessionList" class="session-list active-session-list"></ul>
</div>
</div>
<!-- Skills panel (dedicated sidebar destination) -->
<div id="skillsPanel" class="skills-panel" aria-hidden="true">
<div class="session-panel-header">
<span>Skills</span>
<button id="skillsPanelClose" aria-label="Close skills">×</button>
</div>
<div class="skills-panel-body">
<p class="cog-help">Import a skill from any source. Eva normalizes ("Eva'rises") it into her own format, stores it in the database, and applies it automatically when a request matches.</p>
<div class="skills-import">
<div class="auth-field">
<label for="skillSourceType">Source</label>
<select id="skillSourceType">
<option value="paste" selected>Paste text / markdown</option>
<option value="url">Fetch from URL</option>
<option value="github">GitHub repo or SKILL.md</option>
<option value="file">Upload a file</option>
</select>
</div>
<div class="auth-field" id="skillPasteWrap">
<label for="skillPasteInput">Skill content</label>
<textarea id="skillPasteInput" rows="5" placeholder="Paste a SKILL.md, instructions, or any document describing the skill..."></textarea>
</div>
<div class="auth-field" id="skillUrlWrap" style="display:none;">
<label for="skillUrlInput">URL</label>
<input type="text" id="skillUrlInput" placeholder="https://example.com/skill.md">
</div>
<div class="auth-field" id="skillRepoWrap" style="display:none;">
<label for="skillRepoInput">GitHub reference</label>
<input type="text" id="skillRepoInput" placeholder="owner/repo, a subdir (owner/repo/skills/pdf), or a github.com tree/blob URL">
</div>
<div class="auth-field" id="skillFileWrap" style="display:none;">
<label for="skillFileInput">File (.md, .txt, .json)</label>
<input type="file" id="skillFileInput" accept=".md,.markdown,.txt,.json,text/plain">
</div>
<div class="background-actions">
<button type="button" class="auth-save" id="skillEvariseButton">Eva'rise</button>
<button type="button" class="auth-toggle" id="skillImportClearButton">Clear</button>
</div>
<div id="skillImportStatus" class="auth-note" aria-live="polite"></div>
</div>
<!-- Editable draft after Eva'rise, before save -->
<div class="skills-draft" id="skillDraft" style="display:none;">
<h4 class="settings-subhead">Review & save</h4>
<div class="auth-field">
<label for="skillDraftName">Name</label>
<input type="text" id="skillDraftName" maxlength="60">
</div>
<div class="auth-field">
<label for="skillDraftDescription">When to use (matched to your requests)</label>
<textarea id="skillDraftDescription" rows="2" maxlength="400"></textarea>
</div>
<div class="auth-field">
<label for="skillDraftInstructions">Instructions</label>
<textarea id="skillDraftInstructions" rows="6"></textarea>
</div>
<div class="auth-field">
<label for="skillDraftTools">Tools (comma separated)</label>
<input type="text" id="skillDraftTools" placeholder="browser, kusto, file.download">
</div>
<div class="auth-field">
<label for="skillDraftTags">Tags (comma separated)</label>
<input type="text" id="skillDraftTags" placeholder="pdf, export">
</div>
<div class="background-actions">
<button type="button" class="auth-save" id="skillSaveButton">Save skill</button>
<button type="button" class="auth-toggle" id="skillDraftCancelButton">Discard</button>
</div>
</div>
<h4 class="settings-subhead">My skills</h4>
<div id="skillsList" class="background-list"></div>
</div>
</div>
<div id="memoryInspectorPanel" class="memory-inspector-panel" aria-hidden="true">
<div class="session-panel-header">
<span>Memory</span>
<button id="memoryInspectorClose" aria-label="Close memory">×</button>
</div>
<div class="memory-inspector-toolbar">
<button id="memoryInspectorRefresh" class="auth-save" type="button">Refresh</button>
<span id="memoryInspectorStatus" class="auth-note" aria-live="polite"></span>
</div>
<div class="memory-inspector-body">
<section class="memory-inspector-section">
<div class="skills-column-heading"><span>ACTIVE CONTEXT</span><strong id="memoryScenarioTitle">No active scenario</strong></div>
<div id="memoryTraitsList" class="memory-inspector-list"></div>
</section>
<section class="memory-inspector-section memory-inspector-atoms">
<div class="skills-column-heading"><span>MEMORY ATOMS</span><strong>Traceable records</strong></div>
<div id="memoryAtomsList" class="memory-inspector-list"></div>
</section>
<section class="memory-inspector-section">
<div class="skills-column-heading"><span>GROWTH PROPOSALS</span><strong>Maintainer decisions</strong></div>
<div id="memoryGrowthList" class="memory-inspector-list"></div>
</section>
</div>
</div>
<!-- Assets panel (file browser for generated artifacts) -->
<div id="assetsPanel" class="assets-panel" aria-hidden="true">
<div class="session-panel-header">
<span>Assets</span>
<button id="assetsPanelClose" aria-label="Close assets">×</button>
</div>
<div class="session-panel-actions">
<button id="assetsRefreshBtn" title="Refresh" onclick="loadAssetsList()">↻ Refresh</button>
<button id="assetsPurgeBtn" title="Delete all artifacts" onclick="purgeAssets()">🗑 Clear all</button>
</div>
<ul id="assetsList" class="session-list assets-list"></ul>
</div>
<div id="workspacePanel" class="workspace-panel" aria-hidden="true" aria-label="Coding workspaces">
<div class="session-panel-header">
<span>Workspaces</span>
<button id="workspacePanelClose" aria-label="Close workspaces">×</button>
</div>
<div class="workspace-panel-actions">
<button id="workspaceAddProjectBtn" type="button">Add project</button>
<button id="workspaceOpenWorkbenchBtn" type="button" title="Open workspace monitor">Monitor</button>
<button id="workspaceRefreshBtn" type="button" aria-label="Refresh workspaces" title="Refresh workspaces">↻</button>
</div>
<div class="workspace-panel-body">
<div id="workspaceUnavailable" class="workspace-unavailable" hidden></div>
<form id="workspaceRunForm" class="workspace-run-form">
<label for="workspaceProjectSelect">Project</label>
<select id="workspaceProjectSelect" aria-label="Project for new coding run"></select>
<label for="workspaceObjective">Coding run</label>
<textarea id="workspaceObjective" rows="3" maxlength="4000" placeholder="Describe the change Eva should make"></textarea>
<label class="workspace-auto-approve" for="workspaceAutoApprove">
<input id="workspaceAutoApprove" type="checkbox">
<span>Auto approve actions</span>
</label>
<div class="workspace-run-options">
<label for="workspaceBaseRef">Base</label>
<input id="workspaceBaseRef" type="text" value="HEAD" maxlength="256" autocomplete="off">
<button id="workspaceCreateRunBtn" type="submit">Start run</button>
</div>
</form>
<div id="workspaceStatus" class="workspace-status" aria-live="polite"></div>
<section class="workspace-section" aria-labelledby="workspaceProjectsHeading">
<h2 id="workspaceProjectsHeading">Projects</h2>
<ul id="workspaceProjectList" class="workspace-list"></ul>
</section>
<section class="workspace-section" aria-labelledby="workspaceRunsHeading">
<h2 id="workspaceRunsHeading">Coding runs</h2>
<ul id="workspaceRunList" class="workspace-list"></ul>
</section>
<section id="workspaceDetail" class="workspace-detail" aria-live="polite"></section>
</div>
</div>
<!-- Terminal panel (inline copilot CLI) -->
<div id="terminalPanel" class="terminal-panel" aria-hidden="true">
<div class="session-panel-header">
<span>Terminal</span>
<span class="terminal-panel-controls">
<button id="terminalPanelExpand" type="button" title="Expand terminal" aria-label="Expand terminal">↔</button>
<button id="terminalPanelClose" aria-label="Close terminal">×</button>
</span>
</div>
<div id="terminalContainer" class="terminal-container">
<iframe id="terminalFrame" class="terminal-frame" sandbox="allow-same-origin allow-scripts allow-forms" aria-label="Terminal"></iframe>
<p class="terminal-fallback" id="terminalFallback">Terminal is available in Electron standalone mode. In browser mode, open a system terminal and run:<br><code>copilot</code></p>
</div>
</div>
<!-- Local user profile picker. Credentials and MCP configuration stay shared. -->
<div id="profilePanel" class="session-panel" aria-hidden="true">
<div class="session-panel-header">
<span>User profiles</span>
<button id="profilePanelClose" aria-label="Close user profiles">×</button>
</div>
<div class="session-panel-actions">
<button id="profileAddBtn" title="Add profile">+ Add profile</button>
</div>
<p class="cog-help">Profiles keep sessions, prompts, model choices, voice preferences, and other local UI settings separate. API credentials and MCP configuration are shared by this Eva installation.</p>
<ul id="profileList" class="session-list"></ul>
</div>
<div id="idContainer">
<section id="assetsView" class="assets-view" aria-hidden="true" aria-label="Assets library">
<header class="assets-view-header">
<div>
<div class="assets-view-kicker">GENERATED + WORKSPACE FILES</div>
<h1>Assets</h1>
</div>
<div class="assets-view-actions">
<span id="assetsViewUpdated" class="assets-view-updated">STANDBY</span>
<button id="assetsViewRefresh" class="assets-view-icon" type="button" title="Refresh assets" aria-label="Refresh assets">↻</button>
<button id="assetsViewClose" class="assets-view-icon" type="button" title="Return to chat" aria-label="Return to chat">×</button>
</div>
</header>
<div class="assets-view-toolbar" role="toolbar" aria-label="Asset filters">
<button type="button" data-asset-filter="all" aria-pressed="true">All</button>
<button type="button" data-asset-filter="workspace" aria-pressed="false">Workspaces</button>
<button type="button" data-asset-filter="generated" aria-pressed="false">Generated</button>
<span id="assetsViewCount">0 files</span>
</div>
<div class="assets-view-body">
<div id="assetsViewList" class="assets-view-list" aria-live="polite"></div>
<aside id="assetsViewDetail" class="assets-view-detail" aria-label="Selected asset"></aside>
</div>
</section>
<section id="workspaceWorkbench" class="workspace-workbench" aria-hidden="true" aria-label="Coding workspace monitor">
<header class="workspace-workbench-header">
<div>
<div class="workspace-kicker">ISOLATED CLIENT WORK</div>
<h1>Workspaces</h1>
</div>
<div class="workspace-workbench-actions">
<span id="workspaceWorkbenchStatus" class="workspace-monitor-updated" aria-live="polite"></span>
<span id="workspaceMonitorUpdated" class="workspace-monitor-updated">STANDBY</span>
<button id="workspaceAddProjectWorkbenchBtn" class="workspace-monitor-btn" type="button" title="Import a local Git project">Import workspace</button>
<button id="workspaceImportGitHubBtn" class="workspace-monitor-btn" type="button" title="Import a public GitHub repository">Import GitHub</button>
<button id="workspaceCollapseGitHubBtn" class="workspace-monitor-icon" type="button" title="Hide listed GitHub repositories" aria-label="Hide listed GitHub repositories" hidden>×</button>
<button id="workspaceMonitorRefreshBtn" class="workspace-monitor-icon" type="button" title="Refresh workspace activity" aria-label="Refresh workspace activity">↻</button>
<button id="workspaceMonitorCloseBtn" class="workspace-monitor-icon" type="button" title="Return to chat" aria-label="Return to chat">×</button>
</div>
</header>
<div id="workspaceGitHubRepositories" class="workspace-github-repositories" hidden aria-live="polite"></div>
<div class="workspace-monitor-metrics" aria-label="Workspace monitor summary">
<div><span>WORKSPACES</span><strong id="workspaceMonitorProjectCount">0</strong></div>
<div><span>ACTIVE RUNS</span><strong id="workspaceMonitorActiveRuns">0</strong></div>
<div><span>TERMINALS</span><strong id="workspaceMonitorTerminalCount">0</strong></div>
<div><span>DIRTY FILES</span><strong id="workspaceMonitorDirtyCount">0</strong></div>
</div>
<div class="workspace-workbench-body">
<nav class="workspace-monitor-nav workspace-monitor-projects" aria-label="Workspaces">
<div class="workspace-monitor-pane-header"><span>WORKSPACES</span><button id="workspaceListGitHubBtn" class="workspace-monitor-icon" type="button" title="List repositories available from your GitHub account" aria-label="List GitHub repositories">≡</button></div>
<div id="workspaceWorkbenchProjects" class="workspace-monitor-runs"></div>
</nav>
<nav class="workspace-monitor-nav" aria-label="Coding runs">
<div class="workspace-monitor-pane-header">CODING RUNS</div>
<div id="workspaceWorkbenchRuns" class="workspace-monitor-runs"></div>
</nav>
<section class="workspace-monitor-activity" aria-labelledby="workspaceMonitorActivityTitle">
<div class="workspace-monitor-pane-header">
<span id="workspaceMonitorActivityTitle">EVA ACTIVITY</span>
<span id="workspaceMonitorMode">WATCHING</span>
</div>
<ol id="workspaceMonitorFeed" class="workspace-monitor-feed" aria-live="polite"></ol>
</section>
<aside class="workspace-monitor-results" aria-labelledby="workspaceMonitorResultsTitle">
<div class="workspace-monitor-pane-header" id="workspaceMonitorResultsTitle">RUN RESULTS</div>
<div id="workspaceWorkbenchResults" class="workspace-monitor-detail-content"></div>
</aside>
<aside class="workspace-monitor-detail" aria-labelledby="workspaceMonitorDetailTitle">
<div class="workspace-monitor-pane-header" id="workspaceMonitorDetailTitle">RUN CONTEXT</div>
<div id="workspaceWorkbenchDetail" class="workspace-monitor-detail-content"></div>
</aside>
</div>
</section>
<section id="agentsView" class="agents-view" aria-hidden="true" aria-label="Agentic sessions workspace">
<header class="agents-view-header">
<div>
<div id="agentsViewKicker" class="agents-kicker">LIVE ORCHESTRATION</div>
<h1 id="agentsViewTitle">Agent Operations</h1>
</div>
<div class="agents-view-actions">
<span id="agentsUpdatedAt" class="agents-updated">OFFLINE</span>
<button id="agentsRefreshBtn" class="agents-icon-btn" type="button" title="Refresh agent status" aria-label="Refresh agent status">↻</button>
<button id="agentsCloseBtn" class="agents-icon-btn" type="button" title="Return to chat" aria-label="Return to chat">×</button>
</div>
</header>
<div class="agents-metrics" aria-label="Agent activity summary">
<div class="agents-metric"><span>ACTIVE</span><strong id="agentsActiveCount">0</strong></div>
<div class="agents-metric"><span>CAPACITY</span><strong id="agentsCapacity">0 / 4</strong></div>
<div class="agents-metric"><span>MEMORY NODES</span><strong id="agentsNodeCount">0</strong></div>
<div class="agents-metric"><span>BACKGROUND</span><strong id="agentsBackgroundState">IDLE</strong></div>
</div>
<div class="agents-session-area">
<div id="agentsGrid" class="agents-grid" aria-live="polite"></div>
<aside id="agentDetail" class="agent-detail" aria-hidden="true">
<button id="agentDetailClose" class="agents-icon-btn agent-detail-close" type="button" aria-label="Close agent session">×</button>
<div id="agentDetailContent"></div>
</aside>
</div>
<section class="agent-graph" aria-label="Memory graph topology">
<div class="agent-graph-heading">
<div>
<span class="agents-kicker">GRAPH RETRIEVAL FIELD</span>
<h2>Memory Topology</h2>
</div>
<div class="agent-graph-legend" aria-label="Graph legend">
<span><i class="legend-entity"></i>Entity</span>
<span><i class="legend-fact"></i>Fact</span>
<span><i class="legend-agent"></i>Agent</span>
<span><i class="legend-relation"></i>Focused relation</span>
<span id="agentGraphEdgeCount">0 relations</span>
</div>
</div>
<div class="agent-graph-stage">
<canvas id="agentGraphCanvas" aria-label="Animated graph of Eva memory relationships"></canvas>
<div id="agentGraphEmpty" class="agent-graph-empty">GRAPH INDEX STANDBY</div>
<div id="agentGraphTooltip" class="agent-graph-tooltip" aria-hidden="true"></div>
</div>
</section>
</section>
<div id="textToSynth">
<!-- Chat Output Area -->
<div id="txtOutput" rows="10" wrap="soft" placeholder="Output">
<!-- Eva Welcome MOTD (shown when chat is empty, Eva theme) -->
<div id="evaWelcome" class="eva-welcome">
<img src="core/img/thumb-125.jpeg" alt="Eva" class="eva-welcome-avatar">
<h2 class="eva-welcome-title">Hello! I'm <span class="eva-highlight">Eva</span></h2>
<p class="eva-welcome-subtitle">Your AI assistant. Ask me anything or choose a suggestion to get started.</p>
<div class="eva-suggestions">
<button class="eva-suggestion" onclick="evaSuggestionClick(this)" data-prompt="Explain a complex topic in simple terms">
<span class="eva-sug-icon">🧠</span>
<div><strong>Explain a complex topic</strong><br><span class="eva-sug-sub">in simple terms</span></div>
</button>
<button class="eva-suggestion" onclick="evaSuggestionClick(this)" data-prompt="Help me write code in any language">
<span class="eva-sug-icon"></></span>
<div><strong>Help me write code</strong><br><span class="eva-sug-sub">in any language</span></div>
</button>
<button class="eva-suggestion" onclick="evaSuggestionClick(this)" data-prompt="Brainstorm ideas for a project">
<span class="eva-sug-icon">💡</span>
<div><strong>Brainstorm ideas</strong><br><span class="eva-sug-sub">for a project</span></div>
</button>
<button class="eva-suggestion" onclick="evaSuggestionClick(this)" data-prompt="Review my text and improve it">
<span class="eva-sug-icon">✏️</span>
<div><strong>Review my text</strong><br><span class="eva-sug-sub">and improve it</span></div>
</button>
</div>
</div>
</div>
<div class="container">
<button class="speakSend" aria-label="Speak the text"
onClick="speakText(); document.getElementById('audioPlayback').setAttribute('autoplay', true);"
id="speakSend" title="Speak This">
</button>
</div>
<!-- Settings Overlay -->
<div class="settings-overlay" id="settingsOverlay"></div>
<div id="evaTextPrompt" class="eva-text-prompt" role="dialog" aria-modal="true" aria-hidden="true" aria-labelledby="evaTextPromptTitle">
<form id="evaTextPromptForm" class="eva-text-prompt-panel">
<h2 id="evaTextPromptTitle">Enter a value</h2>
<input id="evaTextPromptInput" type="text" maxlength="120" autocomplete="off">
<div class="eva-text-prompt-actions">
<button id="evaTextPromptCancel" type="button">Cancel</button>
<button type="submit">Save</button>
</div>
</form>
</div>
<!-- Settings Workspace -->
<div class="settingsMenu" id="settingsMenu" role="dialog" aria-modal="true" aria-hidden="true" aria-labelledby="settingsTitle">
<div class="settings-header">
<div class="settings-brand">
<span class="settings-kicker">Eva workspace</span>
<h3 id="settingsTitle">Settings</h3>
</div>
<button class="settings-close" id="settingsClose" type="button" aria-label="Close settings">×</button>
</div>
<div class="settings-workspace">
<nav class="settings-tabs" role="tablist" aria-label="Settings sections">
<div class="settings-nav-intro">
<strong>Configuration</strong>
<span>Manage Eva without leaving your current conversation.</span>
</div>
<div class="settings-nav-group" aria-label="Essentials">
<span class="settings-nav-label">Essentials</span>
<button class="settings-tab active" data-stab="general" role="tab" aria-selected="true"><strong>General</strong><small>Theme, voice and data</small></button>
<button class="settings-tab" data-stab="models" role="tab" aria-selected="false"><strong>Models</strong><small>Providers and reasoning</small></button>
<button class="settings-tab" data-stab="prompts" role="tab" aria-selected="false"><strong>Personality</strong><small>Behavior and review prompt</small></button>
</div>
<div class="settings-nav-group" aria-label="Operations">
<span class="settings-nav-label">Operations</span>
<button class="settings-tab" data-stab="goals" role="tab" aria-selected="false"><strong>Goals</strong><small>Persistent intentions</small></button>
<button class="settings-tab" data-stab="background" role="tab" aria-selected="false"><strong>Background jobs</strong><small>Runtime, alerts and activity</small></button>
<button class="settings-tab" data-stab="cron" role="tab" aria-selected="false"><strong>Schedules</strong><small>Recurring tasks</small></button>
</div>
<div class="settings-nav-group" aria-label="Connections">
<span class="settings-nav-label">Connections</span>
<button class="settings-tab" data-stab="auth" role="tab" aria-selected="false"><strong>Accounts</strong><small>Keys and notifications</small></button>
<button class="settings-tab" data-stab="mcp" role="tab" aria-selected="false"><strong>Tools & memory</strong><small>MCP servers and storage</small></button>
</div>
<div class="settings-nav-group" aria-label="Privacy">
<span class="settings-nav-label">Privacy</span>
<button class="settings-tab" data-stab="learning" role="tab" aria-selected="false"><strong>Learning</strong><small>Consent and retention</small></button>
</div>
</nav>
<main class="settings-main">
<header class="settings-page-header">
<span class="settings-page-eyebrow" id="settingsPageEyebrow">Essentials</span>
<h2 id="settingsPageTitle">General</h2>
<p id="settingsPageDescription">Choose Eva's appearance, voice, data mode and memory location.</p>
</header>
<div class="settings-body">
<!-- General Tab -->
<div class="settings-panel active" data-stab="general">
<label for="selTheme">Theme:</label>
<select id="selTheme" onchange="applyTheme(this.value)">
<optgroup label="Eva">
<option value="eva">Eva</option>
<option value="eva-rose">Eva Rose</option>
<option value="eva-emerald">Eva Emerald</option>
<option value="eva-ocean">Eva Ocean</option>
<option value="eva-sunset">Eva Sunset</option>
<option value="eva-steampunk">Eva Steampunk</option>
<option value="eva-greyscale">Eva Greyscale</option>
</optgroup>
<option value="legacy">Legacy</option>
<option value="lcars">LCARS</option>
</select>
<label for="selEngine">TTS Engine:</label>
<select id="selEngine" onchange="ChangeLang(this)">
<option value="standard">Standard</option>
<option value="neural">Neural</option>
<option value="generative">Generative</option>
<option value="openai" selected>OpenAI</option>
<option value="browser">Browser (offline)</option>
<option value="local-voices">Local Voices</option>
</select>
<label for="selVoice">Voice:</label>
<select id="selVoice" onchange="ChangeLang(this)">
<option value="Salli">English</option>
<option value="Ruth">English (gen)</option>
<option value="Seoyeon">Korean</option>
<option value="Mia">Spanish</option>
<option value="Tatyana">Ukrainian</option>
</select>
<label for="autoSpeak">Auto Speak:</label>
<input type="checkbox" id="autoSpeak">
<label for="liveTranslationTarget">Live translation output:</label>
<select id="liveTranslationTarget">
<option value="en">English</option>
<option value="ko">Korean</option>
<option value="es">Spanish</option>
<option value="uk">Ukrainian</option>
</select>
<label for="liveTranslationModel">Live translation model:</label>
<select id="liveTranslationModel">
<option value="aig">Use Eva backend</option>
<option value="openai:gpt-4.1-nano">GPT-4.1 Nano (fast, OpenAI key)</option>
<option value="lmstudio">LM Studio (configured model)</option>
</select>
<div class="auth-note" style="margin:4px 0 10px;font-size:11px;opacity:0.75">
Live Translation uses native browser speech for speed. Normal Voice View replies keep the selected voice profile.
</div>
<label for="audioInputDevice">Microphone:</label>
<select id="audioInputDevice">
<option value="">System default</option>
</select>
<label for="audioOutputDevice">Speakers:</label>
<select id="audioOutputDevice">
<option value="">System default</option>
</select>
<div class="background-actions" style="margin:6px 0 2px">
<button type="button" class="auth-toggle" id="refreshAudioDevicesButton">Refresh devices</button>
</div>
<div class="auth-note" id="audioDeviceStatus" aria-live="polite" style="margin:4px 0 10px"></div>
<div class="auth-note" style="margin:4px 0 10px;font-size:11px;opacity:0.75">
Voice View uses the selected microphone. Browser wake-word listening and browser TTS follow the system default device.
</div>
<label for="localVoicesProfile">Voice model:</label>
<select id="localVoicesProfile">
<option value="bundled:eva-english">Eva English</option>
</select>
<label for="localVoicesLanguage">Local speech language:</label>
<select id="localVoicesLanguage">
<option value="auto">Automatic</option>
<option value="en">English</option>
<option value="ko">Korean</option>
</select>
<label for="voiceEndpointDelay">End-of-speech pause:</label>
<select id="voiceEndpointDelay">
<option value="1400">Short</option>
<option value="2200" selected>Balanced</option>
<option value="3200">Long</option>
</select>
<div class="auth-note" style="margin:4px 0 0;font-size:11px;opacity:0.75">
Automatic switches between the bundled English and Korean Eva profiles. Imported recordings are unclassified until language metadata is supported.
</div>
<div class="background-actions" id="localVoicesProfileControls" style="margin:6px 0 2px">
<button type="button" class="auth-toggle" id="localVoicesImportButton">Add voice</button>
</div>
<div class="auth-note" id="localVoicesBridgeStatus" aria-live="polite" style="margin:4px 0 10px"></div>
<label for="cameraPresence">Camera presence (auto-wake):</label>
<input type="checkbox" id="cameraPresence">
<div class="auth-note" id="cameraPresenceNote" style="margin:4px 0 0;font-size:11px;opacity:0.75">
Eva watches the webcam locally and wakes when she sees you. Frames stay on this machine unless you ask her to look.
</div>
<label for="cameraVisionProvider">Vision model (when Eva looks):</label>
<select id="cameraVisionProvider">
<option value="github">GitHub-hosted gpt-4o (PAT)</option>
<option value="openai">OpenAI direct gpt-4o (key)</option>
<option value="copilot">Copilot / Claude (bridge)</option>
</select>
<div class="auth-note" id="cameraVisionNote" style="margin:4px 0 0;font-size:11px;opacity:0.75">
Which backend describes what Eva sees. The others are automatic fallbacks if the chosen one is unavailable.
</div>
<hr style="margin:14px 0;border:none;border-top:1px solid rgba(127,127,127,0.25)">
<label for="selDataMode">Data retrieval mode:</label>
<select id="selDataMode" onchange="switchDataMode(this.value)">
<option value="cloud">Cloud (Copilot CLI + premium models)</option>
<option value="local">Local (LM Studio + MCP tools, no cloud AI)</option>
</select>
<div id="dataModeStatus" style="margin:4px 0;font-size:11px;opacity:0.7"></div>
<label for="selMemoryBackend" style="margin-top:10px">Memory backend:</label>
<select id="selMemoryBackend" onchange="switchMemoryBackend(this.value)">
<option value="sqlite">Local (SQLite)</option>
<option value="kusto">Cloud (Azure Data Explorer / Kusto)</option>
</select>
<div class="auth-note" id="memoryBackendNote" style="margin:4px 0 0;font-size:11px;opacity:0.75">
Local (SQLite): zero setup, all data on this machine, works offline.<br>
Cloud (Kusto): syncs across devices, richer queries, requires Azure Data Explorer cluster.
</div>
<div id="memoryBackendGeneralStatus" style="margin:4px 0;font-size:11px;opacity:0.7"></div>
<hr style="margin:14px 0;border:none;border-top:1px solid rgba(127,127,127,0.25)">
<label for="verboseDiagnostics">Verbose diagnostics:</label>
<input type="checkbox" id="verboseDiagnostics">
<div class="auth-note" style="margin:4px 0 10px;font-size:11px;opacity:0.75">
Adds local route, provider, MCP source/count, permission, and timing events to diagnostics. Prompts, responses, commands, credentials, and configuration values are excluded.
</div>
<hr style="margin:14px 0;border:none;border-top:1px solid rgba(127,127,127,0.25)">
<div class="auth-note" style="margin:0">
<strong>About</strong><br>
Eva AI Assistant <span id="evaAppVersion">v5.5.12</span><br>
<span>Active goals: <span id="evaActiveGoalsCount">0</span></span><br>
<span id="evaStandaloneVersion" style="display:none"></span>
</div>
<button type="button" class="auth-toggle" id="doctorButton" style="margin-top:8px;width:100%;text-align:center" onclick="runDoctor()">Run diagnostics</button>
<div id="doctorReport" class="mcp-status" aria-live="polite" style="margin-top:8px;display:none;white-space:pre-wrap;font-family:monospace;font-size:11px;max-height:300px;overflow-y:auto"></div>
</div>
<!-- Models Tab -->
<div class="settings-panel" data-stab="models">
<label for="selModel">Model:</label>
<select id="selModel" onchange="updateButton(); onModelSettingsChange()">
<optgroup label="OpenAI">
<option value="gpt-4o" title="gpt-4o">gpt-4o</option>
<option value="gpt-4o-mini" title="gpt-4o-mini">gpt-4o-mini</option>
<option value="o1" title="o1">o1</option>
<option value="o1-preview" title="o1-preview">o1-preview</option>
<option value="o1-mini" title="o1-mini">o1-mini</option>
<option value="o3-mini" title="o3-mini">o3-mini</option>
<option value="latest" title="OpenAI latest model alias">latest</option>
</optgroup>
<optgroup label="GitHub Copilot">
<option value="copilot-gpt-4o" title="GitHub Models GPT-4o">Copilot GPT-4o</option>
<option value="copilot-gpt-4o-mini" title="GitHub Models GPT-4o Mini">Copilot GPT-4o Mini</option>
<option value="copilot-o3-mini" title="GitHub Models o3-mini">Copilot o3-mini</option>
<option value="copilot-gpt-5.6-sol" title="GitHub Models GPT-5.6 Sol — flagship, 1M context, reasoning">Copilot GPT-5.6 Sol</option>
<option value="copilot-gpt-5.6-terra" title="GitHub Models GPT-5.6 Terra — balanced, 200K context">Copilot GPT-5.6 Terra</option>
<option value="copilot-gpt-5.6-luna" title="GitHub Models GPT-5.6 Luna — efficient, 200K context">Copilot GPT-5.6 Luna</option>
<option value="copilot-gpt-5" title="GitHub Models GPT-5 — 200K context, 100K output, reasoning">Copilot GPT-5</option>
<option value="copilot-o4-mini" title="GitHub Models o4-mini — 200K context, reasoning">Copilot o4-mini</option>
<option value="copilot-deepseek-r1" title="GitHub Models DeepSeek-R1 — 128K context, reasoning">Copilot DeepSeek-R1</option>
<option value="copilot-llama-4-maverick" title="GitHub Models Llama 4 Maverick — 1M context, agents">Copilot Llama 4 Maverick</option>
</optgroup>
<optgroup label="Copilot ACP">
<option value="copilot-acp" title="Copilot via ACP Bridge — uses your Copilot license model">Copilot (ACP)</option>
</optgroup>
<optgroup label="AIG">
<option value="aig" title="Eva AIG — Intelligent orchestration across all available models">Eva (AIG)</option>
</optgroup>
<optgroup label="Google">
<option value="gemini" title="Deprecated compatibility provider">Gemini 2.0 Flash (deprecated)</option>
</optgroup>
<optgroup label="Local">
<option value="lm-studio" title="lm-studio">lm-studio</option>
</optgroup>
<optgroup label="Image Generation">
<option value="dall-e-3" title="Image Generation">Image (gpt-image-1)</option>
</optgroup>
</select>
<div id="modelOptions" class="model-options">
<div id="opt-temperature" class="model-opt">
<label for="sldTemperature">Temperature: <span id="tempValue">0.7</span></label>
<input type="range" id="sldTemperature" min="0" max="2" step="0.1" value="0.7" oninput="document.getElementById('tempValue').textContent=this.value">
</div>
<div id="opt-maxTokens" class="model-opt">
<label for="txtMaxTokens">Max Tokens:</label>
<input type="number" id="txtMaxTokens" value="16384" min="1" max="128000">
</div>
<div id="opt-reasoningEffort" class="model-opt" style="display:none">
<label for="selReasoningEffort">Reasoning Effort:</label>
<select id="selReasoningEffort">
<option value="default">Model default</option>
<option value="none">None</option>
<option value="minimal">Minimal</option>
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high" selected>High</option>
<option value="xhigh">Extra high</option>
<option value="max">Maximum</option>
</select>
<p class="auth-note" style="margin-top:4px">Higher levels can increase response time and premium usage. Availability depends on the selected model.</p>
</div>
<div id="opt-aigBackend" class="model-opt" style="display:none">
<label for="selAIGBackend">Eva Backend Model:</label>
<select id="selAIGBackend">
<optgroup label="Claude (via ACP)">
<option value="claude-opus-4.8">Claude Opus 4.8</option>
<option value="claude-opus-4.6">Claude Opus 4.6</option>
<option value="claude-opus-4.6-1m">Claude Opus 4.6 (1M context)</option>
<option value="claude-opus-4.5">Claude Opus 4.5</option>
<option value="claude-sonnet-4.6">Claude Sonnet 4.6</option>
<option value="claude-haiku-4.5">Claude Haiku 4.5</option>
</optgroup>
<optgroup label="GPT (via ACP)">
<option value="gpt-5.6-sol">GPT-5.6 Sol</option>
<option value="gpt-5.6-terra">GPT-5.6 Terra</option>
<option value="gpt-5.6-luna" selected>GPT-5.6 Luna (Default)</option>
<option value="gpt-5.5">GPT-5.5</option>
<option value="gpt-5.3-codex">GPT-5.3 Codex</option>
</optgroup>
<optgroup label="OpenAI API (direct)">
<option value="openai:gpt-5.6-luna">GPT-5.6 Luna - Fast value</option>
<option value="openai:gpt-5.6-terra">GPT-5.6 Terra - Balanced intelligence</option>
<option value="openai:gpt-5.6-sol">GPT-5.6 Sol - Premium reasoning</option>
<option value="openai:gpt-4.1-nano">GPT-4.1 Nano - Lightweight tasks</option>
<option value="openai:gpt-5.2">GPT-5.2 - Previous frontier</option>
<option value="openai:gpt-5">GPT-5 - General reasoning</option>
<option value="openai:gpt-5-mini">GPT-5 Mini - Efficient reasoning</option>
<option value="openai:gpt-4.1">GPT-4.1 - Reliable non-reasoning</option>
<option value="openai:gpt-4o">GPT-4o - General and vision</option>
<option value="openai:o3">o3 - Deep analysis</option>
<option value="openai:o3-mini">o3-mini - Compact reasoning</option>
</optgroup>
<optgroup label="Fallback">
<option value="acp">ACP Bridge (Copilot CLI default)</option>
</optgroup>
<optgroup label="LM Studio (Local)">
<option value="lmstudio">LM Studio (configured model)</option>
</optgroup>
</select>
<dl id="aigModelInfo" class="aig-model-info" aria-live="polite">
<div>
<dt>Best Eva role</dt>
<dd id="aigModelRole">Fast, cost-sensitive conversation</dd>
</div>
<div>
<dt>Standard input / 1M</dt>
<dd id="aigModelInputCost">$0.20</dd>
</div>
<div>
<dt>Standard output / 1M</dt>
<dd id="aigModelOutputCost">$1.20</dd>
</div>
</dl>
<label for="selAIGModelPolicy" style="margin-top:8px">Response policy:</label>
<select id="selAIGModelPolicy">
<option value="pinned" selected>Pinned selected backend</option>
<option value="auto-balanced">Auto Balanced (shadow evaluation)</option>
<option value="auto-fast">Auto Fast (shadow evaluation)</option>
</select>
<p class="auth-note" style="margin-top:4px">Auto policies currently record a recommendation for response-time and reliability evaluation. Eva continues using the selected backend until automatic switching is explicitly enabled after validation.</p>
</div>
<div class="model-opt" id="opt-lmstudio-config">
<label for="aigLmStudioBaseUrl">LM Studio base URL:</label>
<input type="text" id="aigLmStudioBaseUrl" placeholder="http://localhost:1234/v1" style="width:100%">
<label for="aigLmStudioModel" style="margin-top:6px">LM Studio model name:</label>
<input type="text" id="aigLmStudioModel" placeholder="Automatic - use the model loaded in LM Studio" style="width:100%">
<p class="auth-note" style="margin-top:4px">Leave blank to use the model currently loaded in LM Studio. Enter a name only to override automatic selection.</p>
</div>
<div id="opt-acpModel" class="model-opt" style="display:none">
<label for="selACPModel">ACP Model:</label>
<select id="selACPModel">
<option value="" selected>Default (Copilot CLI setting)</option>
<optgroup label="Claude">
<option value="claude-opus-4.7">Claude Opus 4.7</option>
<option value="claude-opus-4.7-high">Claude Opus 4.7 (high reasoning)</option>
<option value="claude-opus-4.7-xhigh">Claude Opus 4.7 (xhigh reasoning)</option>
<option value="claude-opus-4.6">Claude Opus 4.6</option>
<option value="claude-opus-4.6-1m">Claude Opus 4.6 (1M context)</option>
<option value="claude-opus-4.5">Claude Opus 4.5</option>
<option value="claude-sonnet-4.6">Claude Sonnet 4.6</option>
<option value="claude-sonnet-4.5">Claude Sonnet 4.5</option>
<option value="claude-sonnet-4">Claude Sonnet 4</option>
<option value="claude-haiku-4.5">Claude Haiku 4.5</option>
</optgroup>
<optgroup label="GPT">
<option value="gpt-5.6-sol">GPT-5.6 Sol</option>
<option value="gpt-5.6-terra">GPT-5.6 Terra</option>
<option value="gpt-5.6-luna">GPT-5.6 Luna</option>
<option value="gpt-5.5">GPT-5.5</option>
<option value="gpt-5.4">GPT-5.4</option>
<option value="gpt-5.4-mini">GPT-5.4 Mini</option>
<option value="gpt-5.3-codex">GPT-5.3 Codex</option>
<option value="gpt-5.2-codex">GPT-5.2 Codex</option>
<option value="gpt-5.2">GPT-5.2</option>
<option value="gpt-5-mini">GPT-5 Mini</option>
<option value="gpt-4.1">GPT-4.1</option>
</optgroup>
</select>
</div>
<!-- Adaptive review -->
<div class="model-opt cog-section">
<label class="cog-toggle-row">
<input type="checkbox" id="cogEnabled" onchange="cogPersist()">
<span><strong>Adaptive Review</strong> — use an independent reviewer for consequential turns.</span>
</label>
<p class="cog-help">Routine chat stays fast on Eva's selected backend. Eva invokes review for actions, current-data and factual work, complex decisions, or an explicit request for cognition.</p>
<div class="cog-grid">
<div>
<label for="cogReviewerModel">Review model:</label>
<select id="cogReviewerModel" onchange="cogPersist()"></select>
</div>
</div>
<p class="prompt-hint" style="margin-top:10px;font-size:11px">Eva uses the selected AIG backend. Edit the review prompt in the <strong>Prompts</strong> tab when needed.</p>
</div>
</div>
</div>
<!-- Auth Tab -->
<div class="settings-panel" data-stab="auth">
<p class="auth-note">Keys are stored locally in your browser. They override config.json values.</p>
<div class="auth-field">
<label for="authOpenAI">OpenAI API Key:</label>
<div class="auth-input-wrap">
<input type="password" id="authOpenAI" placeholder="sk-..." autocomplete="off">
<button type="button" class="auth-toggle" onclick="toggleAuthVis(this)" aria-label="Show/hide key">Show</button>
</div>
</div>
<div class="auth-field">
<label for="authGitHub">GitHub PAT (Models and private repository imports):</label>
<div class="auth-input-wrap">
<input type="password" id="authGitHub" placeholder="ghp_... or github_pat_..." autocomplete="off">
<button type="button" class="auth-toggle" onclick="toggleAuthVis(this)" aria-label="Show/hide key">Show</button>
</div>
<p class="auth-note">For private repository imports, grant the selected repository Contents: Read access. Fine-grained tokens must include that repository; classic tokens need the <code>repo</code> scope.</p>
<button id="authGitHubCliBtn" type="button" class="auth-toggle" title="Authorize GitHub CLI using a device code">Authorize GitHub CLI</button>
<div id="authGitHubDevice" class="auth-device-code" hidden aria-live="polite">
<span>Device code</span>
<strong id="authGitHubDeviceCode"></strong>
<button id="authGitHubCopyCodeBtn" type="button" class="auth-toggle">Copy code</button>
</div>
<p id="authGitHubCliStatus" class="auth-note">Eva opens the GitHub device page and shows the one-time code here. Complete sign-in in GitHub; the credential stays in GitHub CLI storage.</p>
</div>
<div class="auth-field">
<label for="txtACPBridgeUrl">ACP Bridge URL (Copilot CLI):</label>
<div class="auth-input-wrap">
<input type="text" id="txtACPBridgeUrl" placeholder="http://localhost:8888" autocomplete="off">
</div>
<p class="auth-note">For Copilot (ACP) model. Run <code>python3 tools/acp_bridge.py</code> locally.</p>
</div>
<div class="auth-field">
<label for="authGemini">Google Gemini Key (deprecated):</label>
<div class="auth-input-wrap">
<input type="password" id="authGemini" placeholder="AI..." autocomplete="off">
<button type="button" class="auth-toggle" onclick="toggleAuthVis(this)" aria-label="Show/hide key">Show</button>
</div>
</div>
<div class="auth-field">
<label for="authGoogleVision">Google Vision Key:</label>
<div class="auth-input-wrap">
<input type="password" id="authGoogleVision" placeholder="AI..." autocomplete="off">
<button type="button" class="auth-toggle" onclick="toggleAuthVis(this)" aria-label="Show/hide key">Show</button>
</div>
</div>
<hr style="border:none;border-top:1px solid rgba(255,255,255,.12);margin:14px 0 10px">
<p class="auth-note">Signal notifications (send-only via signal-cli on the bridge host).</p>
<div class="auth-field">
<label for="authSignalSender">Signal Sender Number:</label>
<div class="auth-input-wrap">
<input type="text" id="authSignalSender" placeholder="+1XXXXXXXXXX" autocomplete="off">
</div>
</div>
<div class="auth-field">
<label for="authSignalRecipient">Signal Recipient Number:</label>
<div class="auth-input-wrap">
<input type="text" id="authSignalRecipient" placeholder="+1YYYYYYYYYY" autocomplete="off">
</div>