Add watch stream protocol

This commit is contained in:
Timothy J. Aveni
2026-07-12 14:00:39 -07:00
parent 63a3d99588
commit 7c91982f8f
9 changed files with 253 additions and 12 deletions
+23
View File
@@ -8,6 +8,7 @@ import "quixos/refs.proto";
service PackageRuntime {
rpc Handshake(HandshakeRequest) returns (HandshakeResponse);
rpc Invoke(InvokeRequest) returns (InvokeResponse);
rpc Watch(WatchRequest) returns (stream WatchEvent);
}
message HandshakeRequest {
@@ -33,3 +34,25 @@ message InvokeResponse {
camino.Value result = 2;
string error = 3;
}
message WatchRequest {
string invocation_id = 1;
quixos.FunctionRef function = 2;
string object_id = 3;
map<string, camino.Value> input = 4;
}
message DerivedDependency {
string kind = 1;
string object_id = 2;
string field_name = 3;
string source_field = 4;
}
message WatchEvent {
string watch_id = 1;
camino.Value value = 2;
repeated DerivedDependency dependencies = 3;
string error = 4;
bool initial = 5;
}