Files
oh-my-opencode/dist/hooks/keyword-detector/detector.d.ts
T
2026-03-14 04:56:50 +00:00

12 lines
496 B
TypeScript

export interface DetectedKeyword {
type: "ultrawork" | "search" | "analyze";
message: string;
}
export declare function removeCodeBlocks(text: string): string;
export declare function detectKeywords(text: string, agentName?: string, modelID?: string): string[];
export declare function detectKeywordsWithType(text: string, agentName?: string, modelID?: string): DetectedKeyword[];
export declare function extractPromptText(parts: Array<{
type: string;
text?: string;
}>): string;