aegisai-harness 0.69.0 → 0.70.1

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.69.0] - 2026-11-24
5
+ ## [0.70.1] - 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.69.0 (see [ROADMAP.md](./ROADMAP.md)).
13
+ > Status: v0.70.1 (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.69.0.
3
+ A feature-rich, local-only AI agent harness. CLI-first, offline-first. v0.70.1.
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.69.0",
3
+ "version": "0.70.1",
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.69.0
7
+ AppVersion=0.70.1
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.69.0-Setup
13
+ OutputBaseFilename=AegisAi-Harness-0.70.1-Setup
14
14
  Compression=lzma2
15
15
  SolidCompression=yes
16
16
  PrivilegesRequired=lowest
package/public/app.js CHANGED
@@ -163,6 +163,7 @@ function ConfigModal({ cfg, setCfg, onClose }) {
163
163
  const [hfResults, setHfResults] = useState([]);
164
164
  const [scanning, setScanning] = useState(false);
165
165
  const [searching, setSearching] = useState(false);
166
+ const [scanRoot, setScanRoot] = useState('');
166
167
 
167
168
  useEffect(() => {
168
169
  if (tab === 'models') {
@@ -173,9 +174,10 @@ function ConfigModal({ cfg, setCfg, onClose }) {
173
174
  async function scanDrives() {
174
175
  setScanning(true);
175
176
  try {
176
- const d = await API('/api/models/scan');
177
+ const url = scanRoot ? '/api/models/scan?roots=' + encodeURIComponent(scanRoot) : '/api/models/scan';
178
+ const d = await API(url);
177
179
  setScanResults(d.models || []);
178
- toast('Found ' + (d.models || []).length + ' GGUF models', 'success');
180
+ toast('Found ' + (d.models || []).length + ' models', 'success');
179
181
  } catch (e) { toast('Scan failed: ' + e.message, 'error'); }
180
182
  setScanning(false);
181
183
  }
@@ -234,31 +236,42 @@ function ConfigModal({ cfg, setCfg, onClose }) {
234
236
  ` : null}
235
237
  ${tab === 'discover' ? html`
236
238
  <div class="discover-section">
237
- <h3>Scan Drives for GGUF Models</h3>
238
- <button class="btn-primary" onClick=${scanDrives} disabled=${scanning}>${scanning ? 'Scanning...' : 'Scan Drives'}</button>
239
+ <h3>Scan for Local Models</h3>
240
+ <p class="hint">Scan drives and directories for GGUF, BIN, and Safetensors model files, plus Ollama models.</p>
241
+ <div class="search-bar">
242
+ <input value=${scanRoot} onInput=${(e) => setScanRoot(e.target.value)} placeholder="Leave empty for default roots, or enter a path (e.g. D:\\models)" style="flex:1" />
243
+ <button class="btn-primary" onClick=${scanDrives} disabled=${scanning}>${scanning ? 'Scanning...' : 'Scan'}</button>
244
+ </div>
239
245
  ${scanResults.length > 0 ? html`
240
246
  <div class="scan-results">
241
- ${scanResults.slice(0, 20).map((m) => html`
242
- <div class="scan-item">${m.name} (${m.sizeGB} GB) <span class="hint">${m.path}</span></div>
247
+ <p class="hint">Found ${scanResults.length} models</p>
248
+ ${scanResults.slice(0, 30).map((m) => html`
249
+ <div class="scan-item">
250
+ <span class="model-name">${m.name}</span>
251
+ <span class="hint">${m.sizeGB > 0 ? m.sizeGB + ' GB' : ''} ${m.type ? '(' + m.type + ')' : ''}</span>
252
+ </div>
243
253
  `)}
244
254
  </div>
245
- ` : null}
255
+ ` : html`<p class="hint">No models found. Try scanning a specific directory.</p>`}
246
256
  <h3 style="margin-top: 16px">Search HuggingFace</h3>
257
+ <p class="hint">Search HuggingFace for GGUF models. Try terms like "llama", "mistral", "phi", "gemma".</p>
247
258
  <div class="search-bar">
248
- <input value=${hfQuery} onInput=${(e) => setHfQuery(e.target.value)} placeholder="e.g. llama, mistral, phi" style="flex:1" />
259
+ <input value=${hfQuery} onInput=${(e) => setHfQuery(e.target.value)} placeholder="e.g. llama, mistral, phi, gemma" style="flex:1" onKeyDown=${(e) => { if (e.key === 'Enter') searchHF(); }} />
249
260
  <button class="btn-primary" onClick=${searchHF} disabled=${searching}>${searching ? 'Searching...' : 'Search'}</button>
250
261
  </div>
251
262
  ${hfResults.length > 0 ? html`
252
263
  <div class="hf-results">
264
+ <p class="hint">Found ${hfResults.length} models</p>
253
265
  ${hfResults.map((m) => html`
254
266
  <div class="hf-item">
255
267
  <span class="model-name">${m.id}</span>
256
- <span class="hint">${m.downloads} downloads</span>
268
+ <span class="hint">${(m.downloads || 0).toLocaleString()} downloads ${m.isGguf ? '✓ GGUF' : ''}</span>
257
269
  <button class="btn-sm" onClick=${() => pullModel(m.id)}>Pull</button>
258
270
  </div>
259
271
  `)}
260
272
  </div>
261
273
  ` : null}
274
+ ${hfResults.length === 0 && hfQuery && !searching ? html`<p class="hint">No results found. Try a broader search term like "llama", "mistral", or "phi".</p>` : null}
262
275
  </div>
263
276
  ` : null}
264
277
  <div class="modal-actions">
@@ -0,0 +1,10 @@
1
+ const fs = require('fs');
2
+ const { execSync } = require('child_process');
3
+ const log = execSync('gh run view 45305918897 --log', { encoding: 'utf8', maxBuffer: 10 * 1024 * 1024 });
4
+ const lines = log.split(/\r?\n/);
5
+ const publishLines = lines.filter((l) => l.includes('+ aegisai-harness@'));
6
+ console.log('publish output:', publishLines.length);
7
+ publishLines.forEach((l) => console.log(l.slice(0, 100)));
8
+ const errors = lines.filter((l) => /npm error/i.test(l));
9
+ console.log('npm errors:', errors.length);
10
+ errors.forEach((l) => console.log(l.slice(0, 200)));
@@ -0,0 +1,14 @@
1
+ const fs = require('fs');
2
+ const { execSync } = require('child_process');
3
+ const log = execSync('gh run view 45305918897 --log', { encoding: 'utf8', maxBuffer: 10 * 1024 * 1024 });
4
+ const lines = log.split(/\r?\n/);
5
+ const publishLines = lines.filter((l) => l.includes('+ aegisai-harness@'));
6
+ console.log('publish output:', publishLines.length);
7
+ publishLines.forEach((l) => console.log(l.slice(0, 100)));
8
+ const errors = lines.filter((l) => /npm error/i.test(l));
9
+ console.log('npm errors:', errors.length);
10
+ errors.forEach((l) => console.log(l.slice(0, 200)));
11
+ // Check if version in package.json matches
12
+ const pkgLines = lines.filter((l) => l.includes('npm notice version:'));
13
+ console.log('version lines:', pkgLines.length);
14
+ pkgLines.forEach((l) => console.log(l.slice(0, 100)));
package/src/index.js CHANGED
@@ -242,6 +242,12 @@ async function main() {
242
242
  const roots = new URL(req.url, 'http://x').searchParams.get('roots');
243
243
  const rootList = roots ? roots.split(',') : undefined;
244
244
  const found = require('./model_discovery').scan(rootList);
245
+ // Also list Ollama models
246
+ try {
247
+ const r = await require('./backends').backendListModels();
248
+ const ollamaModels = (r.models || []).map((m) => ({ path: 'ollama://' + (m.name || m), name: m.name || m, sizeGB: m.size ? +(m.size / 1024 ** 3).toFixed(2) : 0, type: 'ollama' }));
249
+ found.push(...ollamaModels);
250
+ } catch (e) {}
245
251
  sendJson(res, 200, { models: found });
246
252
  return;
247
253
  }
@@ -249,24 +255,37 @@ async function main() {
249
255
  const q = new URL(req.url, 'http://x').searchParams.get('q') || '';
250
256
  let results = [];
251
257
  try {
252
- const r = await fetch('https://huggingface.co/api/models?search=' + encodeURIComponent(q) + '&filter=gguf&sort=downloads&direction=-1&limit=20');
258
+ // Search without filter first, then filter for gguf client-side
259
+ const r = await fetch('https://huggingface.co/api/models?search=' + encodeURIComponent(q) + '&sort=downloads&direction=-1&limit=30');
253
260
  if (r.ok) {
254
261
  const data = await r.json();
255
- results = (Array.isArray(data) ? data : []).map((m) => ({
262
+ const all = Array.isArray(data) ? data : [];
263
+ // Filter for GGUF models (have gguf tag or name contains gguf)
264
+ const gguf = all.filter((m) => (m.tags || []).includes('gguf') || (m.id || '').toLowerCase().includes('gguf'));
265
+ // If no gguf results, return all results (user can still see what's available)
266
+ const toShow = gguf.length > 0 ? gguf : all;
267
+ results = toShow.slice(0, 20).map((m) => ({
256
268
  id: m.id || m.modelId,
257
269
  downloads: m.downloads || 0,
258
270
  likes: m.likes || 0,
259
271
  tags: m.tags || [],
272
+ isGguf: (m.tags || []).includes('gguf'),
260
273
  }));
261
274
  }
262
- } catch (e) {}
263
- sendJson(res, 200, { results });
275
+ } catch (e) { console.error('HF search error:', e.message); }
276
+ sendJson(res, 200, { results, query: q });
264
277
  return;
265
278
  }
266
279
  if (req.method === 'GET' && req.url.split('?')[0] === '/api/models/scan') {
267
280
  const roots = new URL(req.url, 'http://x').searchParams.get('roots');
268
281
  const rootList = roots ? roots.split(',') : undefined;
269
282
  const found = require('./model_discovery').scan(rootList);
283
+ // Also list Ollama models
284
+ try {
285
+ const r = await require('./backends').backendListModels();
286
+ const ollamaModels = (r.models || []).map((m) => ({ path: 'ollama://' + (m.name || m), name: m.name || m, sizeGB: m.size ? +(m.size / 1024 ** 3).toFixed(2) : 0, type: 'ollama' }));
287
+ found.push(...ollamaModels);
288
+ } catch (e) {}
270
289
  sendJson(res, 200, { models: found });
271
290
  return;
272
291
  }
@@ -11,29 +11,80 @@ const ROOTS = [
11
11
  path.join(os.homedir(), 'models'),
12
12
  ];
13
13
 
14
+ // Also scan common drive roots on Windows
15
+ function getDefaultRoots() {
16
+ const roots = [...ROOTS];
17
+ if (process.platform === 'win32') {
18
+ // Add common Windows locations
19
+ for (const drive of ['C:', 'D:', 'E:']) {
20
+ const modelsDir = drive + '\\models';
21
+ try { if (fs.existsSync(modelsDir)) roots.push(modelsDir); } catch (e) {}
22
+ const ollamaDir = drive + '\\.ollama';
23
+ try { if (fs.existsSync(ollamaDir)) roots.push(ollamaDir); } catch (e) {}
24
+ }
25
+ }
26
+ return roots;
27
+ }
28
+
14
29
  function scan(roots, maxFiles) {
15
- roots = roots || ROOTS;
30
+ roots = roots || getDefaultRoots();
16
31
  const found = [];
17
32
  let count = 0;
33
+ const extensions = /\.(gguf|bin|safetensors)$/i;
18
34
  function walk(dir, depth) {
19
- if (depth > 6 || count >= (maxFiles || 300)) return;
35
+ if (depth > 8 || count >= (maxFiles || 500)) return;
20
36
  let entries = [];
21
37
  try { entries = fs.readdirSync(dir, { withFileTypes: true }); } catch (e) { return; }
22
38
  for (const e of entries) {
23
- if (count >= (maxFiles || 300)) break;
39
+ if (count >= (maxFiles || 500)) break;
24
40
  const p = path.join(dir, e.name);
25
- if (e.isDirectory()) walk(p, depth + 1);
26
- else if (/\.gguf$/i.test(e.name)) {
41
+ if (e.isDirectory()) {
42
+ // Skip node_modules, .git, etc.
43
+ if (['node_modules', '.git', 'AppData', 'Windows', 'Program Files'].includes(e.name)) continue;
44
+ walk(p, depth + 1);
45
+ } else if (extensions.test(e.name)) {
27
46
  let size = 0;
28
47
  try { size = fs.statSync(p).size; } catch (err) {}
29
- found.push({ path: p, name: e.name, sizeGB: +(size / 1024 ** 3).toFixed(2) });
48
+ found.push({ path: p, name: e.name, sizeGB: +(size / 1024 ** 3).toFixed(2), type: path.extname(e.name).slice(1).toLowerCase() });
30
49
  count += 1;
31
50
  }
32
51
  }
33
52
  }
34
53
  for (const r of roots) walk(r, 0);
54
+
55
+ // Also check Ollama models
56
+ try {
57
+ const ollamaDir = path.join(os.homedir(), '.ollama', 'models');
58
+ if (fs.existsSync(ollamaDir)) {
59
+ // Ollama stores models as blobs; list the manifests
60
+ const manifestsDir = path.join(ollamaDir, 'manifests');
61
+ if (fs.existsSync(manifestsDir)) {
62
+ function walkManifests(dir, prefix) {
63
+ let entries = [];
64
+ try { entries = fs.readdirSync(dir, { withFileTypes: true }); } catch (e) { return; }
65
+ for (const e of entries) {
66
+ const p = path.join(dir, e.name);
67
+ if (e.isDirectory()) walkManifests(p, prefix + e.name + '/');
68
+ else {
69
+ found.push({ path: p, name: (prefix + e.name).replace(/\//g, ':'), sizeGB: 0, type: 'ollama' });
70
+ count += 1;
71
+ }
72
+ }
73
+ }
74
+ walkManifests(manifestsDir, '');
75
+ }
76
+ }
77
+ } catch (e) {}
78
+
35
79
  return found;
36
80
  }
81
+
82
+ function huggingFacePull(repo, filename) {
83
+ const url = 'https://huggingface.co/' + repo + '/resolve/main/' + (filename || '');
84
+ return { ok: true, url, note: 'streaming download not implemented; open URL or use huggingface-cli' };
85
+ }
86
+
87
+ module.exports = { ROOTS, getDefaultRoots, scan, huggingFacePull };
37
88
  function huggingFacePull(repo, filename) {
38
89
  const url = 'https://huggingface.co/' + repo + '/resolve/main/' + (filename || '');
39
90
  return { ok: true, url, note: 'streaming download not implemented; open URL or use huggingface-cli' };
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.69.0';
3
+ const VERSION = '0.70.1';
4
4
  module.exports = { VERSION, version: VERSION };