continue-custom/core/protocol/coreWebview.ts
2025-04-18 07:53:17 -07:00

21 lines
718 B
TypeScript

import { ToCoreFromIdeOrWebviewProtocol } from "./core.js";
import { ToWebviewFromIdeOrCoreProtocol } from "./webview.js";
export type ToCoreFromWebviewProtocol = ToCoreFromIdeOrWebviewProtocol & {
didChangeSelectedProfile: [{ id: string | null }, void];
didChangeSelectedOrg: [
{ id: string | null; profileId?: string | null },
void,
];
};
export type ToWebviewFromCoreProtocol = ToWebviewFromIdeOrCoreProtocol & {
didChangeAvailableProfiles: [
{ profiles: ProfileDescription[]; selectedProfileId: string | null },
void,
];
toolCallPartialOutput: [
{ toolCallId: string; contextItems: any[] },
void,
];
};
export type ToWebviewFromCoreProtocol = ToWebviewFromIdeOrCoreProtocol;