continue-custom/core/protocol/webview.ts
2024-10-16 13:58:04 +07:00

19 lines
603 B
TypeScript

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