repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/terminal/standalone/StandaloneTerminalManager.ts
src/integrations/terminal/standalone/StandaloneTerminalManager.ts
/** * StandaloneTerminalManager - Main terminal manager for standalone environments. * * This class provides the same interface as VSCode's TerminalManager but works * in CLI and JetBrains environments by using subprocess management instead of * VSCode's terminal API. * * Also handles background command tracking...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/cli-subagents/subagent_command.ts
src/integrations/cli-subagents/subagent_command.ts
/** * Pattern to match simplified Cline CLI syntax: cline "prompt" or cline 'prompt' * with optional additional flags after the closing quote */ const CLINE_COMMAND_PATTERN = /^cline\s+(['"])(.+?)\1(\s+.*)?$/ /** * Detects if a command is a Cline CLI subagent command. * * Matches the simplified syntax: cline "pr...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/claude-code/run.ts
src/integrations/claude-code/run.ts
import crypto from "node:crypto" import fs from "node:fs/promises" import os from "node:os" import path from "node:path" import type Anthropic from "@anthropic-ai/sdk" import { execa } from "execa" import readline from "readline" import { getCwd } from "@/utils/path" import { ClaudeCodeMessage } from "./types" type Cl...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/claude-code/types.ts
src/integrations/claude-code/types.ts
import type { Anthropic } from "@anthropic-ai/sdk" type InitMessage = { type: "system" subtype: "init" session_id: string tools: string[] mcp_servers: string[] apiKeySource: "none" | "/login managed key" | string } type AssistantMessage = { type: "assistant" message: Anthropic.Messages.Message session_id: st...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/claude-code/run.test.ts
src/integrations/claude-code/run.test.ts
import { expect } from "chai" import path from "path" import proxyquire from "proxyquire" import sinon from "sinon" const createMockProcess = () => { const mockProcess = { stdin: { write: sinon.fake(), end: sinon.fake(), }, stdout: { on: sinon.fake(), resume: sinon.fake(), }, stderr: { on: si...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/claude-code/message-filter.ts
src/integrations/claude-code/message-filter.ts
import type { Anthropic } from "@anthropic-ai/sdk" /** * Filters out image blocks from messages since Claude Code doesn't support images. * Replaces image blocks with text placeholders similar to how VSCode LM provider handles it. */ export function filterMessagesForClaudeCode(messages: Anthropic.Messages.MessagePa...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/diagnostics/index.ts
src/integrations/diagnostics/index.ts
import deepEqual from "fast-deep-equal" import * as path from "path" import { Diagnostic, DiagnosticSeverity, FileDiagnostics } from "@/shared/proto/index.cline" import { getCwd } from "@/utils/path" export function getNewDiagnostics(oldDiagnostics: FileDiagnostics[], newDiagnostics: FileDiagnostics[]): FileDiagnostic...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/diagnostics/__tests__/index.test.ts
src/integrations/diagnostics/__tests__/index.test.ts
import { DiagnosticSeverity, FileDiagnostics } from "@shared/proto/index.cline" import { expect } from "chai" import { beforeEach, describe, it } from "mocha" import * as sinon from "sinon" import * as pathUtils from "@/utils/path" import { diagnosticsToProblemsString, getNewDiagnostics } from "../" describe("Diagnost...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/integrations/notifications/index.ts
src/integrations/notifications/index.ts
import { execa } from "execa" import { platform } from "os" interface NotificationOptions { title?: string subtitle?: string message: string } async function showMacOSNotification(options: NotificationOptions): Promise<void> { const { title, subtitle = "", message } = options const script = `display notificatio...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/exports/cline.d.ts
src/exports/cline.d.ts
export interface ClineAPI { /** * Starts a new task with an optional initial message and images. * @param task Optional initial task message. * @param images Optional array of image data URIs (e.g., "data:image/webp;base64,..."). */ startNewTask(task?: string, images?: string[]): Promise<void> /** * Sends...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/exports/index.ts
src/exports/index.ts
import { Controller } from "@core/controller" import { sendChatButtonClickedEvent } from "@core/controller/ui/subscribeToChatButtonClicked" import { HostProvider } from "@/hosts/host-provider" import { ClineAPI } from "./cline" export function createClineAPI(sidebarController: Controller): ClineAPI { const api: Cline...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/dev/commands/tasks.ts
src/dev/commands/tasks.ts
import { Controller } from "@core/controller" import { ClineMessage } from "@shared/ExtensionMessage" import { HistoryItem } from "@shared/HistoryItem" import * as fs from "fs/promises" import * as path from "path" import * as vscode from "vscode" import { HostProvider } from "@/hosts/host-provider" import { ShowMessag...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/host-provider.ts
src/hosts/host-provider.ts
import { WebviewProvider } from "@/core/webview" import { CommentReviewController } from "@/integrations/editor/CommentReviewController" import { DiffViewProvider } from "@/integrations/editor/DiffViewProvider" import { ITerminalManager } from "@/integrations/terminal/types" import { HostBridgeClientProvider } from "./...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/host-provider-types.ts
src/hosts/host-provider-types.ts
import { DiffServiceClientInterface, EnvServiceClientInterface, WindowServiceClientInterface, WorkspaceServiceClientInterface, } from "@generated/hosts/host-bridge-client-types" /** * Interface for host bridge client providers */ export interface HostBridgeClientProvider { workspaceClient: WorkspaceServiceClien...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge-grpc-service.ts
src/hosts/vscode/hostbridge-grpc-service.ts
import { StreamingResponseHandler } from "./hostbridge-grpc-handler" /** * Generic type for service method handlers */ export type ServiceMethodHandler = (message: any) => Promise<any> /** * Type for streaming method handlers */ export type StreamingMethodHandler = (message: any, responseStream: StreamingResponse...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/commit-message-generator.ts
src/hosts/vscode/commit-message-generator.ts
import { buildApiHandler } from "@core/api" import * as path from "path" import * as vscode from "vscode" import { StateManager } from "@/core/storage/StateManager" import { HostProvider } from "@/hosts/host-provider" import { ShowMessageType } from "@/shared/proto/host/window" import { getGitDiff } from "@/utils/git" ...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge-grpc-handler.ts
src/hosts/vscode/hostbridge-grpc-handler.ts
import { GrpcRequestRegistry } from "@core/controller/grpc-request-registry" import { hostServiceHandlers } from "@generated/hosts/vscode/hostbridge-grpc-service-config" import { StreamingCallbacks } from "@/hosts/host-provider-types" /** * Type definition for a streaming response handler */ export type StreamingRes...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/commandUtils.ts
src/hosts/vscode/commandUtils.ts
import * as vscode from "vscode" import { ExtensionRegistryInfo } from "@/registry" import { CommandContext } from "@/shared/proto/index.cline" import { Controller } from "../../core/controller" import { WebviewProvider } from "../../core/webview" import { convertVscodeDiagnostics } from "./hostbridge/workspace/getDiag...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/VscodeWebviewProvider.ts
src/hosts/vscode/VscodeWebviewProvider.ts
import { sendDidBecomeVisibleEvent } from "@core/controller/ui/subscribeToDidBecomeVisible" import { WebviewProvider } from "@core/webview" import * as vscode from "vscode" import { handleGrpcRequest, handleGrpcRequestCancel } from "@/core/controller/grpc-handler" import { HostProvider } from "@/hosts/host-provider" im...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/DecorationController.ts
src/hosts/vscode/DecorationController.ts
import * as vscode from "vscode" const fadedOverlayDecorationType = vscode.window.createTextEditorDecorationType({ backgroundColor: "rgba(255, 255, 0, 0.1)", opacity: "0.4", isWholeLine: true, }) const activeLineDecorationType = vscode.window.createTextEditorDecorationType({ backgroundColor: "rgba(255, 255, 0, 0....
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/VscodeDiffViewProvider.ts
src/hosts/vscode/VscodeDiffViewProvider.ts
import { DiffViewProvider } from "@integrations/editor/DiffViewProvider" import * as path from "path" import * as vscode from "vscode" import { DecorationController } from "@/hosts/vscode/DecorationController" import { arePathsEqual } from "@/utils/path" export const DIFF_VIEW_URI_SCHEME = "cline-diff" export class V...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/env/clipboardReadText.ts
src/hosts/vscode/hostbridge/env/clipboardReadText.ts
import { EmptyRequest, String } from "@shared/proto/cline/common" import * as vscode from "vscode" export async function clipboardReadText(_: EmptyRequest): Promise<String> { const text = await vscode.env.clipboard.readText() return String.create({ value: text }) }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/env/getIdeRedirectUri.ts
src/hosts/vscode/hostbridge/env/getIdeRedirectUri.ts
import { EmptyRequest, String } from "@shared/proto/cline/common" import * as vscode from "vscode" export async function getIdeRedirectUri(_: EmptyRequest): Promise<String> { const uriScheme = vscode.env.uriScheme || "vscode" const url = `${uriScheme}://saoudrizwan.claude-dev` return { value: url } }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/env/clipboardWriteText.ts
src/hosts/vscode/hostbridge/env/clipboardWriteText.ts
import { Empty, StringRequest } from "@shared/proto/cline/common" import * as vscode from "vscode" export async function clipboardWriteText(request: StringRequest): Promise<Empty> { await vscode.env.clipboard.writeText(request.value) return Empty.create({}) }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/env/subscribeToTelemetrySettings.ts
src/hosts/vscode/hostbridge/env/subscribeToTelemetrySettings.ts
import * as vscode from "vscode" import { StreamingResponseHandler } from "@/hosts/vscode/hostbridge-grpc-handler" import { EmptyRequest } from "@/shared/proto/index.cline" import { Setting } from "@/shared/proto/index.host" /** * Subscribe to changes to the telemetry settings. */ export async function subscribeToTe...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/env/getTelemetrySettings.ts
src/hosts/vscode/hostbridge/env/getTelemetrySettings.ts
import * as vscode from "vscode" import { ErrorSettings } from "@/services/error" import { EmptyRequest } from "@/shared/proto/index.cline" import { GetTelemetrySettingsResponse, Setting } from "@/shared/proto/index.host" export async function getTelemetrySettings(_: EmptyRequest): Promise<GetTelemetrySettingsResponse...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/env/getHostVersion.ts
src/hosts/vscode/hostbridge/env/getHostVersion.ts
import { EmptyRequest } from "@shared/proto/cline/common" import * as vscode from "vscode" import { ExtensionRegistryInfo } from "@/registry" import { GetHostVersionResponse } from "@/shared/proto/index.host" export async function getHostVersion(_: EmptyRequest): Promise<GetHostVersionResponse> { return { platform:...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/env/shutdown.ts
src/hosts/vscode/hostbridge/env/shutdown.ts
import { Empty, EmptyRequest } from "@shared/proto/cline/common" export async function shutdown(request: EmptyRequest): Promise<Empty> { // VSCode extensions cannot shutdown the host process (VSCode itself) // This is a no-op that just returns success // The shutdown RPC is primarily used by standalone cline-core i...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/getVisibleTabs.ts
src/hosts/vscode/hostbridge/window/getVisibleTabs.ts
import { window } from "vscode" import { GetVisibleTabsRequest, GetVisibleTabsResponse } from "@/shared/proto/host/window" export async function getVisibleTabs(_: GetVisibleTabsRequest): Promise<GetVisibleTabsResponse> { const visibleTabPaths = window.visibleTextEditors?.map((editor) => editor.document?.uri?.fsPath)....
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/getActiveEditor.ts
src/hosts/vscode/hostbridge/window/getActiveEditor.ts
import * as vscode from "vscode" import { GetActiveEditorRequest, GetActiveEditorResponse } from "@/shared/proto/index.host" export async function getActiveEditor(_: GetActiveEditorRequest): Promise<GetActiveEditorResponse> { const filePath = vscode.window.activeTextEditor?.document.uri.fsPath return { filePath } }...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/showOpenDialogue.ts
src/hosts/vscode/hostbridge/window/showOpenDialogue.ts
import * as vscode from "vscode" import { SelectedResources, ShowOpenDialogueRequest } from "@/shared/proto/host/window" export async function showOpenDialogue(request: ShowOpenDialogueRequest): Promise<SelectedResources> { const options: vscode.OpenDialogOptions = {} if (request.canSelectMany !== undefined) { op...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/openFile.ts
src/hosts/vscode/hostbridge/window/openFile.ts
import * as vscode from "vscode" import { OpenFileRequest, OpenFileResponse } from "@/shared/proto/host/window" export async function openFile(request: OpenFileRequest): Promise<OpenFileResponse> { await vscode.commands.executeCommand("vscode.open", vscode.Uri.file(request.filePath)) return OpenFileResponse.create({...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/showTextDocument.ts
src/hosts/vscode/hostbridge/window/showTextDocument.ts
import * as vscode from "vscode" import { ShowTextDocumentRequest, TextEditorInfo } from "@/shared/proto/host/window" import { arePathsEqual } from "@/utils/path" export async function showTextDocument(request: ShowTextDocumentRequest): Promise<TextEditorInfo> { // Convert file path to URI const uri = vscode.Uri.fil...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/showMessage.ts
src/hosts/vscode/hostbridge/window/showMessage.ts
import { window } from "vscode" import { SelectedResponse, ShowMessageRequest, ShowMessageType } from "@/shared/proto/index.host" const DEFAULT_OPTIONS = { modal: false, items: [] } as const export async function showMessage(request: ShowMessageRequest): Promise<SelectedResponse> { const { message, type, options } =...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/showSaveDialog.ts
src/hosts/vscode/hostbridge/window/showSaveDialog.ts
import { SaveDialogOptions, Uri, window } from "vscode" import { ShowSaveDialogRequest, ShowSaveDialogResponse } from "@/shared/proto/index.host" export async function showSaveDialog(request: ShowSaveDialogRequest): Promise<ShowSaveDialogResponse> { const { options } = request const vscodeOptions: SaveDialogOptions...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/getVisibleTabs.test.ts
src/hosts/vscode/hostbridge/window/getVisibleTabs.test.ts
import { strict as assert } from "assert" import * as fs from "fs/promises" import { afterEach, beforeEach, describe, it } from "mocha" import * as os from "os" import * as path from "path" import * as vscode from "vscode" import { getVisibleTabs } from "@/hosts/vscode/hostbridge/window/getVisibleTabs" import { GetVisi...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/getOpenTabs.ts
src/hosts/vscode/hostbridge/window/getOpenTabs.ts
import { TabInputText, window } from "vscode" import { GetOpenTabsRequest, GetOpenTabsResponse } from "@/shared/proto/host/window" export async function getOpenTabs(_: GetOpenTabsRequest): Promise<GetOpenTabsResponse> { const openTabPaths = window.tabGroups.all .flatMap((group) => group.tabs) .map((tab) => (tab.i...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/openSettings.ts
src/hosts/vscode/hostbridge/window/openSettings.ts
import * as vscode from "vscode" import { OpenSettingsRequest, OpenSettingsResponse } from "@/shared/proto/host/window" export async function openSettings(request: OpenSettingsRequest): Promise<OpenSettingsResponse> { // VS Code can be queried to focus a specific setting section await vscode.commands.executeCommand(...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/showInputBox.ts
src/hosts/vscode/hostbridge/window/showInputBox.ts
import * as vscode from "vscode" import { ShowInputBoxRequest, ShowInputBoxResponse } from "@/shared/proto/index.host" export async function showInputBox(request: ShowInputBoxRequest): Promise<ShowInputBoxResponse> { const response = await vscode.window.showInputBox({ title: request.title, prompt: request.prompt,...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/window/getOpenTabs.test.ts
src/hosts/vscode/hostbridge/window/getOpenTabs.test.ts
import { strict as assert } from "assert" import * as fs from "fs/promises" import { afterEach, beforeEach, describe, it } from "mocha" import * as os from "os" import pWaitFor from "p-wait-for" import * as path from "path" import * as vscode from "vscode" import { getOpenTabs } from "@/hosts/vscode/hostbridge/window/g...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/getDiagnostics.ts
src/hosts/vscode/hostbridge/workspace/getDiagnostics.ts
import * as vscode from "vscode" import { GetDiagnosticsRequest, GetDiagnosticsResponse } from "@/shared/proto/host/workspace" import { Diagnostic, DiagnosticSeverity, FileDiagnostics } from "@/shared/proto/index.cline" import "@/utils/path" // for String.prototype.toPosix export async function getDiagnostics(_request...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/openClineSidebarPanel.ts
src/hosts/vscode/hostbridge/workspace/openClineSidebarPanel.ts
import * as vscode from "vscode" import { ExtensionRegistryInfo } from "@/registry" import { OpenClineSidebarPanelRequest, OpenClineSidebarPanelResponse } from "@/shared/proto/index.host" export async function openClineSidebarPanel(_: OpenClineSidebarPanelRequest): Promise<OpenClineSidebarPanelResponse> { await vscod...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/saveOpenDocumentIfDirty.test.ts
src/hosts/vscode/hostbridge/workspace/saveOpenDocumentIfDirty.test.ts
import { expect } from "chai" import * as fs from "fs/promises" import { after, before, beforeEach, describe, it } from "mocha" import * as os from "os" import * as path from "path" import * as vscode from "vscode" import { saveOpenDocumentIfDirty } from "@/hosts/vscode/hostbridge/workspace/saveOpenDocumentIfDirty" imp...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/getDiagnostics.test.ts
src/hosts/vscode/hostbridge/workspace/getDiagnostics.test.ts
import { expect } from "chai" import { describe, it } from "mocha" import * as vscode from "vscode" import { DiagnosticSeverity } from "@/shared/proto/index.cline" import { convertToFileDiagnostics, convertVscodeDiagnostics } from "./getDiagnostics" describe("getDiagnostics conversion functions", () => { describe("co...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/openProblemsPanel.ts
src/hosts/vscode/hostbridge/workspace/openProblemsPanel.ts
import * as vscode from "vscode" import { OpenProblemsPanelRequest, OpenProblemsPanelResponse } from "@/shared/proto/index.host" export async function openProblemsPanel(_: OpenProblemsPanelRequest): Promise<OpenProblemsPanelResponse> { vscode.commands.executeCommand("workbench.actions.view.problems") return {} }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/saveOpenDocumentIfDirty.ts
src/hosts/vscode/hostbridge/workspace/saveOpenDocumentIfDirty.ts
import { arePathsEqual } from "@utils/path" import * as vscode from "vscode" import { SaveOpenDocumentIfDirtyRequest, SaveOpenDocumentIfDirtyResponse } from "@/shared/proto/index.host" export async function saveOpenDocumentIfDirty(request: SaveOpenDocumentIfDirtyRequest): Promise<SaveOpenDocumentIfDirtyResponse> { co...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/getWorkspacePaths.ts
src/hosts/vscode/hostbridge/workspace/getWorkspacePaths.ts
import * as vscode from "vscode" import { GetWorkspacePathsRequest, GetWorkspacePathsResponse } from "@/shared/proto/index.host" export async function getWorkspacePaths(_: GetWorkspacePathsRequest): Promise<GetWorkspacePathsResponse> { const paths = vscode.workspace.workspaceFolders?.map((folder) => folder.uri.fsPath)...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/openInFileExplorerPanel.ts
src/hosts/vscode/hostbridge/workspace/openInFileExplorerPanel.ts
import * as vscode from "vscode" import { OpenInFileExplorerPanelRequest, OpenInFileExplorerPanelResponse } from "@/shared/proto/index.host" export async function openInFileExplorerPanel(request: OpenInFileExplorerPanelRequest): Promise<OpenInFileExplorerPanelResponse> { vscode.commands.executeCommand("revealInExplo...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/executeCommandInTerminal.ts
src/hosts/vscode/hostbridge/workspace/executeCommandInTerminal.ts
import { ExecuteCommandInTerminalRequest, ExecuteCommandInTerminalResponse } from "@shared/proto/host/workspace" import * as vscode from "vscode" /** * Executes a command in a new terminal * @param request The request containing the command to execute * @returns Response indicating success */ export async function...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/workspace/openTerminalPanel.ts
src/hosts/vscode/hostbridge/workspace/openTerminalPanel.ts
import * as vscode from "vscode" import { OpenTerminalRequest, OpenTerminalResponse } from "@/shared/proto/index.host" export async function openTerminalPanel(_: OpenTerminalRequest): Promise<OpenTerminalResponse> { vscode.commands.executeCommand("workbench.action.terminal.focus") return {} }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/openDiff.ts
src/hosts/vscode/hostbridge/diff/openDiff.ts
import { OpenDiffRequest, OpenDiffResponse } from "@/shared/proto/index.host" export async function openDiff(_request: OpenDiffRequest): Promise<OpenDiffResponse> { throw new Error("diffService is not supported. Use the VscodeDiffViewProvider.") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/openMultiFileDiff.ts
src/hosts/vscode/hostbridge/diff/openMultiFileDiff.ts
import path from "path" import * as vscode from "vscode" import { OpenMultiFileDiffRequest, OpenMultiFileDiffResponse } from "@/shared/proto/index.host" import { getCwd } from "@/utils/path" import { DIFF_VIEW_URI_SCHEME } from "../../VscodeDiffViewProvider" export async function openMultiFileDiff(request: OpenMultiFi...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/closeAllDiffs.ts
src/hosts/vscode/hostbridge/diff/closeAllDiffs.ts
import { CloseAllDiffsRequest, CloseAllDiffsResponse } from "@/shared/proto/index.host" export async function closeAllDiffs(_request: CloseAllDiffsRequest): Promise<CloseAllDiffsResponse> { throw new Error("diffService is not supported. Use the VscodeDiffViewProvider.") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/getDocumentText.ts
src/hosts/vscode/hostbridge/diff/getDocumentText.ts
import { GetDocumentTextRequest, GetDocumentTextResponse } from "@/shared/proto/index.host" export async function getDocumentText(_request: GetDocumentTextRequest): Promise<GetDocumentTextResponse> { throw new Error("diffService is not supported. Use the VscodeDiffViewProvider.") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/scrollDiff.ts
src/hosts/vscode/hostbridge/diff/scrollDiff.ts
import { ScrollDiffRequest, ScrollDiffResponse } from "@/shared/proto/index.host" export async function scrollDiff(_request: ScrollDiffRequest): Promise<ScrollDiffResponse> { throw new Error("diffService is not supported. Use the VscodeDiffViewProvider.") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/truncateDocument.ts
src/hosts/vscode/hostbridge/diff/truncateDocument.ts
import { TruncateDocumentRequest, TruncateDocumentResponse } from "@/shared/proto/index.host" export async function truncateDocument(_request: TruncateDocumentRequest): Promise<TruncateDocumentResponse> { throw new Error("diffService is not supported. Use the VscodeDiffViewProvider.") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/replaceText.ts
src/hosts/vscode/hostbridge/diff/replaceText.ts
import { ReplaceTextRequest, ReplaceTextResponse } from "@/shared/proto/index.host" export async function replaceText(_request: ReplaceTextRequest): Promise<ReplaceTextResponse> { throw new Error("diffService is not supported. Use the VscodeDiffViewProvider.") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/diff/saveDocument.ts
src/hosts/vscode/hostbridge/diff/saveDocument.ts
import { SaveDocumentRequest, SaveDocumentResponse } from "@/shared/proto/index.host" export async function saveDocument(_request: SaveDocumentRequest): Promise<SaveDocumentResponse> { throw new Error("diffService is not supported. Use the VscodeDiffViewProvider.") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/testing/getWebviewHtml.ts
src/hosts/vscode/hostbridge/testing/getWebviewHtml.ts
import { GetWebviewHtmlRequest, GetWebviewHtmlResponse } from "@/shared/proto/index.host" export async function getWebviewHtml(_: GetWebviewHtmlRequest): Promise<GetWebviewHtmlResponse> { throw new Error("Unimplemented") }
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/client/host-grpc-client.ts
src/hosts/vscode/hostbridge/client/host-grpc-client.ts
import { createGrpcClient } from "@hosts/vscode/hostbridge/client/host-grpc-client-base" import * as host from "@shared/proto/index.host" import { HostBridgeClientProvider } from "@/hosts/host-provider-types" export const vscodeHostBridgeClient: HostBridgeClientProvider = { workspaceClient: createGrpcClient(host.Work...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/hostbridge/client/host-grpc-client-base.ts
src/hosts/vscode/hostbridge/client/host-grpc-client-base.ts
import { v4 as uuidv4 } from "uuid" import { StreamingCallbacks } from "@/hosts/host-provider-types" import { GrpcHandler } from "@/hosts/vscode/hostbridge-grpc-handler" // Generic type for any protobuf service definition export type ProtoService = { name: string fullName: string methods: { [key: string]: { na...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/terminal/VscodeTerminalProcess.ts
src/hosts/vscode/terminal/VscodeTerminalProcess.ts
import { TerminalOutputFailureReason, telemetryService } from "@services/telemetry" import { EventEmitter } from "events" import * as vscode from "vscode" import { stripAnsi } from "@/hosts/vscode/terminal/ansiUtils" import { getLatestTerminalOutput } from "@/hosts/vscode/terminal/get-latest-output" import { isCompili...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/terminal/VscodeTerminalRegistry.ts
src/hosts/vscode/terminal/VscodeTerminalRegistry.ts
import * as vscode from "vscode" export interface TerminalInfo { terminal: vscode.Terminal busy: boolean lastCommand: string id: number shellPath?: string lastActive: number pendingCwdChange?: string cwdResolved?: { resolve: () => void reject: (error: Error) => void } } // Although vscode.window.terminal...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/terminal/VscodeTerminalManager.ts
src/hosts/vscode/terminal/VscodeTerminalManager.ts
import { arePathsEqual } from "@utils/path" import { getShellForProfile } from "@utils/shell" import pWaitFor from "p-wait-for" import * as vscode from "vscode" import { TerminalInfo as ITerminalInfo, ITerminalManager, TerminalProcessResultPromise as ITerminalProcessResultPromise, } from "@/integrations/terminal/typ...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/terminal/VscodeTerminalProcess.test.ts
src/hosts/vscode/terminal/VscodeTerminalProcess.test.ts
import { afterEach, beforeEach, describe, it } from "mocha" import { setVscodeHostProviderMock } from "@/test/host-provider-test-utils" import "should" import * as sinon from "sinon" import * as vscode from "vscode" import { VscodeTerminalProcess } from "./VscodeTerminalProcess" import { TerminalRegistry } from "./Vsco...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/terminal/ansiUtils.ts
src/hosts/vscode/terminal/ansiUtils.ts
export function ansiRegex({ onlyFirst = false } = {}) { // Valid string terminator sequences are BEL, ESC\, and 0x9c const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)" const pattern = [ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`, "(?:...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/terminal/get-latest-output.ts
src/hosts/vscode/terminal/get-latest-output.ts
import { readTextFromClipboard, writeTextToClipboard } from "@utils/env" import * as vscode from "vscode" /** * Gets the contents of the active terminal * @returns The terminal contents as a string */ export async function getLatestTerminalOutput(): Promise<string> { // Store original clipboard content to restore ...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/vscode/review/VscodeCommentReviewController.ts
src/hosts/vscode/review/VscodeCommentReviewController.ts
import * as vscode from "vscode" import { sendAddToInputEvent } from "@/core/controller/ui/subscribeToAddToInput" import { CommentReviewController, type OnReplyCallback, type ReviewComment } from "@/integrations/editor/CommentReviewController" import { DIFF_VIEW_URI_SCHEME } from "../VscodeDiffViewProvider" /** * Cli...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/external/host-bridge-client-manager.ts
src/hosts/external/host-bridge-client-manager.ts
import { DiffServiceClientInterface, EnvServiceClientInterface, WindowServiceClientInterface, WorkspaceServiceClientInterface, } from "@generated/hosts/host-bridge-client-types" import { DiffServiceClientImpl, EnvServiceClientImpl, WindowServiceClientImpl, WorkspaceServiceClientImpl, } from "@generated/hosts/st...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/external/ExternalWebviewProvider.ts
src/hosts/external/ExternalWebviewProvider.ts
import { WebviewProvider } from "@/core/webview" export class ExternalWebviewProvider extends WebviewProvider { // This hostname cannot be changed without updating the external webview handler. private RESOURCE_HOSTNAME: string = "internal.resources" override getWebviewUrl(path: string) { const url = new URL(`ht...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/external/ExternalDiffviewProvider.ts
src/hosts/external/ExternalDiffviewProvider.ts
import { status } from "@grpc/grpc-js" import { HostProvider } from "@/hosts/host-provider" import { DiffViewProvider } from "@/integrations/editor/DiffViewProvider" export class ExternalDiffViewProvider extends DiffViewProvider { private activeDiffEditorId: string | undefined override async openDiffEditor(): Promi...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/external/ExternalCommentReviewController.ts
src/hosts/external/ExternalCommentReviewController.ts
import { CommentReviewController, type OnReplyCallback, type ReviewComment } from "@/integrations/editor/CommentReviewController" /** * External (non-VS Code) implementation of CommentReviewController. * * This is a no-op implementation for platforms that don't support * inline code comments (e.g., JetBrains, CLI)...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/external/grpc-types.ts
src/hosts/external/grpc-types.ts
import { Controller } from "@core/controller" import * as grpc from "@grpc/grpc-js" import { Channel, createChannel } from "nice-grpc" /** * Type definition for a gRPC handler function. * This represents a function that takes a Controller instance and a request object, * and returns a Promise of the response type. ...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/hosts/external/AuthHandler.ts
src/hosts/external/AuthHandler.ts
import type { IncomingMessage, Server, ServerResponse } from "node:http" import http from "node:http" import type { AddressInfo } from "node:net" import { SharedUriHandler } from "@/services/uri/SharedUriHandler" import { HostProvider } from "../host-provider" const SERVER_TIMEOUT = 10 * 60 * 1000 // 10 minutes const...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/slash-commands.test.ts
src/test/slash-commands.test.ts
import { afterEach, beforeEach, describe, it } from "mocha" import "should" import * as sinon from "sinon" import { Controller } from "../core/controller" import { getAvailableSlashCommands } from "../core/controller/slash/getAvailableSlashCommands" import { EmptyRequest } from "../shared/proto/cline/common" import { B...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/vscode-mock.ts
src/test/vscode-mock.ts
// Mock implementation of VSCode API for unit tests export const env = { machineId: "test-machine-id", isTelemetryEnabled: true, onDidChangeTelemetryEnabled: (_callback: (enabled: boolean) => void) => { // Return a disposable mock return { dispose: () => {}, } }, } export const workspace = { getConfigura...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/host-provider-test-utils.ts
src/test/host-provider-test-utils.ts
import { CommentReviewControllerCreator, DiffViewProviderCreator, HostProvider, TerminalManagerCreator, WebviewProviderCreator, } from "@/hosts/host-provider" import { HostBridgeClientProvider } from "@/hosts/host-provider-types" import { vscodeHostBridgeClient } from "@/hosts/vscode/hostbridge/client/host-grpc-cl...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/diff-logic.test.ts
src/test/diff-logic.test.ts
import * as assert from "assert" import { describe, it } from "mocha" import { FileEditProvider } from "../integrations/editor/FileEditProvider" describe("FileEditProvider Trailing Newline", () => { // Helper to set up provider without calling open() function setupProvider(initialContent: string): FileEditProvider {...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/grpc-handler.test.ts
src/test/grpc-handler.test.ts
import { expect } from "chai" import "should" import { afterEach, beforeEach, describe, it } from "mocha" import * as sinon from "sinon" import { Controller } from "@/core/controller" import { handleGrpcRequest } from "@/core/controller/grpc-handler" import { GrpcRecorder } from "@/core/controller/grpc-recorder/grpc-re...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/tool-executor-hooks.test.ts
src/test/tool-executor-hooks.test.ts
import { afterEach, beforeEach, describe, it } from "mocha" import "should" import * as sinon from "sinon" import { executeHook } from "../core/hooks/hook-executor" import { StateManager } from "../core/storage/StateManager" import { MessageStateHandler } from "../core/task/message-state" import { TaskState } from "../...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/cline-api.test.ts
src/test/cline-api.test.ts
import { afterEach, beforeEach, describe, it } from "mocha" import * as should from "should" import * as sinon from "sinon" import { createClineAPI } from "@/exports" import type { ClineAPI } from "../exports/cline" import { setVscodeHostProviderMock } from "./host-provider-test-utils" describe("ClineAPI Core Function...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/hook-management.test.ts
src/test/hook-management.test.ts
import { afterEach, beforeEach, describe, it } from "mocha" import "should" import * as fs from "fs/promises" import * as os from "os" import * as path from "path" import * as sinon from "sinon" import { Controller } from "../core/controller" import { createHook } from "../core/controller/file/createHook" import { dele...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/diff-newline-repro.test.ts
src/test/diff-newline-repro.test.ts
import * as assert from "assert" import { describe, it } from "mocha" import { DiffViewProvider } from "../integrations/editor/DiffViewProvider" class TestDiffViewProvider extends DiffViewProvider { public documentText: string = "" public replacements: { content: string; range: { startLine: number; endLine: number }...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/requires.ts
src/test/requires.ts
const Module = require("module") const originalRequire = Module.prototype.require /** * VSCode is not available during unit tests * @see {@link file://./vscode-mock.ts} */ Module.prototype.require = function (path: string) { if (path === "vscode") { return require("./vscode-mock") } // Avoid pulling in VSCode-...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/extension.test.ts
src/test/extension.test.ts
import { readFile } from "fs/promises" import { after, describe, it } from "mocha" import path from "path" import "should" import * as vscode from "vscode" const packagePath = path.join(__dirname, "..", "..", "package.json") describe("Cline Extension", () => { after(() => { vscode.window.showInformationMessage("Al...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/shell.test.ts
src/test/shell.test.ts
import { getShell } from "@utils/shell" import { expect } from "chai" import { afterEach, beforeEach, describe, it } from "mocha" import { userInfo } from "os" import * as vscode from "vscode" describe("Shell Detection Tests", () => { let originalPlatform: string let originalEnv: NodeJS.ProcessEnv let originalGetCo...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/hook-executor.test.ts
src/test/hook-executor.test.ts
import { afterEach, beforeEach, describe, it } from "mocha" import "should" import * as fs from "fs/promises" import * as os from "os" import * as path from "path" import * as sinon from "sinon" import { HookDiscoveryCache } from "../core/hooks/HookDiscoveryCache" import { executeHook } from "../core/hooks/hook-executo...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/hook-management-integration.test.ts
src/test/hook-management-integration.test.ts
import { afterEach, beforeEach, describe, it } from "mocha" import "should" import * as fs from "fs/promises" import * as os from "os" import * as path from "path" import * as sinon from "sinon" import { Controller } from "../core/controller" import { createHook } from "../core/controller/file/createHook" import { dele...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/message-state-handler.test.ts
src/test/message-state-handler.test.ts
import { describe, it } from "mocha" import "should" import { MessageStateHandler } from "../core/task/message-state" import { TaskState } from "../core/task/TaskState" import { ClineMessage } from "../shared/ExtensionMessage" /** * Unit tests for MessageStateHandler's mutex protection (RC-4) * These tests verify th...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/services/search/file-search.test.ts
src/test/services/search/file-search.test.ts
import * as fileSearch from "@services/search/file-search" import * as childProcess from "child_process" import * as fs from "fs" import type { FzfResultItem } from "fzf" import { describe, it } from "mocha" import should from "should" import sinon from "sinon" import { Readable } from "stream" import { setVscodeHostPr...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/scenarios/nebius-models.ts
src/test/scenarios/nebius-models.ts
// GitHub PR - 5729 import { expect } from "@playwright/test" import { e2e } from "../e2e/utils/helpers" e2e("Scenario - PR 5729 - Nebius models", async ({ helper, sidebar }) => { // This scenario test is a placeholder to satisfy the CI requirement. // It verifies that the application loads correctly after the conf...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/auth.test.ts
src/test/e2e/auth.test.ts
import { expect } from "@playwright/test" import { e2e } from "./utils/helpers" // Test for setting up API keys e2e("Views - can set up API keys and navigate to Settings from Chat", async ({ sidebar }) => { // Use the page object to interact with editor outside the sidebar // Verify initial state await expect(sideb...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/editor.test.ts
src/test/e2e/editor.test.ts
import { expect } from "@playwright/test" import { addSelectedCodeToClineWebview, openTab, toggleNotifications } from "./utils/common" import { E2E_WORKSPACE_TYPES, e2e } from "./utils/helpers" e2e.describe("Code Actions and Editor Panel", () => { E2E_WORKSPACE_TYPES.forEach(({ title, workspaceType }) => { e2e.exte...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/chat.test.ts
src/test/e2e/chat.test.ts
import { expect } from "@playwright/test" import { e2e } from "./utils/helpers" e2e("Chat - can send messages and switch between modes", async ({ helper, sidebar, page }) => { // Sign in await helper.signin(sidebar) // Submit a message const inputbox = sidebar.getByTestId("chat-input") await expect(inputbox).toB...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/diff.test.ts
src/test/e2e/diff.test.ts
import { expect } from "@playwright/test" import { E2E_WORKSPACE_TYPES, e2e } from "./utils/helpers" e2e.describe("Diff Editor", () => { E2E_WORKSPACE_TYPES.forEach(({ title, workspaceType }) => { e2e.extend({ workspaceType, })(title, async ({ helper, page, sidebar }) => { await helper.signin(sidebar) c...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/fixtures/workspace/test.ts
src/test/e2e/fixtures/workspace/test.ts
export const name = "john"
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/fixtures/server/api.ts
src/test/e2e/fixtures/server/api.ts
export const E2E_REGISTERED_MOCK_ENDPOINTS = { "/api/v1": { GET: [ "/generation", "/organizations/{orgId}/balance", "/organizations/{orgId}/members/{memberId}/usages", "/organizations/{orgId}/api-keys", "/organizations/{orgId}/remote-config", "/users/me", "/users/{userId}/balance", "/users/{u...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/fixtures/server/data.ts
src/test/e2e/fixtures/server/data.ts
import type { BalanceResponse, OrganizationBalanceResponse, OrganizationUsageTransaction, PaymentTransaction, UsageTransaction, UserResponse, } from "../../../../shared/ClineAccount" const organizations = [ { organizationId: "random-org-id", memberId: "random-member-id", name: "Test Organization", roles...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/fixtures/server/index.ts
src/test/e2e/fixtures/server/index.ts
import { createServer, type IncomingMessage, type Server, type ServerResponse } from "node:http" import type { Socket } from "node:net" import { parse } from "node:url" import { v4 as uuidv4 } from "uuid" import type { BalanceResponse, OrganizationBalanceResponse, UserResponse } from "../../../../shared/ClineAccount" i...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false
cline/cline
https://github.com/cline/cline/blob/0d04205dc4194c54e4bf424d2dc80f2fe1697e98/src/test/e2e/utils/common.ts
src/test/e2e/utils/common.ts
import type { Page } from "@playwright/test" export const openTab = async (_page: Page, tabName: string) => { await _page .getByRole("tab", { name: new RegExp(`${tabName}`) }) .locator("a") .click() } export const addSelectedCodeToClineWebview = async (_page: Page) => { await _page.locator("div:nth-child(4) >...
typescript
Apache-2.0
0d04205dc4194c54e4bf424d2dc80f2fe1697e98
2026-01-04T15:28:48.884804Z
false