usebeeline 0.1.35 → 0.1.36
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/usebeeline.mjs +7 -6
- package/package.json +1 -1
package/dist/usebeeline.mjs
CHANGED
|
@@ -19004,12 +19004,9 @@ var MachineLink = class {
|
|
|
19004
19004
|
if (!value || typeof value !== "object")
|
|
19005
19005
|
return;
|
|
19006
19006
|
const event = value;
|
|
19007
|
-
if (event.type === "force-update"
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
}
|
|
19011
|
-
if (typeof event.agentId === "string") {
|
|
19012
|
-
this.#channels.get(event.agentId)?.receive(event);
|
|
19007
|
+
if (event.type === "force-update") {
|
|
19008
|
+
if (typeof event.minVersion === "string")
|
|
19009
|
+
this.link.requireUpdate(event.minVersion);
|
|
19013
19010
|
return;
|
|
19014
19011
|
}
|
|
19015
19012
|
if (event.type === "helper-release") {
|
|
@@ -19019,6 +19016,10 @@ var MachineLink = class {
|
|
|
19019
19016
|
this.#broadcast(event);
|
|
19020
19017
|
return;
|
|
19021
19018
|
}
|
|
19019
|
+
if (typeof event.agentId === "string" && event.agentId.length > 0) {
|
|
19020
|
+
this.#channels.get(event.agentId)?.receive(event);
|
|
19021
|
+
return;
|
|
19022
|
+
}
|
|
19022
19023
|
if (event.type !== "hello" && event.type !== "force-update")
|
|
19023
19024
|
this.#logUnknown(event.type);
|
|
19024
19025
|
}
|