@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
@@ -17,7 +17,7 @@ import {
17
17
  resolveHeartbeatConfig,
18
18
  startHeartbeat,
19
19
  wakeHeartbeatNow
20
- } from "./chunk-VASU2YXL.js";
20
+ } from "./chunk-ZY3PG5VX.js";
21
21
  import "./chunk-MLKGABMK.js";
22
22
 
23
23
  // src/constants.ts
@@ -20,7 +20,7 @@ import {
20
20
  resolveCronStorePath,
21
21
  saveCronStore,
22
22
  validateScheduleTimestamp
23
- } from "../chunk-VASU2YXL.js";
23
+ } from "../chunk-ZY3PG5VX.js";
24
24
  import "../chunk-MLKGABMK.js";
25
25
  export {
26
26
  appendCronRunLog,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-cron",
3
- "version": "2.0.0-alpha.7",
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.3",
31
- "@elizaos/plugin-cli": "2.0.0-alpha.3",
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.3"
36
+ "@elizaos/core": "2.0.0-alpha.114"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "22.10.9",