local-commander-agent-linux-x64 0.3.49 → 0.3.50
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/runtime/agent.mjs +8 -5
- package/runtime/manifest.json +4 -4
package/package.json
CHANGED
package/runtime/agent.mjs
CHANGED
|
@@ -47423,9 +47423,9 @@ function waitForMessage(socket, maxBytes, timeoutMs2, timeoutCode) {
|
|
|
47423
47423
|
cleanup();
|
|
47424
47424
|
reject(new RelayClientError(error62.code === "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH" ? "RELAY_FRAME_TOO_LARGE" : "RELAY_SOCKET_FAILED"));
|
|
47425
47425
|
};
|
|
47426
|
-
const onClose = () => {
|
|
47426
|
+
const onClose = (code, reason) => {
|
|
47427
47427
|
cleanup();
|
|
47428
|
-
reject(new RelayClientError("RELAY_SOCKET_CLOSED"));
|
|
47428
|
+
reject(new RelayClientError(code === 1008 && reason.toString("utf8") === "device_quarantined" ? "RELAY_DEVICE_QUARANTINED" : "RELAY_SOCKET_CLOSED"));
|
|
47429
47429
|
};
|
|
47430
47430
|
socket.once("message", onMessage);
|
|
47431
47431
|
socket.once("error", onError);
|
|
@@ -50853,9 +50853,10 @@ async function restoreContentAudit(input2, output2, key) {
|
|
|
50853
50853
|
}
|
|
50854
50854
|
|
|
50855
50855
|
// agent/src/main.ts
|
|
50856
|
-
var AGENT_VERSION2 = true ? "0.3.
|
|
50856
|
+
var AGENT_VERSION2 = true ? "0.3.50" : "0.3.2";
|
|
50857
50857
|
var NETWORK_PUBLIC_KEY = true ? "-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAvmu+81vWtJBQDZNHcAIW\nzCSxpG+R9RBsum2df5mP2cOW+wyUDTpnYquFge1qgI5YYTF96j0xCyXL8B9FeNWs\n939opWNmv53j+CQlS4cEIQhBbZSCu0eC4icsVEzBhvf68MB+E668SOtZBcVTEnyh\n96PTcupxS10rQJBWDinbKBXRC2gvGYeu01rWa/nsrndy4vAYP5t3yQtdOC8e8mr0\n+2Mg2Qhiq+KiTCtDd+L9oXvoLqqJYbzUIveNGha25AWxF1Weblp0gOM87hell5gV\nK7q4ZLUq/wBRGYNmQRdLyV7/WRE1FFPSW21/SBZQ/5aU4UqJU/MjMcrJUrnRKngz\nYKmo0czkxS3N7Q2KVxomgR1AQSuQFKMrboZYKjShADp9RIYUxzs7cYg51Of5PnHh\n6Ax+VevDGfzjMD+yHuyxYZqCtX4OwgolJxz63UQbzKlris+8xb5lLYTbIuz90Pss\nn6HK/F5May25c6oMmS3nh/NsiZopL1OvdtWKTt1L4WlRAgMBAAE=\n-----END PUBLIC KEY-----\n" : "";
|
|
50858
50858
|
var AI_CONNECTION_SHIPPED = false;
|
|
50859
|
+
var QUARANTINE_RETRY_MS = 6e4;
|
|
50859
50860
|
function processAlive(pid) {
|
|
50860
50861
|
if (!Number.isInteger(pid) || pid <= 0) return false;
|
|
50861
50862
|
try {
|
|
@@ -51001,7 +51002,7 @@ async function runAgent(options) {
|
|
|
51001
51002
|
try {
|
|
51002
51003
|
while (!options.signal.aborted) {
|
|
51003
51004
|
computerName = await readComputerName();
|
|
51004
|
-
let ready;
|
|
51005
|
+
let ready, wait = delay4;
|
|
51005
51006
|
const readyPromise = new Promise((resolve) => {
|
|
51006
51007
|
ready = resolve;
|
|
51007
51008
|
});
|
|
@@ -51090,6 +51091,8 @@ async function runAgent(options) {
|
|
|
51090
51091
|
ready();
|
|
51091
51092
|
monitor(() => options.monitor?.connectionFailed(error62));
|
|
51092
51093
|
if (error62 instanceof RelayClientError && ["RELAY_CONNECT_FAILED", "RELAY_CONNECT_CLOSED", "RELAY_CONNECT_TIMEOUT", "RELAY_HANDSHAKE_TIMEOUT"].includes(error62.code)) {
|
|
51094
|
+
} else if (error62 instanceof RelayClientError && error62.code === "RELAY_DEVICE_QUARANTINED") {
|
|
51095
|
+
wait = Math.max(delay4, QUARANTINE_RETRY_MS);
|
|
51093
51096
|
} else throw error62;
|
|
51094
51097
|
} finally {
|
|
51095
51098
|
connectivity?.close();
|
|
@@ -51107,7 +51110,7 @@ async function runAgent(options) {
|
|
|
51107
51110
|
await bridge.disconnected();
|
|
51108
51111
|
connection = null;
|
|
51109
51112
|
}
|
|
51110
|
-
if (!options.signal.aborted) await aborted2(options.signal,
|
|
51113
|
+
if (!options.signal.aborted) await aborted2(options.signal, wait);
|
|
51111
51114
|
}
|
|
51112
51115
|
} finally {
|
|
51113
51116
|
try {
|
package/runtime/manifest.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.3.
|
|
2
|
+
"version": "0.3.50",
|
|
3
3
|
"experimental": true,
|
|
4
4
|
"platform": "linux",
|
|
5
5
|
"arch": "x64",
|
|
6
6
|
"node": "v22.23.3",
|
|
7
|
-
"source": "
|
|
8
|
-
"sourceTreeSha256": "
|
|
7
|
+
"source": "846ebe4409172d55c88aa8611a90b1098bbe36b0",
|
|
8
|
+
"sourceTreeSha256": "2615d6cb62edfb9bd628788a813147cecbf898a7062e4b3e08f3d0623bbe4343",
|
|
9
9
|
"qualification": "unqualified",
|
|
10
10
|
"lifecycleVersion": 1,
|
|
11
11
|
"packaging": "npm platform package runtime",
|
|
12
12
|
"files": {
|
|
13
13
|
"NODE-LICENSE.txt": "c738ae413cf561f174e34f6961f8ca458aae2369a73640dda6234c629b98bcc4",
|
|
14
|
-
"agent.mjs": "
|
|
14
|
+
"agent.mjs": "49ce9d10658ebc80227eeeedc0fd21faa931f390ccbd39171892658276dfb429",
|
|
15
15
|
"job-host.mjs": "54ab42fa00a53dfd4df6c93fd9e6692d5e03a0870aba8bf501f398905694b72d",
|
|
16
16
|
"lifecycle.mjs": "ebed6bac75115ef1df34aff9fef211c9f710a524b2b614115b6bc80ef57b464b",
|
|
17
17
|
"node": "fde6a4bf8d0562f7751d1a2d6cb9b417c4cfe107bbcb0aa3e9a24e125e348f48",
|