fix: use work items as dashboard outbound SSOT

This commit is contained in:
ejclaw
2026-04-29 01:23:29 +09:00
parent 9655501bdf
commit 6b2ef42374
14 changed files with 523 additions and 81 deletions

View File

@@ -42,6 +42,12 @@ export interface SendMessageOptions {
attachmentBaseDirs?: string[];
}
export interface SendMessageResult {
primaryMessageId: string | null;
messageIds: string[];
visible: boolean;
}
export type PairedRoomRole = 'owner' | 'reviewer' | 'arbiter';
export type PairedTaskStatus =
@@ -255,7 +261,7 @@ export interface Channel {
jid: string,
text: string,
options?: SendMessageOptions,
): Promise<void>;
): Promise<SendMessageResult | void>;
isConnected(): boolean;
ownsJid(jid: string): boolean;
// Optional: whether a stored inbound message was authored by this channel's own bot/user.