mirror of https://github.com/openclaw/openclaw.git
* 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>
|
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| mocks | ||
| scripts | ||
| appcast.test.ts | ||
| architecture-smells.test.ts | ||
| channel-outbounds.ts | ||
| cli-json-stdout.e2e.test.ts | ||
| extension-plugin-sdk-boundary.test.ts | ||
| gateway.multi.e2e.test.ts | ||
| git-hooks-pre-commit.test.ts | ||
| global-setup.ts | ||
| non-isolated-runner.ts | ||
| official-channel-catalog.test.ts | ||
| openclaw-launcher.e2e.test.ts | ||
| openclaw-npm-postpublish-verify.test.ts | ||
| openclaw-npm-release-check.test.ts | ||
| openshell-sandbox.e2e.test.ts | ||
| plugin-extension-import-boundary.test.ts | ||
| plugin-npm-release.test.ts | ||
| release-check.test.ts | ||
| setup.ts | ||
| test-env.ts | ||
| test-runner-manifest.test.ts | ||
| ui.presenter-next-run.test.ts | ||
| vitest-extensions-config.test.ts | ||
| vitest-performance-config.test.ts | ||
| vitest-scoped-config.test.ts | ||
| vitest-unit-config.test.ts | ||
| vitest-unit-paths.test.ts | ||
| web-search-provider-boundary.test.ts | ||