* feat: /title slash command * fix: /title slash command should be able to be submitted with text * test: add tests for last commit's changes * fix: EOF in action.yml * feat: list remote sessions in cn ls and /resume * feat: load more sessions and make them scrollable * chore: format * improv: debug script builds automatically for cli * feat: load remote session * fix: wrap entrypoint in function so it doesn't run at import-time * feat: /diff and /apply slash commands for cn remote * feat: full screen diff viewer * feat: status message for /apply slash command * Update extensions/cli/src/ui/UserInput.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * fix: remove console.logs * Potential fix for code scanning alert no. 60: Uncontrolled command line Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 61: Uncontrolled command line Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: build.js * feat: list remote sessions in history of extensions * feat: open remote agents in browser * chore: fix tests and lint * fix: import Text * fix: small bug * fix: address feedback * fix: adjust extension gui for compatibility with cli session history * feat: load session history from remote * feat: open remote session in browser * fix: tests, linting, formatting * fix: don't use any * address nitpicks --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
111 lines
3.2 KiB
TypeScript
111 lines
3.2 KiB
TypeScript
import {
|
|
ToCoreFromWebviewProtocol,
|
|
ToWebviewFromCoreProtocol,
|
|
} from "./coreWebview.js";
|
|
|
|
// Message types to pass through from webview to core
|
|
// Note: If updating these values, make a corresponding update in
|
|
// extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt
|
|
export const WEBVIEW_TO_CORE_PASS_THROUGH: (keyof ToCoreFromWebviewProtocol)[] =
|
|
[
|
|
"ping",
|
|
"abort",
|
|
"history/list",
|
|
"history/delete",
|
|
"history/load",
|
|
"history/loadRemote",
|
|
"history/save",
|
|
"history/clear",
|
|
"devdata/log",
|
|
"config/addModel",
|
|
"config/newPromptFile",
|
|
"config/newAssistantFile",
|
|
"config/ideSettingsUpdate",
|
|
"config/addLocalWorkspaceBlock",
|
|
"config/getSerializedProfileInfo",
|
|
"config/deleteModel",
|
|
"config/refreshProfiles",
|
|
"config/openProfile",
|
|
"config/updateSharedConfig",
|
|
"config/updateSelectedModel",
|
|
"mcp/reloadServer",
|
|
"mcp/getPrompt",
|
|
"mcp/startAuthentication",
|
|
"mcp/removeAuthentication",
|
|
"context/getContextItems",
|
|
"context/getSymbolsForFiles",
|
|
"context/loadSubmenuItems",
|
|
"context/addDocs",
|
|
"context/removeDocs",
|
|
"context/indexDocs",
|
|
"autocomplete/complete",
|
|
"autocomplete/cancel",
|
|
"autocomplete/accept",
|
|
"nextEdit/predict",
|
|
"nextEdit/reject",
|
|
"nextEdit/accept",
|
|
"nextEdit/startChain",
|
|
"nextEdit/deleteChain",
|
|
"nextEdit/isChainAlive",
|
|
"nextEdit/queue/getProcessedCount",
|
|
"nextEdit/queue/dequeueProcessed",
|
|
"nextEdit/queue/processOne",
|
|
"nextEdit/queue/clear",
|
|
"nextEdit/queue/abort",
|
|
"tts/kill",
|
|
"llm/complete",
|
|
"llm/streamChat",
|
|
"llm/listModels",
|
|
"llm/compileChat",
|
|
"streamDiffLines",
|
|
"chatDescriber/describe",
|
|
"conversation/compact",
|
|
"stats/getTokensPerDay",
|
|
"stats/getTokensPerModel",
|
|
// Codebase
|
|
"index/setPaused",
|
|
"index/forceReIndex",
|
|
"index/indexingProgressBarInitialized",
|
|
// Docs, etc.
|
|
"indexing/reindex",
|
|
"indexing/abort",
|
|
"indexing/setPaused",
|
|
"docs/initStatuses",
|
|
"docs/getDetails",
|
|
"docs/getIndexedPages",
|
|
//
|
|
"onboarding/complete",
|
|
"addAutocompleteModel",
|
|
"didChangeSelectedProfile",
|
|
"didChangeSelectedOrg",
|
|
"tools/call",
|
|
"tools/evaluatePolicy",
|
|
"controlPlane/getEnvironment",
|
|
"controlPlane/getFreeTrialStatus",
|
|
"controlPlane/getModelsAddOnUpgradeUrl",
|
|
"controlPlane/openUrl",
|
|
"isItemTooBig",
|
|
"process/markAsBackgrounded",
|
|
"process/isBackgrounded",
|
|
"process/killTerminalProcess",
|
|
];
|
|
|
|
// Message types to pass through from core to webview
|
|
// Note: If updating these values, make a corresponding update in
|
|
// extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt
|
|
export const CORE_TO_WEBVIEW_PASS_THROUGH: (keyof ToWebviewFromCoreProtocol)[] =
|
|
[
|
|
"configUpdate",
|
|
"indexProgress", // Codebase
|
|
"indexing/statusUpdate", // Docs, etc.
|
|
"addContextItem",
|
|
"refreshSubmenuItems",
|
|
"isContinueInputFocused",
|
|
"setTTSActive",
|
|
"getWebviewHistoryLength",
|
|
"getCurrentSessionId",
|
|
"sessionUpdate",
|
|
"didCloseFiles",
|
|
"toolCallPartialOutput",
|
|
"freeTrialExceeded",
|
|
];
|