Skip to content

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Rust

fix(ai): build from the committed model catalog instead of refetching it (#2038)

Sebastian Müller0894de1ded36
diff --git a/packages/ai/.changes/res-1269-deterministic-model-catalog-build.md b/packages/ai/.changes/res-1269-deterministic-model-catalog-build.md
new file mode 100644
index 0000000000..a54a001b40
--- /dev/null
+++ b/packages/ai/.changes/res-1269-deterministic-model-catalog-build.md
@@ -0,0 +1 @@
+- Changed the build to compile from the committed model catalog instead of refetching it; run `npm run generate-models` explicitly to refresh `models.generated.ts`.
diff --git a/packages/ai/package.json b/packages/ai/package.json
index be74cacc6d..2ffe0fc7e1 100644
--- a/packages/ai/package.json
+++ b/packages/ai/package.json
@@ -65,7 +65,7 @@
"scripts": {
"clean": "shx rm -rf dist",
"generate-models": "npx tsx scripts/generate-models.ts",
- "build": "npm run generate-models && tsgo -p tsconfig.build.json",
+ "build": "tsgo -p tsconfig.build.json",
"dev": "tsgo -p tsconfig.build.json --watch --preserveWatchOutput",
"dev:tsc": "tsgo -p tsconfig.build.json --watch --preserveWatchOutput",
"test": "vitest --run",