build: restore dev type compatibility

This commit is contained in:
ejclaw
2026-04-20 09:06:38 +09:00
parent be7383d68c
commit 34a51c95b2
2 changed files with 11 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ export interface HostEvidenceRequest {
export interface HostEvidenceResult {
ok: boolean;
action: HostEvidenceAction;
action: HostEvidenceAction | 'ejclaw_room_runtime';
command: string;
stdout: string;
stderr: string;

View File

@@ -158,6 +158,13 @@ export interface RegisteredGroup {
workDir?: string; // Working directory for the agent (defaults to group folder)
}
export type MessageSourceKind =
| 'human'
| 'bot'
| 'trusted_external_bot'
| 'ipc_injected_human'
| 'ipc_injected_bot';
export interface NewMessage {
id: string;
chat_jid: string;
@@ -168,6 +175,7 @@ export interface NewMessage {
seq?: number;
is_from_me?: boolean;
is_bot_message?: boolean;
message_source_kind?: MessageSourceKind;
}
export interface ScheduledTask {
@@ -227,8 +235,9 @@ export interface Channel {
disconnect(): Promise<void>;
// Optional: typing indicator. Channels that support it implement it.
setTyping?(jid: string, isTyping: boolean): Promise<void>;
// Optional: edit/delete messages (used by status dashboard).
// Optional: edit/delete messages (used by status dashboard and tracked progress cleanup).
editMessage?(jid: string, messageId: string, text: string): Promise<void>;
deleteMessage?(jid: string, messageId: string): Promise<void>;
sendAndTrack?(jid: string, text: string): Promise<string | null>;
// Optional: sync group/chat names from the platform.
syncGroups?(force: boolean): Promise<void>;