aegisai-harness 0.68.5 → 0.69.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 +1 -1
- package/README.md +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/packaging/windows/installer.iss +2 -2
- package/public/app.js +103 -7
- package/public/style.css +18 -0
- package/src/index.js +51 -0
- package/src/version.js +1 -1
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.
|
|
5
|
+
## [0.69.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.
|
|
13
|
+
> Status: v0.69.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.
|
|
3
|
+
A feature-rich, local-only AI agent harness. CLI-first, offline-first. v0.69.0.
|
|
4
4
|
|
|
5
5
|
## Capabilities
|
|
6
6
|
- Multi-backend LLM adapter (Ollama + OpenAI-compatible + 18 providers)
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
[Setup]
|
|
5
5
|
AppId={{8F3D1B2A-6C4E-4B9A-9D21-AE615A010001}}
|
|
6
6
|
AppName=AegisAi Harness
|
|
7
|
-
AppVersion=0.
|
|
7
|
+
AppVersion=0.69.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.
|
|
13
|
+
OutputBaseFilename=AegisAi-Harness-0.69.0-Setup
|
|
14
14
|
Compression=lzma2
|
|
15
15
|
SolidCompression=yes
|
|
16
16
|
PrivilegesRequired=lowest
|
package/public/app.js
CHANGED
|
@@ -156,15 +156,111 @@ function ConfigModal({ cfg, setCfg, onClose }) {
|
|
|
156
156
|
onClose();
|
|
157
157
|
}
|
|
158
158
|
const keys = ['BACKEND_TYPE', 'BACKEND_URL', 'AEGISAI_MODEL', 'REA_BIN', 'GHIDRA_MCP_URL', 'CRAFT_BIN', 'sttUrl', 'ttsUrl'];
|
|
159
|
+
const [tab, setTab] = useState('config');
|
|
160
|
+
const [models, setModels] = useState([]);
|
|
161
|
+
const [scanResults, setScanResults] = useState([]);
|
|
162
|
+
const [hfQuery, setHfQuery] = useState('');
|
|
163
|
+
const [hfResults, setHfResults] = useState([]);
|
|
164
|
+
const [scanning, setScanning] = useState(false);
|
|
165
|
+
const [searching, setSearching] = useState(false);
|
|
166
|
+
|
|
167
|
+
useEffect(() => {
|
|
168
|
+
if (tab === 'models') {
|
|
169
|
+
API('/api/models').then((d) => setModels(d.models || [])).catch(() => {});
|
|
170
|
+
}
|
|
171
|
+
}, [tab]);
|
|
172
|
+
|
|
173
|
+
async function scanDrives() {
|
|
174
|
+
setScanning(true);
|
|
175
|
+
try {
|
|
176
|
+
const d = await API('/api/models/scan');
|
|
177
|
+
setScanResults(d.models || []);
|
|
178
|
+
toast('Found ' + (d.models || []).length + ' GGUF models', 'success');
|
|
179
|
+
} catch (e) { toast('Scan failed: ' + e.message, 'error'); }
|
|
180
|
+
setScanning(false);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
async function searchHF() {
|
|
184
|
+
if (!hfQuery.trim()) return;
|
|
185
|
+
setSearching(true);
|
|
186
|
+
try {
|
|
187
|
+
const d = await API('/api/models/hf-search?q=' + encodeURIComponent(hfQuery));
|
|
188
|
+
setHfResults(d.results || []);
|
|
189
|
+
toast('Found ' + (d.results || []).length + ' models', 'info');
|
|
190
|
+
} catch (e) { toast('Search failed: ' + e.message, 'error'); }
|
|
191
|
+
setSearching(false);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
async function pullModel(name) {
|
|
195
|
+
toast('Pulling ' + name + '...', 'info');
|
|
196
|
+
try {
|
|
197
|
+
const r = await fetch('/api/models/pull', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ model: name }) });
|
|
198
|
+
const d = await r.json();
|
|
199
|
+
if (d.ok) toast('Pulled ' + name + ' successfully', 'success');
|
|
200
|
+
else toast('Pull failed: ' + (d.error || 'unknown'), 'error');
|
|
201
|
+
const m = await API('/api/models');
|
|
202
|
+
setModels(m.models || []);
|
|
203
|
+
} catch (e) { toast('Pull failed: ' + e.message, 'error'); }
|
|
204
|
+
}
|
|
205
|
+
|
|
159
206
|
return html`
|
|
160
207
|
<div class="modal-backdrop" onClick=${onClose}>
|
|
161
|
-
<div class="modal" onClick=${(e) => e.stopPropagation()}>
|
|
162
|
-
<h2>Configuration</h2>
|
|
163
|
-
|
|
164
|
-
<
|
|
165
|
-
|
|
166
|
-
</
|
|
167
|
-
|
|
208
|
+
<div class="modal" style="max-width: 700px" onClick=${(e) => e.stopPropagation()}>
|
|
209
|
+
<h2>Configuration & Models</h2>
|
|
210
|
+
<div class="tab-bar">
|
|
211
|
+
<button class=${'tab' + (tab === 'config' ? ' active' : '')} onClick=${() => setTab('config')}>Config</button>
|
|
212
|
+
<button class=${'tab' + (tab === 'models' ? ' active' : '')} onClick=${() => setTab('models')}>Models</button>
|
|
213
|
+
<button class=${'tab' + (tab === 'discover' ? ' active' : '')} onClick=${() => setTab('discover')}>Discover</button>
|
|
214
|
+
</div>
|
|
215
|
+
${tab === 'config' ? html`
|
|
216
|
+
${keys.map((k) => html`
|
|
217
|
+
<label>${k}
|
|
218
|
+
<input value=${local[k] || ''} onInput=${(e) => setLocal({ ...local, [k]: e.target.value })} />
|
|
219
|
+
</label>
|
|
220
|
+
`)}
|
|
221
|
+
` : null}
|
|
222
|
+
${tab === 'models' ? html`
|
|
223
|
+
<div class="model-list">
|
|
224
|
+
<h3>Installed Models</h3>
|
|
225
|
+
${models.length === 0 ? html`<p class="hint">No models found. Start Ollama and refresh.</p>` : null}
|
|
226
|
+
${models.map((m) => html`
|
|
227
|
+
<div class="model-item">
|
|
228
|
+
<span class="model-name">${m.name || m}</span>
|
|
229
|
+
<button class="btn-sm" onClick=${() => { setLocal({ ...local, AEGISAI_MODEL: m.name || m }); toast('Selected ' + (m.name || m), 'info'); }}>Use</button>
|
|
230
|
+
</div>
|
|
231
|
+
`)}
|
|
232
|
+
<button class="btn-secondary" onClick=${() => API('/api/models').then((d) => setModels(d.models || []))}>Refresh</button>
|
|
233
|
+
</div>
|
|
234
|
+
` : null}
|
|
235
|
+
${tab === 'discover' ? html`
|
|
236
|
+
<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
|
+
${scanResults.length > 0 ? html`
|
|
240
|
+
<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>
|
|
243
|
+
`)}
|
|
244
|
+
</div>
|
|
245
|
+
` : null}
|
|
246
|
+
<h3 style="margin-top: 16px">Search HuggingFace</h3>
|
|
247
|
+
<div class="search-bar">
|
|
248
|
+
<input value=${hfQuery} onInput=${(e) => setHfQuery(e.target.value)} placeholder="e.g. llama, mistral, phi" style="flex:1" />
|
|
249
|
+
<button class="btn-primary" onClick=${searchHF} disabled=${searching}>${searching ? 'Searching...' : 'Search'}</button>
|
|
250
|
+
</div>
|
|
251
|
+
${hfResults.length > 0 ? html`
|
|
252
|
+
<div class="hf-results">
|
|
253
|
+
${hfResults.map((m) => html`
|
|
254
|
+
<div class="hf-item">
|
|
255
|
+
<span class="model-name">${m.id}</span>
|
|
256
|
+
<span class="hint">${m.downloads} downloads</span>
|
|
257
|
+
<button class="btn-sm" onClick=${() => pullModel(m.id)}>Pull</button>
|
|
258
|
+
</div>
|
|
259
|
+
`)}
|
|
260
|
+
</div>
|
|
261
|
+
` : null}
|
|
262
|
+
</div>
|
|
263
|
+
` : null}
|
|
168
264
|
<div class="modal-actions">
|
|
169
265
|
<button class="btn-primary" onClick=${save} disabled=${saving}>${saving ? 'Saving...' : 'Save'}</button>
|
|
170
266
|
<button onClick=${onClose}>Close</button>
|
package/public/style.css
CHANGED
|
@@ -232,6 +232,24 @@ kbd { background: var(--panel); border: 1px solid var(--border); border-radius:
|
|
|
232
232
|
.help-section ul { margin: 0; padding-left: 18px; font-size: 12px; }
|
|
233
233
|
.help-section li { margin: 2px 0; }
|
|
234
234
|
|
|
235
|
+
/* Tabs */
|
|
236
|
+
.tab-bar { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
|
|
237
|
+
.tab { padding: 6px 12px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); border-radius: 6px; cursor: pointer; font-size: 13px; }
|
|
238
|
+
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
|
|
239
|
+
.tab:hover:not(.active) { background: var(--border); }
|
|
240
|
+
/* Model list */
|
|
241
|
+
.model-list { margin: 8px 0; }
|
|
242
|
+
.model-item { display: flex; align-items: center; justify-content: space-between; padding: 8px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 4px; background: var(--bg); }
|
|
243
|
+
.model-name { font-family: monospace; font-size: 13px; }
|
|
244
|
+
.btn-sm { padding: 4px 8px; border: 1px solid var(--border); background: var(--panel); color: var(--fg); border-radius: 4px; cursor: pointer; font-size: 12px; }
|
|
245
|
+
.btn-sm:hover { border-color: var(--accent); }
|
|
246
|
+
/* Discover */
|
|
247
|
+
.discover-section h3 { font-size: 14px; margin: 12px 0 8px; }
|
|
248
|
+
.search-bar { display: flex; gap: 8px; margin: 8px 0; }
|
|
249
|
+
.search-bar input { flex: 1; padding: 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--input); color: var(--fg); }
|
|
250
|
+
.scan-results, .hf-results { margin: 8px 0; max-height: 200px; overflow-y: auto; }
|
|
251
|
+
.scan-item, .hf-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-bottom: 1px solid var(--border); font-size: 12px; }
|
|
252
|
+
.hf-item .model-name { flex: 1; }
|
|
235
253
|
/* Modal backdrop */
|
|
236
254
|
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(2px); }
|
|
237
255
|
|
package/src/index.js
CHANGED
|
@@ -238,6 +238,57 @@ async function main() {
|
|
|
238
238
|
sendJson(res, 200, { models });
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
+
if (req.method === 'GET' && req.url.split('?')[0] === '/api/models/scan') {
|
|
242
|
+
const roots = new URL(req.url, 'http://x').searchParams.get('roots');
|
|
243
|
+
const rootList = roots ? roots.split(',') : undefined;
|
|
244
|
+
const found = require('./model_discovery').scan(rootList);
|
|
245
|
+
sendJson(res, 200, { models: found });
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
if (req.method === 'GET' && req.url.split('?')[0] === '/api/models/hf-search') {
|
|
249
|
+
const q = new URL(req.url, 'http://x').searchParams.get('q') || '';
|
|
250
|
+
let results = [];
|
|
251
|
+
try {
|
|
252
|
+
const r = await fetch('https://huggingface.co/api/models?search=' + encodeURIComponent(q) + '&filter=gguf&sort=downloads&direction=-1&limit=20');
|
|
253
|
+
if (r.ok) {
|
|
254
|
+
const data = await r.json();
|
|
255
|
+
results = (Array.isArray(data) ? data : []).map((m) => ({
|
|
256
|
+
id: m.id || m.modelId,
|
|
257
|
+
downloads: m.downloads || 0,
|
|
258
|
+
likes: m.likes || 0,
|
|
259
|
+
tags: m.tags || [],
|
|
260
|
+
}));
|
|
261
|
+
}
|
|
262
|
+
} catch (e) {}
|
|
263
|
+
sendJson(res, 200, { results });
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
if (req.method === 'GET' && req.url.split('?')[0] === '/api/models/scan') {
|
|
267
|
+
const roots = new URL(req.url, 'http://x').searchParams.get('roots');
|
|
268
|
+
const rootList = roots ? roots.split(',') : undefined;
|
|
269
|
+
const found = require('./model_discovery').scan(rootList);
|
|
270
|
+
sendJson(res, 200, { models: found });
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
if (req.method === 'GET' && req.url.split('?')[0] === '/api/models/hf-search') {
|
|
274
|
+
const q = new URL(req.url, 'http://x').searchParams.get('q') || '';
|
|
275
|
+
// Simple HuggingFace search via their API
|
|
276
|
+
let results = [];
|
|
277
|
+
try {
|
|
278
|
+
const r = await fetch('https://huggingface.co/api/models?search=' + encodeURIComponent(q) + '&filter=gguf&sort=downloads&direction=-1&limit=20');
|
|
279
|
+
if (r.ok) {
|
|
280
|
+
const data = await r.json();
|
|
281
|
+
results = (Array.isArray(data) ? data : []).map((m) => ({
|
|
282
|
+
id: m.id || m.modelId,
|
|
283
|
+
downloads: m.downloads || 0,
|
|
284
|
+
likes: m.likes || 0,
|
|
285
|
+
tags: m.tags || [],
|
|
286
|
+
}));
|
|
287
|
+
}
|
|
288
|
+
} catch (e) {}
|
|
289
|
+
sendJson(res, 200, { results });
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
241
292
|
if (req.method === 'POST' && req.url.split('?')[0] === '/api/models/pull') {
|
|
242
293
|
const parsed = await readJson(req);
|
|
243
294
|
let ok = false;
|
package/src/version.js
CHANGED