* super sketchy big merge with main * gitignore * gitignore * Delete cli/bin/air * Delete cli/bin directory * Delete cli/cline-host * Fix missing package.json in cli Copy the package JSON into the dist-standalone dir during compilation. Remove workaround for missing package.json * Update scripts/build-cli.sh Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Remove reference to watchservice, it has been removed * Update scripts/build-go-proto.mjs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix timestamp to string conversion * diff.go ellipsis fix * COMMON_TYPES --------- Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
96 lines
3.3 KiB
Protocol Buffer
96 lines
3.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package host;
|
|
option go_package = "github.com/cline/grpc-go/host";
|
|
option java_package = "bot.cline.host.proto";
|
|
option java_multiple_files = true;
|
|
|
|
import "cline/common.proto";
|
|
|
|
// Provides methods for working with workspaces/projects.
|
|
service WorkspaceService {
|
|
// Returns a list of the top level directories of the workspace.
|
|
rpc getWorkspacePaths(GetWorkspacePathsRequest) returns (GetWorkspacePathsResponse);
|
|
|
|
// Saves an open document if it's open in the editor and has unsaved changes.
|
|
// Returns true if the document was saved, returns false if the document was not found, or did not
|
|
// need to be saved.
|
|
rpc saveOpenDocumentIfDirty(SaveOpenDocumentIfDirtyRequest) returns (SaveOpenDocumentIfDirtyResponse);
|
|
|
|
// Get diagnostics from the workspace.
|
|
rpc getDiagnostics(GetDiagnosticsRequest) returns (GetDiagnosticsResponse);
|
|
|
|
// Makes the problems panel/pane visible in the IDE and focuses it.
|
|
rpc openProblemsPanel(OpenProblemsPanelRequest) returns (OpenProblemsPanelResponse);
|
|
|
|
// Opens the IDE file explorer panel and selects a file or directory.
|
|
rpc openInFileExplorerPanel(OpenInFileExplorerPanelRequest) returns (OpenInFileExplorerPanelResponse);
|
|
|
|
// Opens and focuses the Cline sidebar panel in the host IDE.
|
|
rpc openClineSidebarPanel(OpenClineSidebarPanelRequest) returns (OpenClineSidebarPanelResponse);
|
|
|
|
// Opens and focuses the terminal panel.
|
|
rpc openTerminalPanel(OpenTerminalRequest) returns (OpenTerminalResponse);
|
|
}
|
|
|
|
message GetWorkspacePathsRequest {
|
|
// The unique ID for the workspace/project.
|
|
// This is currently optional in vscode. It is required in other environments where cline is running at
|
|
// the application level, and the user can open multiple projects.
|
|
optional string id = 1;
|
|
}
|
|
|
|
message GetWorkspacePathsResponse {
|
|
// The unique ID for the workspace/project.
|
|
optional string id = 1;
|
|
repeated string paths = 2;
|
|
}
|
|
|
|
message SaveOpenDocumentIfDirtyRequest {
|
|
optional string file_path = 2;
|
|
}
|
|
message SaveOpenDocumentIfDirtyResponse {
|
|
// Returns true if the document was saved.
|
|
optional bool was_saved = 1;
|
|
}
|
|
|
|
message GetDiagnosticsRequest {
|
|
optional cline.Metadata metadata = 1;
|
|
}
|
|
|
|
message GetDiagnosticsResponse {
|
|
repeated cline.FileDiagnostics file_diagnostics = 1;
|
|
}
|
|
|
|
// Request for host-side workspace search (files/folders) used by mentions autocomplete
|
|
message SearchWorkspaceItemsRequest {
|
|
string query = 1; // Search query string
|
|
optional int32 limit = 2; // Optional limit for results (default decided by host)
|
|
// Optional selected type filter
|
|
enum SearchItemType {
|
|
FILE = 0;
|
|
FOLDER = 1;
|
|
}
|
|
optional SearchItemType selected_type = 3;
|
|
}
|
|
|
|
// Response for host-side workspace search
|
|
message SearchWorkspaceItemsResponse {
|
|
message SearchItem {
|
|
string path = 1; // Workspace-relative path using platform separators
|
|
SearchWorkspaceItemsRequest.SearchItemType type = 2;
|
|
optional string label = 3; // Optional display label (e.g., basename)
|
|
}
|
|
repeated SearchItem items = 1;
|
|
}
|
|
|
|
message OpenProblemsPanelRequest {}
|
|
message OpenProblemsPanelResponse {}
|
|
message OpenInFileExplorerPanelRequest {
|
|
string path = 1;
|
|
}
|
|
message OpenInFileExplorerPanelResponse {}
|
|
message OpenClineSidebarPanelRequest {}
|
|
message OpenClineSidebarPanelResponse {}
|
|
message OpenTerminalRequest {}
|
|
message OpenTerminalResponse {} |