mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-26 16:41:49 +00:00
refactor: modularize plugin runtime and test hooks
This commit is contained in:
10
src/plugins/runtime/runtime-events.ts
Normal file
10
src/plugins/runtime/runtime-events.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { onAgentEvent } from "../../infra/agent-events.js";
|
||||
import { onSessionTranscriptUpdate } from "../../sessions/transcript-events.js";
|
||||
import type { PluginRuntime } from "./types.js";
|
||||
|
||||
export function createRuntimeEvents(): PluginRuntime["events"] {
|
||||
return {
|
||||
onAgentEvent,
|
||||
onSessionTranscriptUpdate,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user