feat: edit existing messages for workflow run updates

This commit is contained in:
RhenCloud 2026-08-03 09:43:36 +08:00
parent 4b3f5189a8
commit 78f0a4e28a
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
8 changed files with 187 additions and 16 deletions

View file

@ -12,4 +12,9 @@ export interface SendResult {
export interface PlatformDriver {
readonly id: string;
send(message: NeutralMessage, target: RouteTarget, env: Env): Promise<SendResult>;
/**
* Edit an already-sent message in place (e.g. workflow run progress updates).
* Must be implemented by drivers that support message updates.
*/
edit(message: NeutralMessage, target: RouteTarget, env: Env, messageId: string): Promise<SendResult>;
}