mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-12 00:46:08 +00:00
13 lines
461 B
TypeScript
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,
|
|
};
|
|
}
|