fix: daemon loads gate role from engine (meta-gate-role crash fix)
CI / test (push) Has been cancelled
CI / test (push) Has been cancelled
This commit is contained in:
@@ -94,11 +94,21 @@ const metaTesterMod = await tryLoadFromEngine(
|
||||
() => import('../workflows/roles/meta-tester.js')
|
||||
);
|
||||
|
||||
const metaWf = metaMod.createMetaWorkflow({
|
||||
// Load gate role if available from engine
|
||||
const metaGateMod = await tryLoadFromEngine(
|
||||
'src/workflows/roles/meta-gate.ts',
|
||||
async () => null as any,
|
||||
);
|
||||
|
||||
const metaRoles: Record<string, any> = {
|
||||
coder: metaCoderMod.createMetaCoderRole(cursorRunner, llm, ENGINE_DIR),
|
||||
checker: metaCheckerMod.createMetaCheckerRole({ engineDir: ENGINE_DIR }),
|
||||
tester: metaTesterMod.createMetaTesterRole({ repoDir: ENGINE_DIR }),
|
||||
});
|
||||
};
|
||||
if (metaGateMod?.createMetaGateRole) {
|
||||
metaRoles.gate = metaGateMod.createMetaGateRole({ engineDir: ENGINE_DIR });
|
||||
}
|
||||
const metaWf = metaMod.createMetaWorkflow(metaRoles as any);
|
||||
const metaRule = createWorkflowRule(metaWf, store, logStore);
|
||||
|
||||
// 3. Report workflow (analyst → renderer)
|
||||
|
||||
Reference in New Issue
Block a user