Skip to content

Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.

TypeScript

fix(ci): read the runnable-engine list in either of its shapes

Xialie Zhuang3ed3a378fbc4
diff --git a/scripts/guard-engine-registry.mjs b/scripts/guard-engine-registry.mjs
index 490a94f..7a88bca 100644
--- a/scripts/guard-engine-registry.mjs
+++ b/scripts/guard-engine-registry.mjs
@@ -102,8 +102,13 @@ const CHECKS = [
},
{
file: 'src/lib/engines.ts',
- what: 'RUNNABLE_ENGINE_IDS',
- body: (s) => extract(s, /export const RUNNABLE_ENGINE_IDS = new Set\(\[([^\]]*)\]/),
+ what: 'the runnable-engine list',
+ // Two accepted shapes: the ordered `RUNNABLE_ENGINES` tuple the UI pickers
+ // map over, and the older `RUNNABLE_ENGINE_IDS` Set literal it is derived
+ // from. Reading whichever exists keeps this guard from being the thing
+ // that blocks collapsing that duplicate.
+ body: (s) => extract(s, /export const RUNNABLE_ENGINES(?::[^=]*)? = \[([^\]]*)\]/)
+ ?? extract(s, /export const RUNNABLE_ENGINE_IDS(?::[^=]*)? = new Set(?:<string>)?\(\[([^\]]*)\]/),
needle: (id) => `'${id}'`,
fix: 'add the id to RUNNABLE_ENGINE_IDS, or the engine stays detect-only in the UI',
},