test: extract shared e2e helpers for trigger handling and skills

This commit is contained in:
Peter Steinberger
2026-02-18 03:37:53 +00:00
parent b099171db5
commit d1ab852972
8 changed files with 49 additions and 78 deletions

View File

@@ -135,6 +135,18 @@ export function makeCfg(home: string): OpenClawConfig {
} as OpenClawConfig;
}
export async function loadGetReplyFromConfig() {
return (await import("./reply.js")).getReplyFromConfig;
}
export function requireSessionStorePath(cfg: { session?: { store?: string } }): string {
const storePath = cfg.session?.store;
if (!storePath) {
throw new Error("expected session store path");
}
return storePath;
}
export function makeWhatsAppElevatedCfg(
home: string,
opts?: { elevatedEnabled?: boolean; requireMentionInGroups?: boolean },