build: restore dev type compatibility
This commit is contained in:
@@ -19,7 +19,7 @@ export interface HostEvidenceRequest {
|
|||||||
|
|
||||||
export interface HostEvidenceResult {
|
export interface HostEvidenceResult {
|
||||||
ok: boolean;
|
ok: boolean;
|
||||||
action: HostEvidenceAction;
|
action: HostEvidenceAction | 'ejclaw_room_runtime';
|
||||||
command: string;
|
command: string;
|
||||||
stdout: string;
|
stdout: string;
|
||||||
stderr: string;
|
stderr: string;
|
||||||
|
|||||||
11
src/types.ts
11
src/types.ts
@@ -158,6 +158,13 @@ export interface RegisteredGroup {
|
|||||||
workDir?: string; // Working directory for the agent (defaults to group folder)
|
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 {
|
export interface NewMessage {
|
||||||
id: string;
|
id: string;
|
||||||
chat_jid: string;
|
chat_jid: string;
|
||||||
@@ -168,6 +175,7 @@ export interface NewMessage {
|
|||||||
seq?: number;
|
seq?: number;
|
||||||
is_from_me?: boolean;
|
is_from_me?: boolean;
|
||||||
is_bot_message?: boolean;
|
is_bot_message?: boolean;
|
||||||
|
message_source_kind?: MessageSourceKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ScheduledTask {
|
export interface ScheduledTask {
|
||||||
@@ -227,8 +235,9 @@ export interface Channel {
|
|||||||
disconnect(): Promise<void>;
|
disconnect(): Promise<void>;
|
||||||
// Optional: typing indicator. Channels that support it implement it.
|
// Optional: typing indicator. Channels that support it implement it.
|
||||||
setTyping?(jid: string, isTyping: boolean): Promise<void>;
|
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>;
|
editMessage?(jid: string, messageId: string, text: string): Promise<void>;
|
||||||
|
deleteMessage?(jid: string, messageId: string): Promise<void>;
|
||||||
sendAndTrack?(jid: string, text: string): Promise<string | null>;
|
sendAndTrack?(jid: string, text: string): Promise<string | null>;
|
||||||
// Optional: sync group/chat names from the platform.
|
// Optional: sync group/chat names from the platform.
|
||||||
syncGroups?(force: boolean): Promise<void>;
|
syncGroups?(force: boolean): Promise<void>;
|
||||||
|
|||||||
Reference in New Issue
Block a user