cline 1.0.0-nightly.6 → 1.0.0-nightly.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cline +0 -0
- package/bin/cline-host +0 -0
- package/package.json +1 -1
- package/proto/cline/account.proto +136 -0
- package/proto/cline/browser.proto +56 -0
- package/proto/cline/checkpoints.proto +45 -0
- package/proto/cline/commands.proto +30 -0
- package/proto/cline/common.proto +99 -0
- package/proto/cline/dictation.proto +42 -0
- package/proto/cline/file.proto +189 -0
- package/proto/cline/hooks.proto +49 -0
- package/proto/cline/mcp.proto +133 -0
- package/proto/cline/models.proto +419 -0
- package/proto/cline/oca_account.proto +37 -0
- package/proto/cline/slash.proto +14 -0
- package/proto/cline/state.proto +505 -0
- package/proto/cline/task.proto +119 -0
- package/proto/cline/ui.proto +262 -0
- package/proto/cline/web.proto +27 -0
- package/proto/descriptor_set.pb +0 -0
- package/proto/host/diff.proto +108 -0
- package/proto/host/env.proto +61 -0
- package/proto/host/testing.proto +18 -0
- package/proto/host/window.proto +164 -0
- package/proto/host/workspace.proto +96 -0
- package/cline-1.0.0-nightly.5.tgz +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package host;
|
|
4
|
+
option go_package = "github.com/cline/grpc-go/host";
|
|
5
|
+
option java_package = "bot.cline.host.proto";
|
|
6
|
+
option java_multiple_files = true;
|
|
7
|
+
|
|
8
|
+
import "cline/common.proto";
|
|
9
|
+
|
|
10
|
+
// Provides methods for working with workspaces/projects.
|
|
11
|
+
service WorkspaceService {
|
|
12
|
+
// Returns a list of the top level directories of the workspace.
|
|
13
|
+
rpc getWorkspacePaths(GetWorkspacePathsRequest) returns (GetWorkspacePathsResponse);
|
|
14
|
+
|
|
15
|
+
// Saves an open document if it's open in the editor and has unsaved changes.
|
|
16
|
+
// Returns true if the document was saved, returns false if the document was not found, or did not
|
|
17
|
+
// need to be saved.
|
|
18
|
+
rpc saveOpenDocumentIfDirty(SaveOpenDocumentIfDirtyRequest) returns (SaveOpenDocumentIfDirtyResponse);
|
|
19
|
+
|
|
20
|
+
// Get diagnostics from the workspace.
|
|
21
|
+
rpc getDiagnostics(GetDiagnosticsRequest) returns (GetDiagnosticsResponse);
|
|
22
|
+
|
|
23
|
+
// Makes the problems panel/pane visible in the IDE and focuses it.
|
|
24
|
+
rpc openProblemsPanel(OpenProblemsPanelRequest) returns (OpenProblemsPanelResponse);
|
|
25
|
+
|
|
26
|
+
// Opens the IDE file explorer panel and selects a file or directory.
|
|
27
|
+
rpc openInFileExplorerPanel(OpenInFileExplorerPanelRequest) returns (OpenInFileExplorerPanelResponse);
|
|
28
|
+
|
|
29
|
+
// Opens and focuses the Cline sidebar panel in the host IDE.
|
|
30
|
+
rpc openClineSidebarPanel(OpenClineSidebarPanelRequest) returns (OpenClineSidebarPanelResponse);
|
|
31
|
+
|
|
32
|
+
// Opens and focuses the terminal panel.
|
|
33
|
+
rpc openTerminalPanel(OpenTerminalRequest) returns (OpenTerminalResponse);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message GetWorkspacePathsRequest {
|
|
37
|
+
// The unique ID for the workspace/project.
|
|
38
|
+
// This is currently optional in vscode. It is required in other environments where cline is running at
|
|
39
|
+
// the application level, and the user can open multiple projects.
|
|
40
|
+
optional string id = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message GetWorkspacePathsResponse {
|
|
44
|
+
// The unique ID for the workspace/project.
|
|
45
|
+
optional string id = 1;
|
|
46
|
+
repeated string paths = 2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message SaveOpenDocumentIfDirtyRequest {
|
|
50
|
+
optional string file_path = 2;
|
|
51
|
+
}
|
|
52
|
+
message SaveOpenDocumentIfDirtyResponse {
|
|
53
|
+
// Returns true if the document was saved.
|
|
54
|
+
optional bool was_saved = 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message GetDiagnosticsRequest {
|
|
58
|
+
optional cline.Metadata metadata = 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message GetDiagnosticsResponse {
|
|
62
|
+
repeated cline.FileDiagnostics file_diagnostics = 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Request for host-side workspace search (files/folders) used by mentions autocomplete
|
|
66
|
+
message SearchWorkspaceItemsRequest {
|
|
67
|
+
string query = 1; // Search query string
|
|
68
|
+
optional int32 limit = 2; // Optional limit for results (default decided by host)
|
|
69
|
+
// Optional selected type filter
|
|
70
|
+
enum SearchItemType {
|
|
71
|
+
FILE = 0;
|
|
72
|
+
FOLDER = 1;
|
|
73
|
+
}
|
|
74
|
+
optional SearchItemType selected_type = 3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Response for host-side workspace search
|
|
78
|
+
message SearchWorkspaceItemsResponse {
|
|
79
|
+
message SearchItem {
|
|
80
|
+
string path = 1; // Workspace-relative path using platform separators
|
|
81
|
+
SearchWorkspaceItemsRequest.SearchItemType type = 2;
|
|
82
|
+
optional string label = 3; // Optional display label (e.g., basename)
|
|
83
|
+
}
|
|
84
|
+
repeated SearchItem items = 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message OpenProblemsPanelRequest {}
|
|
88
|
+
message OpenProblemsPanelResponse {}
|
|
89
|
+
message OpenInFileExplorerPanelRequest {
|
|
90
|
+
string path = 1;
|
|
91
|
+
}
|
|
92
|
+
message OpenInFileExplorerPanelResponse {}
|
|
93
|
+
message OpenClineSidebarPanelRequest {}
|
|
94
|
+
message OpenClineSidebarPanelResponse {}
|
|
95
|
+
message OpenTerminalRequest {}
|
|
96
|
+
message OpenTerminalResponse {}
|
|
Binary file
|