Add AC/BC RTCP programs and 3D machine manager

This commit is contained in:
2026-09-20 12:31:12 +08:00
parent 1c1e5f9672
commit 8aab531b02
363 changed files with 53213 additions and 58 deletions

View File

@@ -20,6 +20,15 @@ assert.equal(fast.tick, 10);
const restored = new SimScheduler(core, { budget: 100 });
assert.equal(restored.restore(fast.export()).state_hash, fast.hash());
const interrupted = new SimScheduler(core, { budget: 100 });
assert.throws(() => interrupted.step(10, { motion: (tick) => { if (tick === 3) throw new Error("injected_motion_fault"); } }), /injected_motion_fault/);
assert.equal(interrupted.tick, 3);
assert.equal(interrupted.last_cycles, 3);
const afterFault = [];
interrupted.step(2, { motion: (tick) => afterFault.push(tick) });
assert.deepEqual(afterFault, [4, 5]);
assert.equal(interrupted.tick, 5);
let lastSeq = 0;
const session = new SimSession({
_sim_protocol_reset() {},