@elizaos/plugin-cron 2.0.0-alpha.7 → 2.0.0-alpha.8
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.
|
@@ -459,9 +459,10 @@ var heartbeatWorker = {
|
|
|
459
459
|
async execute(runtime, _options, _task) {
|
|
460
460
|
const config = resolveHeartbeatConfig(runtime);
|
|
461
461
|
if (!config.enabled) {
|
|
462
|
-
return;
|
|
462
|
+
return void 0;
|
|
463
463
|
}
|
|
464
464
|
await runHeartbeatTick(runtime, config);
|
|
465
|
+
return void 0;
|
|
465
466
|
}
|
|
466
467
|
};
|
|
467
468
|
async function startHeartbeat(runtime) {
|
|
@@ -473,7 +474,8 @@ async function startHeartbeat(runtime) {
|
|
|
473
474
|
runtime.registerTaskWorker(heartbeatWorker);
|
|
474
475
|
const existingTasks = await runtime.getTasks({
|
|
475
476
|
roomId: runtime.agentId,
|
|
476
|
-
tags: ["heartbeat", "queue", "repeat"]
|
|
477
|
+
tags: ["heartbeat", "queue", "repeat"],
|
|
478
|
+
agentIds: [runtime.agentId]
|
|
477
479
|
});
|
|
478
480
|
const alreadyExists = existingTasks.some(
|
|
479
481
|
(t) => t.name === HEARTBEAT_WORKER_NAME
|
package/dist/index.js
CHANGED
package/dist/otto/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-cron",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.8",
|
|
4
4
|
"description": "Cron scheduling plugin for ElizaOS agents - schedule recurring or one-time jobs that execute actions, run prompts, or trigger events",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"typecheck": "tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@elizaos/core": "2.0.0-alpha.
|
|
31
|
-
"@elizaos/plugin-cli": "2.0.0-alpha.
|
|
30
|
+
"@elizaos/core": "2.0.0-alpha.114",
|
|
31
|
+
"@elizaos/plugin-cli": "2.0.0-alpha.114",
|
|
32
32
|
"croner": "9.0.0",
|
|
33
33
|
"uuid": "11.0.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@elizaos/core": "2.0.0-alpha.
|
|
36
|
+
"@elizaos/core": "2.0.0-alpha.114"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "22.10.9",
|