Add universal forge, fusion disguise, remote deploy, and stability fixes.

Ship cross-platform spread kits and fusion ZIPs with per-OS launchers, one-liner dropper endpoints, Windows file disguise, and a large batch of wiring/bug fixes so agents connect reliably across a LAN test fleet.
This commit is contained in:
drjones
2026-05-29 20:53:13 -07:00
parent c6c2e73359
commit 0f9e04f5f6
108 changed files with 5937 additions and 1233 deletions

View File

@@ -5,6 +5,11 @@ import './MatrixStreamOverlay.css';
export default function MatrixStreamOverlay({ active, onClose }: { active: boolean; onClose: () => void }) {
const { recentShares } = useWebSocket();
const canvasRef = useRef<HTMLCanvasElement>(null);
// Keep a ref to the latest shares so the draw loop always sees fresh data
// WITHOUT being listed as a useEffect dependency — this stops the animation
// from restarting every time a new share arrives (fixes L7).
const sharesRef = useRef(recentShares);
sharesRef.current = recentShares;
useEffect(() => {
if (!active || !canvasRef.current) return;
@@ -25,33 +30,29 @@ export default function MatrixStreamOverlay({ active, onClose }: { active: boole
let drops: number[] = Array(Math.floor(columns)).fill(1);
const draw = () => {
// Black BG for the canvas
// translucent BG to show trail
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = '#0F0'; // Green text
ctx.fillStyle = '#0F0';
ctx.font = `${fontSize}px monospace`;
const shares = sharesRef.current;
for (let i = 0; i < drops.length; i++) {
let text = letters.charAt(Math.floor(Math.random() * letters.length));
// Occasionally drop a raw share payload in the stream
if (Math.random() > 0.99 && recentShares.length > 0) {
const share = recentShares[Math.floor(Math.random() * recentShares.length)];
text = JSON.stringify({ agent: share.agent_id?.substring(0,6), hash: share.hash?.substring(0,8), valid: share.accepted });
if (Math.random() > 0.99 && shares.length > 0) {
const share = shares[Math.floor(Math.random() * shares.length)];
text = JSON.stringify({ agent: share.agent_id?.substring(0, 6), hash: share.hash?.substring(0, 8), valid: share.accepted });
ctx.fillStyle = share.accepted ? '#00f5ff' : '#ff4444';
ctx.fillText(text, i * fontSize, drops[i] * fontSize);
ctx.fillStyle = '#0F0'; // Reset color
ctx.fillStyle = '#0F0';
} else {
ctx.fillText(text, i * fontSize, drops[i] * fontSize);
}
// sending the drop back to the top randomly after it has crossed the screen
if (drops[i] * fontSize > canvas.height && Math.random() > 0.975) {
drops[i] = 0;
}
drops[i]++;
}
};
@@ -61,7 +62,7 @@ export default function MatrixStreamOverlay({ active, onClose }: { active: boole
clearInterval(interval);
window.removeEventListener('resize', resize);
};
}, [active, recentShares]);
}, [active]); // recentShares intentionally excluded — read via sharesRef
if (!active) return null;