@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 +1 -1
- package/unify/vp/vp-bridge.js +10 -0
package/package.json
CHANGED
package/unify/vp/vp-bridge.js
CHANGED
|
@@ -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,
|