feat: add shadow LangGraph orchestrator runtime

This commit is contained in:
john
2026-07-24 21:25:40 +08:00
parent 46ea22b342
commit 24336d0178
29 changed files with 3247 additions and 25 deletions
+10 -3
View File
@@ -129,8 +129,13 @@ test('admin orchestrator routes expose a versioned plug-in control plane', async
updates.push({ config, context });
return { ...state, config: { ...state.config, ...config }, configVersion: 2 };
},
async getRuntimeState() {
return { ...state, source: 'admin-db' };
async getRuntimeState(options) {
assert.deepEqual(options, { probe: true });
return {
...state,
source: 'admin-db',
serviceHealth: { ok: true, status: 'healthy' },
};
},
},
plazaPosts: null,
@@ -166,7 +171,9 @@ test('admin orchestrator routes expose a versioned plug-in control plane', async
headers: { cookie: 'h5_user_session=token-admin' },
});
assert.equal(runtimeResponse.status, 200);
assert.equal((await runtimeResponse.json()).source, 'admin-db');
const runtimeBody = await runtimeResponse.json();
assert.equal(runtimeBody.source, 'admin-db');
assert.equal(runtimeBody.serviceHealth.status, 'healthy');
} finally {
await server.close();
}