continue-custom/core/protocol/passThrough.ts
Nate Sesti 4f8e907d05
Improved code linking (#1500)
* allow setting apiBase for bedrock provider

* ⚡️ better linking

* ✨ new prompt file action

* ⚡️ strip <COMPLETION> from GPT-4 completion
2024-06-16 19:54:32 -07:00

47 lines
1.3 KiB
TypeScript

import {
ToCoreFromWebviewProtocol,
ToWebviewFromCoreProtocol,
} from "./coreWebview.js";
// Message types to pass through from webview to core
export const WEBVIEW_TO_CORE_PASS_THROUGH: (keyof ToCoreFromWebviewProtocol)[] =
[
"update/modelChange",
"ping",
"abort",
"history/list",
"history/delete",
"history/load",
"history/save",
"devdata/log",
"config/addOpenAiKey",
"config/addModel",
"config/newPromptFile",
"config/ideSettingsUpdate",
"config/getBrowserSerialized",
"config/deleteModel",
"config/reload",
"context/getContextItems",
"context/loadSubmenuItems",
"context/addDocs",
"autocomplete/complete",
"autocomplete/cancel",
"autocomplete/accept",
"command/run",
"llm/complete",
"llm/streamComplete",
"llm/streamChat",
"llm/listModels",
"streamDiffLines",
"stats/getTokensPerDay",
"stats/getTokensPerModel",
"index/setPaused",
"index/forceReIndex",
"index/indexingProgressBarInitialized",
"completeOnboarding",
"addAutocompleteModel",
];
// Message types to pass through from core to webview
export const CORE_TO_WEBVIEW_PASS_THROUGH: (keyof ToWebviewFromCoreProtocol)[] =
["configUpdate", "getDefaultModelTitle", "indexProgress", "addContextItem"];