@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 this.initAllEnvConfig();
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 this.initAllEnvConfig();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/shared",
3
- "version": "0.27.6-beta-20250831000753.0",
3
+ "version": "0.27.6",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
@@ -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
  }