continue-custom/core/protocol/webview.ts
2024-11-06 15:41:33 -08:00

20 lines
661 B
TypeScript

import { ConfigValidationError } from "../config/validation.js";
import type { ContextItemWithId, IndexingProgressUpdate } from "../index.js";
export type ToWebviewFromIdeOrCoreProtocol = {
configUpdate: [undefined, void];
configError: [ConfigValidationError[] | undefined, void];
getDefaultModelTitle: [undefined, string];
indexProgress: [IndexingProgressUpdate, void];
refreshSubmenuItems: [undefined, void];
isContinueInputFocused: [undefined, boolean];
addContextItem: [
{
historyIndex: number;
item: ContextItemWithId;
},
void,
];
setTTSActive: [boolean, void];
getWebviewHistoryLength: [undefined, number];
};