@parall/daemon 1.62.0 → 1.63.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 +11 -11
- package/bundle/parall-browser-pod.js +78 -18
- package/bundle/parall-claude-agent.js +271 -181
- package/bundle/parall-codex-agent.js +125 -45
- package/bundle/parall-daemon.js +2302 -1411
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +75 -2
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -2
- package/dist/diagnostics.d.ts +127 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +358 -0
- package/dist/updater.d.ts +14 -0
- package/dist/updater.d.ts.map +1 -1
- package/dist/updater.js +19 -15
- package/package.json +6 -6
package/dist/updater.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type { GatewayLogger } from '@parall/agent-core';
|
|
2
2
|
import type { UpdateOutcome, UpdateReason } from './daemon-telemetry.js';
|
|
3
3
|
import { type LocalManifest } from './updater-manifest.js';
|
|
4
|
+
export interface UpdateState {
|
|
5
|
+
confirmed_version?: string;
|
|
6
|
+
confirmed_at?: string;
|
|
7
|
+
previous_version?: string;
|
|
8
|
+
pending_version?: string;
|
|
9
|
+
pending_at?: string;
|
|
10
|
+
boot_count?: number;
|
|
11
|
+
rollback_from?: string;
|
|
12
|
+
rollback_at?: string;
|
|
13
|
+
}
|
|
4
14
|
export declare class DaemonUpdater {
|
|
5
15
|
private readonly bundleDir;
|
|
6
16
|
private readonly cdnBaseUrl;
|
|
@@ -73,4 +83,8 @@ export declare class DaemonUpdater {
|
|
|
73
83
|
private downloadFile;
|
|
74
84
|
private cleanDir;
|
|
75
85
|
}
|
|
86
|
+
/** `<bundleDir>/current/manifest.json`, or null when absent or unreadable. */
|
|
87
|
+
export declare function loadLocalManifest(bundleDir: string): LocalManifest | null;
|
|
88
|
+
/** `<bundleDir>/update-state.json`, or null when absent or unreadable. */
|
|
89
|
+
export declare function loadUpdateState(bundleDir: string): UpdateState | null;
|
|
76
90
|
//# sourceMappingURL=updater.d.ts.map
|
package/dist/updater.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updater.d.ts","sourceRoot":"","sources":["../src/updater.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"updater.d.ts","sourceRoot":"","sources":["../src/updater.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,uBAAuB,CAAC;AAgB/B,MAAM,WAAW,WAAW;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,aAAa;IAMtB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,cAAc;IARjC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,aAAa,CAA+B;IAC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A6CpB,OAAO,CAAC,QAAQ;CAKjB;AAID,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAEzE;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAErE"}
|
package/dist/updater.js
CHANGED
|
@@ -398,23 +398,10 @@ export class DaemonUpdater {
|
|
|
398
398
|
}
|
|
399
399
|
// --- Manifest & State I/O ---
|
|
400
400
|
loadLocalManifest() {
|
|
401
|
-
|
|
402
|
-
const manifestPath = path.join(currentDir, 'manifest.json');
|
|
403
|
-
try {
|
|
404
|
-
return JSON.parse(fs.readFileSync(manifestPath, 'utf-8'));
|
|
405
|
-
}
|
|
406
|
-
catch {
|
|
407
|
-
return null;
|
|
408
|
-
}
|
|
401
|
+
return loadLocalManifest(this.bundleDir);
|
|
409
402
|
}
|
|
410
403
|
loadUpdateState() {
|
|
411
|
-
|
|
412
|
-
try {
|
|
413
|
-
return JSON.parse(fs.readFileSync(statePath, 'utf-8'));
|
|
414
|
-
}
|
|
415
|
-
catch {
|
|
416
|
-
return null;
|
|
417
|
-
}
|
|
404
|
+
return loadUpdateState(this.bundleDir);
|
|
418
405
|
}
|
|
419
406
|
saveUpdateState(state) {
|
|
420
407
|
const statePath = path.join(this.bundleDir, 'update-state.json');
|
|
@@ -558,3 +545,20 @@ export class DaemonUpdater {
|
|
|
558
545
|
catch { }
|
|
559
546
|
}
|
|
560
547
|
}
|
|
548
|
+
// --- Bundle-dir layout readers (shared with the diagnostics collector) ---
|
|
549
|
+
/** `<bundleDir>/current/manifest.json`, or null when absent or unreadable. */
|
|
550
|
+
export function loadLocalManifest(bundleDir) {
|
|
551
|
+
return readJsonFile(path.join(bundleDir, 'current', 'manifest.json'));
|
|
552
|
+
}
|
|
553
|
+
/** `<bundleDir>/update-state.json`, or null when absent or unreadable. */
|
|
554
|
+
export function loadUpdateState(bundleDir) {
|
|
555
|
+
return readJsonFile(path.join(bundleDir, 'update-state.json'));
|
|
556
|
+
}
|
|
557
|
+
function readJsonFile(file) {
|
|
558
|
+
try {
|
|
559
|
+
return JSON.parse(fs.readFileSync(file, 'utf-8'));
|
|
560
|
+
}
|
|
561
|
+
catch {
|
|
562
|
+
return null;
|
|
563
|
+
}
|
|
564
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.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
|
|
38
|
-
"@parall/sdk": "1.
|
|
39
|
-
"@parall/
|
|
40
|
-
"@parall/
|
|
41
|
-
"@parall/openclaw-agent": "1.
|
|
37
|
+
"@parall/claude-agent": "1.63.0",
|
|
38
|
+
"@parall/sdk": "1.63.0",
|
|
39
|
+
"@parall/codex-agent": "1.63.0",
|
|
40
|
+
"@parall/agent-core": "1.63.0",
|
|
41
|
+
"@parall/openclaw-agent": "1.63.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|