Expose conversation/target session lookup for cron result mirroring.

Schedulers can resolve the live Harness session for a bot+target or conversationKey without changing proactive send() semantics.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-06 12:45:36 +08:00
parent 356538ac18
commit 01924e5f7e
8 changed files with 307 additions and 0 deletions

View file

@ -170,6 +170,7 @@ export async function createProductionController(ctx, config = {}, internals = {
}).start();
return {
controller,
stateFor,
deliveryAdapter: createDeliveryAdapter({
channel: 'whatsapp', workspaces, coreController, stateFor,
}),