Files
openclaw/src/plugins/runtime/runtime-events.ts
2026-06-04 19:54:07 -04:00

13 lines
461 B
TypeScript

// Runtime event helpers bridge core agent events into plugin runtime hooks.
import { onAgentEvent } from "../../infra/agent-events.js";
import { onSessionTranscriptUpdate } from "../../sessions/transcript-events.js";
import type { PluginRuntime } from "./types.js";
/** Creates the plugin runtime event subscription facade. */
export function createRuntimeEvents(): PluginRuntime["events"] {
return {
onAgentEvent,
onSessionTranscriptUpdate,
};
}