* Reorganized proto directory structure to match package naming convention Moved cline package protos from the proto directory to proto/cline/ directory Host package protos remain in proto/host/ directory Updated all import statements across codebase to reflect new proto paths Removed proto linter exception for package/directory mismatch rule Fix Vscode proto indexing errors by setting the proto path in the Vscode settings. * Update imports to use new package Update imports from @shared/proto/<thing> to @share/proto/cline/<thing>
37 lines
871 B
Protocol Buffer
37 lines
871 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package host;
|
|
option java_package = "bot.cline.host.proto";
|
|
option java_multiple_files = true;
|
|
|
|
import "cline/common.proto";
|
|
|
|
/**
|
|
* The watch service is only here as example of a streaming rpc in the host bridge.
|
|
* This being replaced with a native JS file watcher.
|
|
*/
|
|
// WatchService provides methods for watching files in the IDE
|
|
service WatchService {
|
|
// Subscribe to file changes
|
|
rpc subscribeToFile(SubscribeToFileRequest) returns (stream FileChangeEvent);
|
|
}
|
|
|
|
// Request to subscribe to file changes
|
|
message SubscribeToFileRequest {
|
|
cline.Metadata metadata = 1;
|
|
string path = 2;
|
|
}
|
|
|
|
// Event representing a file change
|
|
message FileChangeEvent {
|
|
enum ChangeType {
|
|
CREATED = 0;
|
|
CHANGED = 1;
|
|
DELETED = 2;
|
|
}
|
|
|
|
string path = 1;
|
|
ChangeType type = 2;
|
|
string content = 3; // Optional content of the file after change
|
|
}
|