Files
oh-my-opencode/src/openclaw/types.ts
T
2026-04-07 22:52:09 +09:00

57 lines
1.0 KiB
TypeScript

import type {
OpenClawConfig,
OpenClawGateway,
OpenClawHook,
OpenClawReplyListenerConfig,
} from "../config/schema/openclaw"
export type {
OpenClawConfig,
OpenClawGateway,
OpenClawHook,
OpenClawReplyListenerConfig,
}
export interface OpenClawContext {
sessionId?: string
projectPath?: string
projectName?: string
tmuxSession?: string
prompt?: string
contextSummary?: string
reasoning?: string
question?: string
tmuxTail?: string
replyChannel?: string
replyTarget?: string
replyThread?: string
[key: string]: string | undefined
}
export interface OpenClawPayload {
event: string
instruction: string
text: string
timestamp: string
sessionId?: string
projectPath?: string
projectName?: string
tmuxSession?: string
tmuxTail?: string
channel?: string
to?: string
threadId?: string
context: OpenClawContext
}
export interface WakeResult {
gateway: string
success: boolean
error?: string
statusCode?: number
messageId?: string
platform?: string
channelId?: string
threadId?: string
}