continue-custom/core/protocol/webview.ts
2024-11-17 02:25:32 -08:00

26 lines
774 B
TypeScript

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