Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
import type { ConversationDocument } from "../conversation/index.js";
import type { StoredSessionEvent } from "../kernel/contracts.js";
export interface RuntimeCustomEntryInput {
readonly entryId: string;
readonly customType: string;
readonly data?: unknown;
readonly timestamp: string;
}
/** 产品状态与通用 Conversation Document 之间的 Session-local 协作边界。 */
export interface RuntimeDocumentParticipantContext {
appendCustomEntry(entry: RuntimeCustomEntryInput): Promise<void>;
}
export interface RuntimeDocumentParticipant {
initialize(document: ConversationDocument, context: RuntimeDocumentParticipantContext): void | Promise<void>;
onDocumentChanged(document: ConversationDocument): void | Promise<void>;
onSessionEvent?(event: StoredSessionEvent): void | Promise<void>;
dispose?(): void | Promise<void>;
}