@parall/daemon 1.69.0 → 1.71.0
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/bundle/manifest.json +13 -13
- package/bundle/parall-browser-pod.js +137 -47
- package/bundle/parall-channel-exec.js +59 -34
- package/bundle/parall-claude-agent.js +160 -33
- package/bundle/parall-codex-agent.js +160 -33
- package/bundle/parall-daemon.js +285 -120
- package/dist/clip-runtime/clip-provider.d.ts +4 -0
- package/dist/clip-runtime/clip-provider.d.ts.map +1 -1
- package/dist/clip-runtime/clip-provider.js +16 -43
- package/dist/clip-runtime/connect-envelope.d.ts +22 -0
- package/dist/clip-runtime/connect-envelope.d.ts.map +1 -0
- package/dist/clip-runtime/connect-envelope.js +42 -0
- package/dist/clip-runtime/hub-client.d.ts.map +1 -1
- package/dist/clip-runtime/hub-client.js +1 -34
- package/dist/config.d.ts +11 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -0
- package/dist/daemon-main.d.ts.map +1 -1
- package/dist/daemon-main.js +11 -0
- package/dist/supervisor.d.ts +11 -0
- package/dist/supervisor.d.ts.map +1 -1
- package/dist/supervisor.js +59 -63
- package/dist/updater.d.ts +9 -0
- package/dist/updater.d.ts.map +1 -1
- package/dist/updater.js +18 -4
- package/package.json +6 -6
package/dist/updater.js
CHANGED
|
@@ -23,6 +23,7 @@ export class DaemonUpdater {
|
|
|
23
23
|
updating = false;
|
|
24
24
|
periodicTimer = null;
|
|
25
25
|
reportOutcome = null;
|
|
26
|
+
restartHandler = null;
|
|
26
27
|
constructor(bundleDir, cdnBaseUrl, log, signingEnabled) {
|
|
27
28
|
this.bundleDir = bundleDir;
|
|
28
29
|
this.cdnBaseUrl = cdnBaseUrl;
|
|
@@ -37,6 +38,15 @@ export class DaemonUpdater {
|
|
|
37
38
|
report(outcome, reason) {
|
|
38
39
|
this.reportOutcome?.(outcome, reason);
|
|
39
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Restart the daemon onto an update installed after boot (periodic check or
|
|
43
|
+
* WS push). Installed-but-not-running is not an update: the old process
|
|
44
|
+
* would keep its bugs, and a later push for the same version is skipped
|
|
45
|
+
* because the disk is already current.
|
|
46
|
+
*/
|
|
47
|
+
setRestartHandler(fn) {
|
|
48
|
+
this.restartHandler = fn;
|
|
49
|
+
}
|
|
40
50
|
/**
|
|
41
51
|
* Start periodic update checks. Call once after supervisor bootstrap.
|
|
42
52
|
*/
|
|
@@ -44,9 +54,7 @@ export class DaemonUpdater {
|
|
|
44
54
|
if (intervalMs <= 0 || this.periodicTimer)
|
|
45
55
|
return;
|
|
46
56
|
this.periodicTimer = setInterval(() => {
|
|
47
|
-
this.
|
|
48
|
-
this.log.warn(`periodic update check failed: ${String(err)}`);
|
|
49
|
-
});
|
|
57
|
+
void this.applyAndRestart();
|
|
50
58
|
}, intervalMs);
|
|
51
59
|
this.periodicTimer.unref?.();
|
|
52
60
|
}
|
|
@@ -84,7 +92,13 @@ export class DaemonUpdater {
|
|
|
84
92
|
const jitter = Math.random() * 180_000;
|
|
85
93
|
await new Promise((r) => setTimeout(r, jitter));
|
|
86
94
|
}
|
|
87
|
-
return this.
|
|
95
|
+
return this.applyAndRestart(targetVersion);
|
|
96
|
+
}
|
|
97
|
+
async applyAndRestart(targetVersion) {
|
|
98
|
+
const applied = await this.checkAndApply(targetVersion);
|
|
99
|
+
if (applied)
|
|
100
|
+
this.restartHandler?.();
|
|
101
|
+
return applied;
|
|
88
102
|
}
|
|
89
103
|
/**
|
|
90
104
|
* Check if we need to roll back from a failed update.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.71.0",
|
|
4
4
|
"description": "Parall local agent runtime — daemon supervisor + bridge runtimes, bundled as standalone JS files",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@opentelemetry/api": "^1.9.0",
|
|
35
35
|
"@pinixai/bb-browser-pro": "0.15.0",
|
|
36
36
|
"ws": "^8.18.0",
|
|
37
|
-
"@parall/agent-core": "1.
|
|
38
|
-
"@parall/
|
|
39
|
-
"@parall/
|
|
40
|
-
"@parall/
|
|
41
|
-
"@parall/openclaw-agent": "1.
|
|
37
|
+
"@parall/agent-core": "1.71.0",
|
|
38
|
+
"@parall/claude-agent": "1.71.0",
|
|
39
|
+
"@parall/codex-agent": "1.71.0",
|
|
40
|
+
"@parall/sdk": "1.71.0",
|
|
41
|
+
"@parall/openclaw-agent": "1.71.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|