feat(persona): assemble Sujian and Shouyin runtime bodies

This commit is contained in:
冰朔 2026-09-13 12:30:15 +08:00
commit 0d92ac8969
17 changed files with 431 additions and 10 deletions

View file

@ -39,11 +39,11 @@ test('server exposes all baby loops while refusing off-channel baby events', asy
try {
await waitReady(child);
const health = await (await fetch(`http://127.0.0.1:${port}/health`)).json();
assert.deepEqual(health.persona_runtimes.installed_personas, ['ICE-P-ZY001','ICE-P-SH0908','ICE-P-QW0913','ICE-BB-0001','ICE-BB-0002','ICE-BB-0003','ICE-BB-0004','ICE-BB-0005','ICE-BB-0006','ICE-BB-0007','ICE-BB-0008','ICE-BB-0009']);
assert.deepEqual(health.persona_runtimes.installed_personas, ['ICE-P-ZY001','ICE-P-SH0908','ICE-P-QW0913','ICE-P-SJ0907','ICE-P-SY0907','ICE-BB-0001','ICE-BB-0002','ICE-BB-0003','ICE-BB-0004','ICE-BB-0005','ICE-BB-0006','ICE-BB-0007','ICE-BB-0008','ICE-BB-0009']);
assert.equal(health.persona_runtimes.personas['ICE-P-SH0908'].body.organs.health.state, 'NATIVE_ORGAN_REFLEX_HEALTHY_AWAITING_PARENT_BRAIN_WAKE_CYCLE');
const supervisorStatus = await (await fetch(`http://127.0.0.1:${port}/v1/status`)).json();
assert.equal(supervisorStatus.phase, 'PERSONA_RUNTIME_READY');
assert.equal(supervisorStatus.persona_runtime_count, 12);
assert.equal(supervisorStatus.persona_runtime_count, 14);
assert.equal(supervisorStatus.default_persona, null);
const status = await (await fetch(`http://127.0.0.1:${port}/v1/persona/ICE-BB-0005/status`)).json();
assert.equal(status.persona_id, 'ICE-BB-0005');