@midscene/shared 0.27.6-beta-20250831000753.0 → 0.27.6
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.
|
@@ -165,7 +165,10 @@ class GlobalConfigManager {
|
|
|
165
165
|
extendMode
|
|
166
166
|
};
|
|
167
167
|
if (this.initialized) this.initModelConfigForIntent();
|
|
168
|
-
else
|
|
168
|
+
else {
|
|
169
|
+
this.initAllEnvConfig();
|
|
170
|
+
this.modelConfigForChromeExtension = void 0;
|
|
171
|
+
}
|
|
169
172
|
}
|
|
170
173
|
constructor(){
|
|
171
174
|
_define_property(this, "override", void 0);
|
|
@@ -194,7 +194,10 @@ class GlobalConfigManager {
|
|
|
194
194
|
extendMode
|
|
195
195
|
};
|
|
196
196
|
if (this.initialized) this.initModelConfigForIntent();
|
|
197
|
-
else
|
|
197
|
+
else {
|
|
198
|
+
this.initAllEnvConfig();
|
|
199
|
+
this.modelConfigForChromeExtension = void 0;
|
|
200
|
+
}
|
|
198
201
|
}
|
|
199
202
|
constructor(){
|
|
200
203
|
_define_property(this, "override", void 0);
|
package/package.json
CHANGED
package/src/env/global-config.ts
CHANGED
|
@@ -322,6 +322,8 @@ export class GlobalConfigManager {
|
|
|
322
322
|
this.initModelConfigForIntent();
|
|
323
323
|
} else {
|
|
324
324
|
this.initAllEnvConfig();
|
|
325
|
+
// reset modelConfigForChromeExtension to force re-init when overrideAIConfig is called
|
|
326
|
+
this.modelConfigForChromeExtension = undefined;
|
|
325
327
|
}
|
|
326
328
|
}
|
|
327
329
|
}
|