Files
openclaw/src/test-utils/internal-hook-event-payload.ts
2026-02-18 17:01:22 +00:00

16 lines
258 B
TypeScript

export function createInternalHookEventPayload(
type: string,
action: string,
sessionKey: string,
context: Record<string, unknown>,
) {
return {
type,
action,
sessionKey,
context,
timestamp: new Date(),
messages: [],
};
}