echoclaw-relay-agent 0.33.2 → 0.33.3
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.
|
@@ -3353,6 +3353,13 @@ function validateClawHtml(html, manifest, options) {
|
|
|
3353
3353
|
});
|
|
3354
3354
|
}
|
|
3355
3355
|
if (declaredCaps.has("network") && manifest.network_allow) {
|
|
3356
|
+
if (manifest.network_allow.length > RESOURCE_LIMITS.NETWORK_ALLOW_MAX_ENTRIES) {
|
|
3357
|
+
errors.push({
|
|
3358
|
+
rule: 5,
|
|
3359
|
+
severity: "critical",
|
|
3360
|
+
message: `network_allow has ${manifest.network_allow.length} entries, max ${RESOURCE_LIMITS.NETWORK_ALLOW_MAX_ENTRIES}.`
|
|
3361
|
+
});
|
|
3362
|
+
}
|
|
3356
3363
|
for (const url of manifest.network_allow) {
|
|
3357
3364
|
const isWildcard = /^\*\.[a-zA-Z0-9][\w\-.]+$/.test(url);
|
|
3358
3365
|
if (!isWildcard && !/^(wss?|https?):\/\/.+/.test(url)) {
|
|
@@ -9501,8 +9508,6 @@ var AgentCore = class {
|
|
|
9501
9508
|
_workspaceReader;
|
|
9502
9509
|
_syncCommandHandler = null;
|
|
9503
9510
|
_agentVersion;
|
|
9504
|
-
/** Called when desktop reports a different version than this agent. */
|
|
9505
|
-
onVersionMismatch = null;
|
|
9506
9511
|
/** Currently attached transport (Phase 1: single transport). */
|
|
9507
9512
|
_transport = null;
|
|
9508
9513
|
/** Workspace directory watcher for detecting new apps from OpenClaw. */
|
|
@@ -9835,10 +9840,6 @@ var AgentCore = class {
|
|
|
9835
9840
|
if (payloadType === "client_hello") {
|
|
9836
9841
|
const clientVer = payload.version || "unknown";
|
|
9837
9842
|
console.log(` [client_hello] desktop version=${clientVer}`);
|
|
9838
|
-
if (clientVer !== this._agentVersion && clientVer !== "unknown") {
|
|
9839
|
-
console.log(` [version] agent=${this._agentVersion} desktop=${clientVer} \u2014 versions differ`);
|
|
9840
|
-
this.onVersionMismatch?.(this._agentVersion, clientVer);
|
|
9841
|
-
}
|
|
9842
9843
|
return;
|
|
9843
9844
|
}
|
|
9844
9845
|
if (payloadType === "vm_start") {
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AgentCore,
|
|
4
4
|
RelayAgent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HKTSUUCO.js";
|
|
6
6
|
import "./chunk-STI2237I.js";
|
|
7
7
|
|
|
8
8
|
// src/service/platform.ts
|
|
@@ -1106,11 +1106,6 @@ async function runDaemon(relay, code, gateway, bridgePort, vmOpts) {
|
|
|
1106
1106
|
if (vmConfig) {
|
|
1107
1107
|
console.log(` [vm] enabled (backend=${vmConfig.backend ?? "docker"} image=${vmConfig.image ?? "default"})`);
|
|
1108
1108
|
}
|
|
1109
|
-
agentCore.onVersionMismatch = (_agentVer, clientVer) => {
|
|
1110
|
-
console.log(` [ota] desktop requests version ${clientVer} \u2014 triggering update`);
|
|
1111
|
-
updater.updateToVersion(clientVer).catch(() => {
|
|
1112
|
-
});
|
|
1113
|
-
};
|
|
1114
1109
|
updater.on("update_available", (info) => {
|
|
1115
1110
|
console.log(` ${GREEN}[ota]${RESET} update available: ${info.current} \u2192 ${info.latest}`);
|
|
1116
1111
|
});
|
package/dist/core/AgentCore.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ export declare class AgentCore {
|
|
|
21
21
|
private readonly _workspaceReader;
|
|
22
22
|
private _syncCommandHandler;
|
|
23
23
|
private readonly _agentVersion;
|
|
24
|
-
/** Called when desktop reports a different version than this agent. */
|
|
25
|
-
onVersionMismatch: ((agentVersion: string, clientVersion: string) => void) | null;
|
|
26
24
|
/** Currently attached transport (Phase 1: single transport). */
|
|
27
25
|
private _transport;
|
|
28
26
|
/** Workspace directory watcher for detecting new apps from OpenClaw. */
|
package/dist/index.js
CHANGED
package/package.json
CHANGED