@dotsetlabs/dotclaw 1.5.0 → 1.5.1
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dotclaw-agent-runner",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "dotclaw-agent-runner",
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@openrouter/sdk": "^0.3.0",
|
|
12
12
|
"cron-parser": "^5.0.0",
|
|
@@ -72,6 +72,8 @@ function isContainerInput(value: unknown): value is ContainerInput {
|
|
|
72
72
|
async function loop(): Promise<void> {
|
|
73
73
|
ensureDirs();
|
|
74
74
|
log('Daemon started');
|
|
75
|
+
const heartbeatIntervalMs = Math.max(1000, Math.min(POLL_MS, 10_000));
|
|
76
|
+
const heartbeatTimer = setInterval(writeHeartbeat, heartbeatIntervalMs);
|
|
75
77
|
while (true) {
|
|
76
78
|
// Write heartbeat at the start of each loop iteration
|
|
77
79
|
writeHeartbeat();
|
|
@@ -83,6 +85,8 @@ async function loop(): Promise<void> {
|
|
|
83
85
|
}
|
|
84
86
|
await new Promise(resolve => setTimeout(resolve, POLL_MS));
|
|
85
87
|
}
|
|
88
|
+
// Unreachable, but keep for clarity if loop ever exits
|
|
89
|
+
clearInterval(heartbeatTimer);
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
loop().catch(err => {
|