openclaw/test/helpers
M1a0 7847e67f8a
plugin-runtime: expose runHeartbeatOnce in system API (#40299)
* plugin-runtime: expose runHeartbeatOnce in system API

Plugins that enqueue system events and need the agent to deliver
responses to the originating channel currently have no way to
override the default `heartbeat.target: "none"` behaviour.

Expose `runHeartbeatOnce` in the plugin runtime `system` namespace
so plugins can trigger a single heartbeat cycle with an explicit
`heartbeat: { target: "last" }` override — the same pattern the
cron service already uses (see #28508).

Changes:
- Add `RunHeartbeatOnceOptions` type and `runHeartbeatOnce` to
  `PluginRuntimeCore.system` (types-core.ts)
- Wire the function through a thin wrapper in runtime-system.ts
- Update the test-utils plugin-runtime mock

Made-with: Cursor

* feat(plugins): expose runHeartbeatOnce in system API (#40299) (thanks @loveyana)

---------

Co-authored-by: George Zhang <georgezhangtj97@gmail.com>
2026-03-25 10:47:01 -07:00
..
extensions plugin-runtime: expose runHeartbeatOnce in system API (#40299) 2026-03-25 10:47:01 -07:00
auth-wizard.ts refactor: move provider auth-choice helpers into plugins 2026-03-16 22:40:33 -07:00
captured-io.ts refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
envelope-timestamp.ts
fast-short-timeouts.ts test: harden vitest no-isolate coverage 2026-03-22 10:48:21 -07:00
gateway-e2e-harness.ts refactor: unify gateway handshake timeout wiring 2026-03-24 22:53:55 -07:00
http-test-server.ts refactor(test): dedupe shared test helpers 2026-03-21 23:07:51 +00:00
import-fresh.ts fix(runtime): duplicate messages, share singleton state across bundled chunks (#43683) 2026-03-12 14:59:27 -04:00
memory-tool-manager-mock.ts perf: lazy-load memory runtime surfaces 2026-03-22 22:06:45 +00:00
mock-incoming-request.ts
normalize-text.ts
pairing-reply.ts refactor: align pairing replies, daemon hints, and feishu mention policy 2026-03-25 04:22:53 -07:00
paths.ts
pattern-file.ts refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
poll.ts
temp-home.ts test: harden threaded shared-worker suites 2026-03-24 08:37:00 +00:00
wizard-prompter.ts test(wizard): share onboarding prompter scaffold 2026-02-22 07:44:57 +00:00