Host workspace repositories on Central Gitea

This commit is contained in:
2026-09-03 15:46:52 -07:00
parent 3c2e4a7e85
commit c33dfc2817
57 changed files with 14864 additions and 2788 deletions
+39 -47
View File
@@ -8,21 +8,28 @@ import "quixos/refs.proto";
import "quixos/runtime.proto";
service OrchestratorRuntime {
rpc InvokeFunction(InvokeFunctionRequest) returns (InvokeFunctionResponse);
rpc WatchFunction(WatchFunctionRequest) returns (stream WatchFunctionEvent);
rpc InvokeCapability(InvokeCapabilityRequest) returns (InvokeCapabilityResponse);
rpc WatchCapability(WatchCapabilityRequest) returns (stream WatchCapabilityEvent);
rpc ConstructObject(ConstructObjectRequest) returns (ConstructObjectResponse);
rpc GetWorkspace(GetWorkspaceRequest) returns (GetWorkspaceResponse);
rpc ListPackageDescriptors(ListPackageDescriptorsRequest) returns (ListPackageDescriptorsResponse);
rpc ListPackageRuntimes(ListPackageRuntimesRequest) returns (ListPackageRuntimesResponse);
rpc ListActivations(ListActivationsRequest) returns (ListActivationsResponse);
rpc CloseActivation(CloseActivationRequest) returns (CloseActivationResponse);
}
message InvokeFunctionRequest {
quixos.FunctionRef function = 1;
message ConstructObjectRequest {
string atom_id = 1;
map<string, camino.Value> input = 2;
}
message ConstructObjectResponse { camino.CaminoObject object = 1; }
message InvokeCapabilityRequest {
quixos.CapabilityRef capability = 1;
string object_id = 2;
map<string, camino.Value> input = 3;
}
message InvokeFunctionResponse {
message InvokeCapabilityResponse {
string invocation_id = 1;
Activation activation = 2;
bool ok = 3;
@@ -30,13 +37,12 @@ message InvokeFunctionResponse {
string error = 5;
}
message WatchFunctionRequest {
quixos.FunctionRef function = 1;
message WatchCapabilityRequest {
quixos.CapabilityRef capability = 1;
string object_id = 2;
map<string, camino.Value> input = 3;
}
message WatchFunctionEvent {
message WatchCapabilityEvent {
string invocation_id = 1;
Activation activation = 2;
string watch_id = 3;
@@ -46,36 +52,24 @@ message WatchFunctionEvent {
bool initial = 7;
}
message GetWorkspaceRequest {}
message GetWorkspaceResponse {
string workspace_id = 1;
string workspace_revision_id = 2;
string source_root_commit = 3;
}
message ListActivationsRequest {}
message ListPackageDescriptorsRequest {}
message ListPackageDescriptorsResponse {
repeated quixos.PackageDescriptor descriptors = 1;
}
message ListPackageDescriptorsResponse { repeated quixos.PackageDescriptor descriptors = 1; }
message ListPackageRuntimesRequest {}
message ListPackageRuntimesResponse {
repeated PackageRuntimeStatus runtimes = 1;
}
message ListActivationsResponse {
repeated Activation activations = 1;
}
message CloseActivationRequest {
string activation_id = 1;
string reason = 2;
}
message CloseActivationResponse {
Activation activation = 1;
}
message ListPackageRuntimesResponse { repeated PackageRuntimeStatus runtimes = 1; }
message ListActivationsResponse { repeated Activation activations = 1; }
message CloseActivationRequest { string activation_id = 1; string reason = 2; }
message CloseActivationResponse { Activation activation = 1; }
message Activation {
string activation_id = 1;
quixos.FunctionRef function = 2;
quixos.PackageExportRef export = 2;
string object_id = 3;
string state = 4;
uint32 demand = 5;
@@ -88,17 +82,15 @@ message Activation {
message PackageRuntimeStatus {
string runtime_key = 1;
string package_namespace = 2;
string package_name = 3;
uint32 descriptor_version = 4;
string source_repo = 5;
string server_installable = 6;
string source_path = 7;
string server_path = 8;
uint32 pid = 9;
string state = 10;
string started_at = 11;
string last_handshake_at = 12;
string runtime_protocol_version = 13;
uint32 advertised_function_count = 14;
string package_revision_id = 2;
string source_repository = 3;
string source_commit = 4;
string build_target = 5;
string server_path = 6;
uint32 pid = 7;
string state = 8;
string started_at = 9;
string last_handshake_at = 10;
string runtime_protocol_version = 11;
uint32 advertised_export_count = 12;
}