@blockrun/clawrouter 0.11.6 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6778,6 +6778,14 @@ function injectModelsConfig(logger) {
|
|
|
6778
6778
|
logger.info("Set default model to blockrun/auto (first install)");
|
|
6779
6779
|
needsWrite = true;
|
|
6780
6780
|
}
|
|
6781
|
+
if (defaults.models && typeof defaults.models === "object" && !Array.isArray(defaults.models)) {
|
|
6782
|
+
const allowlistKeys = Object.keys(defaults.models);
|
|
6783
|
+
if (allowlistKeys.length > 0 && allowlistKeys.every((k) => k.startsWith("blockrun/"))) {
|
|
6784
|
+
delete defaults.models;
|
|
6785
|
+
needsWrite = true;
|
|
6786
|
+
logger.info("Removed blockrun-only allowlist (was hiding other models)");
|
|
6787
|
+
}
|
|
6788
|
+
}
|
|
6781
6789
|
if (needsWrite) {
|
|
6782
6790
|
try {
|
|
6783
6791
|
const tmpPath = `${configPath}.tmp.${process.pid}`;
|