@yeaft/webchat-agent 0.1.569 → 0.1.570

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.569",
3
+ "version": "0.1.570",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -147,6 +147,16 @@ function _fanout(evt) {
147
147
  function ensureLoader(registry = defaultRegistry) {
148
148
  if (_loaderStarted) return { loader: _loader, fresh: false };
149
149
  _loaderStarted = true;
150
+ // For NON-default registries (unit tests seeding VPs manually) we MUST NOT
151
+ // start VpLoader — its .start() scans DEFAULT_VP_LIB_DIR and push-imports
152
+ // every on-disk VP into the test registry, overwriting/augmenting the
153
+ // fixture. Tests don't need hot-reload anyway; `_broadcastChangeForTest`
154
+ // drives the diff path directly.
155
+ if (registry !== defaultRegistry) {
156
+ _loader = null;
157
+ captureState(registry);
158
+ return { loader: null, fresh: true };
159
+ }
150
160
  try {
151
161
  _loader = new VpLoader({
152
162
  registry,