Elffuss BraidHub

kikocis/continue public

main · 1.5 KiBRawPermalink
1import { ConfigResult } from "@continuedev/config-yaml";
2import { SerializedOrgWithProfiles } from "../config/ProfileLifecycleManager.js";
3import { ControlPlaneSessionInfo } from "../control-plane/AuthTypes.js";
4import type {
5 BrowserSerializedContinueConfig,
6 ContextItemWithId,
7 ContextProviderName,
8 IndexingProgressUpdate,
9 IndexingStatus,
10} from "../index.js";
11
12export type ToWebviewFromIdeOrCoreProtocol = {
13 configUpdate: [
14 {
15 result: ConfigResult<BrowserSerializedContinueConfig>;
16 profileId: string | null;
17 organizations: SerializedOrgWithProfiles[];
18 selectedOrgId: string | null;
19 },
20 void,
21 ];
22 getDefaultModelTitle: [undefined, string | undefined];
23 indexProgress: [IndexingProgressUpdate, void]; // Codebase
24 "indexing/statusUpdate": [IndexingStatus, void]; // Docs, etc.
25 refreshSubmenuItems: [
26 {
27 providers: "all" | "dependsOnIndexing" | ContextProviderName[];
28 },
29 void,
30 ];
31 didCloseFiles: [{ uris: string[] }, void];
32 isContinueInputFocused: [undefined, boolean];
33 addContextItem: [
34 {
35 historyIndex: number;
36 item: ContextItemWithId;
37 },
38 void,
39 ];
40 setTTSActive: [boolean, void];
41 getWebviewHistoryLength: [undefined, number];
42 getCurrentSessionId: [undefined, string];
43 "jetbrains/setColors": [Record<string, string | null | undefined>, void];
44 sessionUpdate: [{ sessionInfo: ControlPlaneSessionInfo | undefined }, void];
45 toolCallPartialOutput: [{ toolCallId: string; contextItems: any[] }, void];
46 freeTrialExceeded: [undefined, void];
47};