export type OpenWikiCommand = "chat" | "init" | "update";export type OpenWikiOutputMode = "local-wiki" | "repository"; export type OpenWikiRunResult = { command: OpenWikiCommand; model: string; skipped?: boolean;}; export type OpenWikiRunEvent = | { source?: "main" | "subgraph"; type: "text"; text: string; } | { type: "tool_start"; call: string; id: string; input: unknown; name: string; } | { type: "tool_end"; id: string; name: string; status: "error" | "finished"; } | { type: "debug"; message: string; }; export type OpenWikiRunOptions = { debug?: boolean; isFollowup?: boolean; language?: string | null; modelId?: string | null; onEvent?: (event: OpenWikiRunEvent) => void; outputMode?: OpenWikiOutputMode; threadId?: string; userMessage?: string | null; telemetryFile?: string;}; export type UpdateRunStatus = "complete" | "interrupted"; export type UpdateMetadata = { updatedAt: string; command: OpenWikiCommand; gitHead?: string; model: string; status?: UpdateRunStatus; language?: string;}; export type RunContext = { lastUpdate: UpdateMetadata | null; gitSummary: string; language?: string; wikiGoal?: string;};
export type OpenWikiCommand = "chat" | "init" | "update";
export type OpenWikiOutputMode = "local-wiki" | "repository";
export type OpenWikiRunResult = {
command: OpenWikiCommand;
model: string;
skipped?: boolean;
};
export type OpenWikiRunEvent =
| {
source?: "main" | "subgraph";
type: "text";
text: string;
}
| {
type: "tool_start";
call: string;
id: string;
input: unknown;
name: string;
}
| {
type: "tool_end";
id: string;
name: string;
status: "error" | "finished";
}
| {
type: "debug";
message: string;
};
export type OpenWikiRunOptions = {
debug?: boolean;
isFollowup?: boolean;
language?: string | null;
modelId?: string | null;
onEvent?: (event: OpenWikiRunEvent) => void;
outputMode?: OpenWikiOutputMode;
threadId?: string;
userMessage?: string | null;
telemetryFile?: string;
};
export type UpdateRunStatus = "complete" | "interrupted";
export type UpdateMetadata = {
updatedAt: string;
command: OpenWikiCommand;
gitHead?: string;
model: string;
status?: UpdateRunStatus;
language?: string;
};
export type RunContext = {
lastUpdate: UpdateMetadata | null;
gitSummary: string;
language?: string;
wikiGoal?: string;
};