aegisai-harness 0.73.0 → 0.74.0

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/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to AegisAi Harness are documented here.
4
4
 
5
- ## [0.73.0] - 2026-11-24
5
+ ## [0.74.0] - 2026-11-24
6
6
 
7
7
  ### Fixed
8
8
  - Installation: Windows installer now preflights Node.js 22.13+ with actionable messages; launcher no longer hides npm failures, uses `--omit=dev`, and records a dependency marker. Inno uninstall removes stale `node_modules`/lockfiles; `install.ps1` preserves `data/` and handles GitHub source zips.
package/README.md CHANGED
@@ -10,7 +10,7 @@ A **feature-rich, local-only AI agent harness** — OpenCode-class runtime, but
10
10
  offline-first: no cloud dependencies, no telemetry. 66 milestones, ~200 modules,
11
11
  257 tests, CI green.
12
12
 
13
- > Status: v0.73.0 (see [ROADMAP.md](./ROADMAP.md)).
13
+ > Status: v0.74.0 (see [ROADMAP.md](./ROADMAP.md)).
14
14
  > **Successor to [aegisai-next](https://github.com/user6811992/aegisai-next)** — that project is deprecated; all features have been ported here.
15
15
  > **Live docs:** https://user6811992.github.io/aegisai-harness/
16
16
 
package/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # AegisAi Harness — agent-readable catalog
2
2
 
3
- A feature-rich, local-only AI agent harness. CLI-first, offline-first. v0.73.0.
3
+ A feature-rich, local-only AI agent harness. CLI-first, offline-first. v0.74.0.
4
4
 
5
5
  ## Capabilities
6
6
  - Multi-backend LLM adapter (Ollama + OpenAI-compatible + 18 providers)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aegisai-harness",
3
- "version": "0.73.0",
3
+ "version": "0.74.0",
4
4
  "description": "AegisAi Harness — feature-rich, local-only AI agent harness",
5
5
  "type": "commonjs",
6
6
  "main": "src/index.js",
@@ -4,13 +4,13 @@
4
4
  [Setup]
5
5
  AppId={{8F3D1B2A-6C4E-4B9A-9D21-AE615A010001}}
6
6
  AppName=AegisAi Harness
7
- AppVersion=0.73.0
7
+ AppVersion=0.74.0
8
8
  AppPublisher=AegisAi
9
9
  AppPublisherURL=https://github.com/user6811992/aegisai-harness
10
10
  DefaultDirName={autopf}\AegisAiHarness
11
11
  DefaultGroupName=AegisAi Harness
12
12
  OutputDir=..\..\dist
13
- OutputBaseFilename=AegisAi-Harness-0.73.0-Setup
13
+ OutputBaseFilename=AegisAi-Harness-0.74.0-Setup
14
14
  Compression=lzma2
15
15
  SolidCompression=yes
16
16
  PrivilegesRequired=lowest
package/public/app.js CHANGED
@@ -340,6 +340,7 @@ function App() {
340
340
  const [showSessions, setShowSessions] = useState(false);
341
341
  const [cfg, setCfg] = useState({});
342
342
  const [theme, setTheme] = useState(localStorage.getItem('theme') || 'dark');
343
+ const THEMES = ['dark', 'light', 'high-contrast', 'solarized'];
343
344
  const [view, setView] = useState(localStorage.getItem('onboarded') ? 'chat' : 'onboarding');
344
345
  const [toasts, setToasts] = useState([]);
345
346
  const [toolLog, setToolLog] = useState([]);
@@ -361,6 +362,11 @@ function App() {
361
362
  }, [theme]);
362
363
 
363
364
  useEffect(() => { updateCtx(); }, []);
365
+ useEffect(() => {
366
+ API('/api/version').then((v) => {
367
+ if (v.version && v.version !== '0.73.0') toast('Update available: v' + v.version, 'info');
368
+ }).catch(() => {});
369
+ }, []);
364
370
 
365
371
  useEffect(() => {
366
372
  const handler = (e) => {
@@ -487,6 +493,15 @@ function App() {
487
493
  { icon: '⚖️', label: 'Compare Models', keywords: 'compare models', run: () => setShowCompare(true) },
488
494
  ];
489
495
 
496
+ const [showFiles, setShowFiles] = useState(false);
497
+ const [showSearch, setShowSearch] = useState(false);
498
+ const [showShortcuts, setShowShortcuts] = useState(false);
499
+ const [searchQuery, setSearchQuery] = useState('');
500
+ const [searchResults, setSearchResults] = useState([]);
501
+ const [fileDir, setFileDir] = useState('');
502
+ const [fileEntries, setFileEntries] = useState([]);
503
+ const [fileContent, setFileContent] = useState('');
504
+ const [selectedFile, setSelectedFile] = useState('');
490
505
  const [showCompare, setShowCompare] = useState(false);
491
506
  const [compareModels, setCompareModels] = useState('');
492
507
  const [comparePrompt, setComparePrompt] = useState('');
@@ -502,6 +517,30 @@ function App() {
502
517
  } catch (e) { toast('Export failed: ' + e.message, 'error'); }
503
518
  }
504
519
 
520
+ async function loadFiles(dir) {
521
+ try {
522
+ const d = await API('/api/files?dir=' + encodeURIComponent(dir || ''));
523
+ setFileDir(d.dir || dir);
524
+ setFileEntries(d.entries || []);
525
+ } catch (e) { toast('Failed to load files: ' + e.message, 'error'); }
526
+ }
527
+
528
+ async function searchConversations() {
529
+ if (!searchQuery.trim()) return;
530
+ try {
531
+ const d = await API('/api/search-sessions?q=' + encodeURIComponent(searchQuery));
532
+ setSearchResults(d.results || []);
533
+ } catch (e) { toast('Search failed: ' + e.message, 'error'); }
534
+ }
535
+
536
+ async function openFile(filePath) {
537
+ try {
538
+ const d = await API('/api/file?path=' + encodeURIComponent(filePath));
539
+ setSelectedFile(filePath);
540
+ setFileContent(d.content || '');
541
+ } catch (e) { toast('Failed to read file: ' + e.message, 'error'); }
542
+ }
543
+
505
544
  async function runCompare() {
506
545
  if (!comparePrompt.trim() || !compareModels.trim()) { toast('Enter a prompt and models', 'error'); return; }
507
546
  setComparing(true);
@@ -525,6 +564,82 @@ function App() {
525
564
  <${CommandPalette} open=${showPalette} onClose=${() => setShowPalette(false)} commands=${commands} />
526
565
  ${showConfig ? html`<${ConfigModal} cfg=${cfg} setCfg=${setCfg} onClose=${() => setShowConfig(false)} />` : null}
527
566
  ${showHelp ? html`<${HelpPanel} onClose=${() => setShowHelp(false)} />` : null}
567
+ ${showShortcuts ? html`
568
+ <div class="modal-backdrop" onClick=${() => setShowShortcuts(false)}>
569
+ <div class="modal" onClick=${(e) => e.stopPropagation()}>
570
+ <h2>Keyboard Shortcuts</h2>
571
+ <div class="shortcuts-list">
572
+ <div class="shortcut-item"><kbd>Ctrl+K</kbd> <span>Command palette</span></div>
573
+ <div class="shortcut-item"><kbd>Ctrl+N</kbd> <span>New chat</span></div>
574
+ <div class="shortcut-item"><kbd>Ctrl+B</kbd> <span>Toggle sessions</span></div>
575
+ <div class="shortcut-item"><kbd>Ctrl+,</kbd> <span>Settings</span></div>
576
+ <div class="shortcut-item"><kbd>Ctrl+/</kbd> <span>Help</span></div>
577
+ <div class="shortcut-item"><kbd>Ctrl+Shift+F</kbd> <span>Search conversations</span></div>
578
+ <div class="shortcut-item"><kbd>Ctrl+Shift+E</kbd> <span>Export chat</span></div>
579
+ <div class="shortcut-item"><kbd>Ctrl+Shift+C</kbd> <span>Compare models</span></div>
580
+ <div class="shortcut-item"><kbd>Ctrl+Shift+T</kbd> <span>Cycle theme</span></div>
581
+ <div class="shortcut-item"><kbd>Esc</kbd> <span>Close modals</span></div>
582
+ <div class="shortcut-item"><kbd>Enter</kbd> <span>Send message</span></div>
583
+ <div class="shortcut-item"><kbd>Shift+Enter</kbd> <span>New line in input</span></div>
584
+ </div>
585
+ <div class="modal-actions">
586
+ <button onClick=${() => setShowShortcuts(false)}>Close</button>
587
+ </div>
588
+ </div>
589
+ </div>
590
+ ` : null}
591
+ ${showSearch ? html`
592
+ <div class="modal-backdrop" onClick=${() => setShowSearch(false)}>
593
+ <div class="modal" style="max-width: 600px" onClick=${(e) => e.stopPropagation()}>
594
+ <h2>Search Conversations</h2>
595
+ <div class="search-bar">
596
+ <input value=${searchQuery} onInput=${(e) => setSearchQuery(e.target.value)} placeholder="Search messages..." style="flex:1" onKeyDown=${(e) => { if (e.key === 'Enter') searchConversations(); }} />
597
+ <button class="btn-primary" onClick=${searchConversations}>Search</button>
598
+ </div>
599
+ ${searchResults.length > 0 ? html`
600
+ <div class="search-results">
601
+ ${searchResults.map((r) => html`
602
+ <div class="search-result-item">
603
+ <span class="search-role">${r.role}</span>
604
+ <span class="search-snippet">${r.snippet}</span>
605
+ </div>
606
+ `)}
607
+ </div>
608
+ ` : searchQuery ? html`<p class="hint">No results found.</p>` : null}
609
+ <div class="modal-actions">
610
+ <button onClick=${() => setShowSearch(false)}>Close</button>
611
+ </div>
612
+ </div>
613
+ </div>
614
+ ` : null}
615
+ ${showFiles ? html`
616
+ <div class="modal-backdrop" onClick=${() => setShowFiles(false)}>
617
+ <div class="modal" style="max-width: 800px; max-height: 80vh" onClick=${(e) => e.stopPropagation()}>
618
+ <h2>File Browser</h2>
619
+ <p class="hint">${fileDir}</p>
620
+ <div class="file-browser">
621
+ <div class="file-list">
622
+ ${fileEntries.map((e) => html`
623
+ <div class=${'file-item' + (e.type === 'dir' ? ' dir' : '')} onClick=${() => e.type === 'dir' ? loadFiles(e.path) : openFile(e.path)}>
624
+ <span class="file-icon">${e.type === 'dir' ? '📁' : '📄'}</span>
625
+ <span class="file-name">${e.name}</span>
626
+ ${e.type === 'file' ? html`<span class="file-size">${e.size > 1024 ? (e.size / 1024).toFixed(1) + ' KB' : e.size + ' B'}</span>` : null}
627
+ </div>
628
+ `)}
629
+ </div>
630
+ ${selectedFile ? html`
631
+ <div class="file-preview">
632
+ <h3>${selectedFile.split(/[\\/]/).pop()}</h3>
633
+ <pre class="file-content">${fileContent.slice(0, 5000)}</pre>
634
+ </div>
635
+ ` : null}
636
+ </div>
637
+ <div class="modal-actions">
638
+ <button onClick=${() => setShowFiles(false)}>Close</button>
639
+ </div>
640
+ </div>
641
+ </div>
642
+ ` : null}
528
643
  ${showCompare ? html`
529
644
  <div class="modal-backdrop" onClick=${() => setShowCompare(false)}>
530
645
  <div class="modal" style="max-width: 800px" onClick=${(e) => e.stopPropagation()}>
@@ -558,9 +673,11 @@ function App() {
558
673
  <h1>AegisAi Harness</h1>
559
674
  <span class="ctx-meter">ctx ${ctx.tokens}/${ctx.limit}${ctx.compacted ? ' · compacted' : ''}</span>
560
675
  <button onClick=${() => setShowSessions(true)} title="Sessions (Ctrl+B)">📂</button>
561
- <button onClick=${() => setTheme(theme === 'dark' ? 'light' : 'dark')} title="Toggle theme">${theme === 'dark' ? '☀️' : '🌙'}</button>
676
+ <button onClick=${() => { const idx = THEMES.indexOf(theme); const next = THEMES[(idx + 1) % THEMES.length]; setTheme(next); localStorage.setItem('theme', next); toast('Theme: ' + next, 'info'); }} title="Cycle theme (${theme})">${theme === 'dark' ? '☀️' : theme === 'light' ? '🌙' : theme === 'high-contrast' ? '🔲' : '🌅'}</button>
562
677
  <button onClick=${() => setShowConfig(true)} title="Settings (Ctrl+,)">⚙️</button>
563
678
  <button onClick=${() => setShowPalette(true)} title="Command palette (Ctrl+K)">⌘</button>
679
+ <button onClick=${() => setShowFiles(true) || loadFiles('')} title="File browser">📁</button>
680
+ <button onClick=${() => setShowSearch(true)} title="Search conversations">🔍</button>
564
681
  <button onClick=${() => exportChat('markdown')} title="Export chat as Markdown">📤</button>
565
682
  <button onClick=${() => setShowCompare(true)} title="Compare models">⚖️</button>
566
683
  <button onClick=${() => setShowHelp(true)} title="Help (Ctrl+/)">?</button>
package/public/style.css CHANGED
@@ -4,6 +4,12 @@
4
4
  [data-theme="light"] {
5
5
  --bg: #ffffff; --fg: #24292f; --accent: #0969da; --border: #d0d7de; --panel: #f6f8fa; --input: #ffffff; --danger: #cf222e; --success: #1a7f37; --warning: #9a6700;
6
6
  }
7
+ [data-theme="high-contrast"] {
8
+ --bg: #000000; --fg: #ffffff; --accent: #ffff00; --border: #ffffff; --panel: #0a0a0a; --input: #000000; --danger: #ff0000; --success: #00ff00; --warning: #ffff00;
9
+ }
10
+ [data-theme="solarized"] {
11
+ --bg: #002b36; --fg: #839496; --accent: #268bd2; --border: #586e75; --panel: #073642; --input: #002b36; --danger: #dc322f; --success: #859900; --warning: #b58900;
12
+ }
7
13
  * { box-sizing: border-box; }
8
14
  body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); }
9
15
  .app { display: flex; flex-direction: column; height: 100vh; }
@@ -250,6 +256,23 @@ kbd { background: var(--panel); border: 1px solid var(--border); border-radius:
250
256
  .scan-results, .hf-results { margin: 8px 0; max-height: 200px; overflow-y: auto; }
251
257
  .scan-item, .hf-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-bottom: 1px solid var(--border); font-size: 12px; }
252
258
  .hf-item .model-name { flex: 1; }
259
+ /* Shortcuts */
260
+ .shortcuts-list { margin: 8px 0; }
261
+ .shortcut-item { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
262
+ .shortcut-item kbd { background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 12px; font-family: monospace; min-width: 100px; text-align: center; }
263
+ .shortcut-item span { font-size: 13px; }
264
+ /* File browser */
265
+ .file-browser { display: flex; gap: 12px; margin: 8px 0; }
266
+ .file-list { flex: 1; max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
267
+ .file-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }
268
+ .file-item:hover { background: var(--border); }
269
+ .file-item.dir { font-weight: 500; }
270
+ .file-icon { width: 20px; text-align: center; }
271
+ .file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
272
+ .file-size { font-size: 11px; color: var(--muted); }
273
+ .file-preview { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 8px; max-height: 300px; overflow-y: auto; }
274
+ .file-preview h3 { margin: 0 0 8px; font-size: 13px; }
275
+ .file-content { font-size: 12px; line-height: 1.4; white-space: pre-wrap; word-break: break-all; margin: 0; }
253
276
  /* Compare */
254
277
  .compare-results { margin-top: 16px; max-height: 400px; overflow-y: auto; }
255
278
  .compare-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
package/src/index.js CHANGED
@@ -396,6 +396,47 @@ async function main() {
396
396
  require('./mcp_server').createHandler()(req, res);
397
397
  return;
398
398
  }
399
+ if (req.method === 'GET' && req.url.split('?')[0] === '/api/search-sessions') {
400
+ const q = (new URL(req.url, 'http://x').searchParams.get('q') || '').toLowerCase();
401
+ const results = [];
402
+ for (const [sid, msgs] of sessions.entries()) {
403
+ for (const m of msgs) {
404
+ if ((m.content || '').toLowerCase().includes(q)) {
405
+ results.push({ sessionId: sid, role: m.role, snippet: (m.content || '').slice(0, 100), match: true });
406
+ break;
407
+ }
408
+ }
409
+ }
410
+ sendJson(res, 200, { results, query: q });
411
+ return;
412
+ }
413
+ if (req.method === 'GET' && req.url.split('?')[0] === '/api/files') {
414
+ const dir = new URL(req.url, 'http://x').searchParams.get('dir') || process.cwd();
415
+ let entries = [];
416
+ try {
417
+ const fs = require('fs');
418
+ const path = require('path');
419
+ const items = fs.readdirSync(dir, { withFileTypes: true });
420
+ entries = items.map((e) => ({
421
+ name: e.name,
422
+ type: e.isDirectory() ? 'dir' : 'file',
423
+ size: e.isFile() ? (fs.statSync(path.join(dir, e.name)).size) : 0,
424
+ path: path.join(dir, e.name),
425
+ })).sort((a, b) => (a.type === b.type ? a.name.localeCompare(b.name) : (a.type === 'dir' ? -1 : 1)));
426
+ } catch (e) {}
427
+ sendJson(res, 200, { dir, entries });
428
+ return;
429
+ }
430
+ if (req.method === 'GET' && req.url.split('?')[0] === '/api/file') {
431
+ const filePath = new URL(req.url, 'http://x').searchParams.get('path');
432
+ if (!filePath) { sendJson(res, 400, { error: 'path required' }); return; }
433
+ try {
434
+ const fs = require('fs');
435
+ const content = fs.readFileSync(filePath, 'utf8');
436
+ sendJson(res, 200, { content, path: filePath });
437
+ } catch (e) { sendJson(res, 500, { error: String(e.message || e) }); }
438
+ return;
439
+ }
399
440
  if (req.method === 'GET' && req.url.split('?')[0] === '/api/projects') {
400
441
  const list = require('./projects').list();
401
442
  const details = list.map((n) => require('./projects').get(n));
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // src/version.js — single runtime source for the version string.
2
2
  // Kept separate from package.json so bundled/npm-installed copies behave the same.
3
- const VERSION = '0.73.0';
3
+ const VERSION = '0.74.0';
4
4
  module.exports = { VERSION, version: VERSION };