continue-custom/core/protocol/ideWebview.ts
Nate Sesti 10639a20f2
Final release cleanup: remove CLI banner & Generate Rule, explicit onboarding/config models, deprecation link (#12634)
* chore: remove CLI-install banner and Generate Rule feature, use explicit onboarding models

- Remove CliInstallBanner component, test, and dismissal localStorage key
- Remove "Generate Rule" button, GenerateRuleDialog, command, and protocol message
- Convert onboarding and new-assistant template off Hub `uses:` slugs to explicit model definitions
- Update deprecation banner export link to https://continue.dev/export

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: bump vscode extension version to 1.3.40

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 09:09:30 -07:00

82 lines
2.7 KiB
TypeScript

import { ToIdeFromWebviewOrCoreProtocol } from "./ide";
import { ToWebviewFromIdeOrCoreProtocol } from "./webview";
import {
AcceptOrRejectDiffPayload,
AddToChatPayload,
ApplyState,
ApplyToFilePayload,
HighlightedCodePayload,
MessageContent,
RangeInFileWithContents,
SetCodeToEditPayload,
ShowFilePayload,
} from "../";
export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & {
openUrl: [string, void];
applyToFile: [ApplyToFilePayload, void];
overwriteFile: [{ filepath: string; prevFileContent: string | null }, void];
showTutorial: [undefined, void];
showFile: [ShowFilePayload, void];
toggleDevTools: [undefined, void];
reloadWindow: [undefined, void];
focusEditor: [undefined, void];
toggleFullScreen: [{ newWindow?: boolean } | undefined, void];
insertAtCursor: [{ text: string }, void];
copyText: [{ text: string }, void];
"jetbrains/isOSREnabled": [undefined, boolean];
"jetbrains/onLoad": [
undefined,
{
windowId: string;
serverUrl: string;
workspacePaths: string[];
vscMachineId: string;
vscMediaUrl: string;
},
];
"jetbrains/getColors": [undefined, Record<string, string | null | undefined>];
"vscode/openMoveRightMarkdown": [undefined, void];
acceptDiff: [AcceptOrRejectDiffPayload, void];
rejectDiff: [AcceptOrRejectDiffPayload, void];
"edit/sendPrompt": [
{
prompt: MessageContent;
range: RangeInFileWithContents;
},
string | undefined,
];
"edit/addCurrentSelection": [undefined, void];
"edit/clearDecorations": [undefined, void];
"session/share": [{ sessionId: string }, void];
};
export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & {
setInactive: [undefined, void];
newSessionWithPrompt: [{ prompt: string }, void];
userInput: [{ input: string }, void];
focusContinueInput: [undefined, void];
focusContinueInputWithoutClear: [undefined, void];
focusContinueInputWithNewSession: [undefined, void];
highlightedCode: [HighlightedCodePayload, void];
setCodeToEdit: [SetCodeToEditPayload, void];
navigateTo: [{ path: string; toggle?: boolean }, void];
addModel: [undefined, void];
focusContinueSessionId: [{ sessionId: string | undefined }, void];
newSession: [undefined, void];
setTheme: [{ theme: any }, void];
setColors: [{ [key: string]: string }, void];
"jetbrains/editorInsetRefresh": [undefined, void];
"jetbrains/isOSREnabled": [boolean, void];
setupApiKey: [undefined, void];
setupLocalConfig: [undefined, void];
incrementFtc: [undefined, void];
openOnboardingCard: [undefined, void];
applyCodeFromChat: [undefined, void];
updateApplyState: [ApplyState, void];
exitEditMode: [undefined, void];
focusEdit: [undefined, void];
addToChat: [AddToChatPayload, void];
};