Host workspace repositories on Central Gitea
This commit is contained in:
+39
-47
@@ -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;
|
||||
}
|
||||
|
||||
@@ -2,70 +2,14 @@ syntax = "proto3";
|
||||
|
||||
package quixos;
|
||||
|
||||
import "camino/schema.proto";
|
||||
import "quixos/refs.proto";
|
||||
|
||||
message PackageRef {
|
||||
string package_namespace = 1;
|
||||
string package_name = 2;
|
||||
uint32 descriptor_version = 3;
|
||||
string version_ref = 4;
|
||||
}
|
||||
|
||||
message PackageDescriptor {
|
||||
string package_namespace = 1;
|
||||
string package_name = 2;
|
||||
uint32 descriptor_version = 3;
|
||||
uint32 interface_compatible_back_to = 4;
|
||||
uint32 runner_compatible_back_to = 5;
|
||||
string source_repo = 6;
|
||||
string source_ref = 7;
|
||||
string resolved_source_ref = 8;
|
||||
string server_installable = 9;
|
||||
string runtime_protocol_version = 10;
|
||||
repeated ClassExport class_exports = 11;
|
||||
repeated FunctionExport function_exports = 12;
|
||||
repeated ComponentExport component_exports = 13;
|
||||
repeated SidecarExport sidecar_exports = 14;
|
||||
repeated PackageDependency dependencies = 15;
|
||||
string package_id = 1;
|
||||
string package_revision_id = 2;
|
||||
string runtime_protocol_version = 3;
|
||||
repeated RuntimeExport exports = 4;
|
||||
}
|
||||
|
||||
enum FunctionCapabilityKind {
|
||||
FUNCTION_CAPABILITY_KIND_UNSPECIFIED = 0;
|
||||
METHOD = 1;
|
||||
FIELD_RESOLVER = 2;
|
||||
MIGRATION = 3;
|
||||
CONSTRUCTOR = 4;
|
||||
}
|
||||
|
||||
message ClassExport {
|
||||
camino.SymbolRef class_id = 1;
|
||||
string source_file = 2;
|
||||
}
|
||||
|
||||
message FunctionExport {
|
||||
FunctionRef function = 1;
|
||||
string input_type = 2;
|
||||
string output_type = 3;
|
||||
uint32 interface_version = 4;
|
||||
uint32 interface_compatible_back_to = 5;
|
||||
FunctionCapabilityKind capability_kind = 6;
|
||||
}
|
||||
|
||||
message ComponentExport {
|
||||
string symbol = 1;
|
||||
string props_type = 2;
|
||||
repeated camino.SymbolRef supported_classes = 3;
|
||||
}
|
||||
|
||||
message SidecarExport {
|
||||
string symbol = 1;
|
||||
string side_effect_mode = 2;
|
||||
}
|
||||
|
||||
message PackageDependency {
|
||||
PackageRef package = 1;
|
||||
uint32 interface_compatible_back_to = 2;
|
||||
bool refactor_required = 3;
|
||||
string compatibility_note = 4;
|
||||
message RuntimeExport {
|
||||
string export_id = 1;
|
||||
string runtime_symbol = 2;
|
||||
}
|
||||
|
||||
+23
-6
@@ -2,10 +2,27 @@ syntax = "proto3";
|
||||
|
||||
package quixos;
|
||||
|
||||
message FunctionRef {
|
||||
string package_namespace = 1;
|
||||
string package_name = 2;
|
||||
string symbol = 3;
|
||||
string version_ref = 4;
|
||||
string operation = 5;
|
||||
message CapabilityRef {
|
||||
string interface_revision_id = 1;
|
||||
string operation_id = 2;
|
||||
}
|
||||
|
||||
message PackageExportRef {
|
||||
string package_revision_id = 1;
|
||||
string export_id = 2;
|
||||
}
|
||||
|
||||
message InjectedDependency {
|
||||
string port_id = 1;
|
||||
oneof binding {
|
||||
string state_slot_id = 2;
|
||||
EdgeDependency edge = 3;
|
||||
string receiver_interface_revision_id = 4;
|
||||
string constructor_atom_id = 5;
|
||||
}
|
||||
}
|
||||
|
||||
message EdgeDependency {
|
||||
string edge_type_id = 1;
|
||||
string projection_id = 2;
|
||||
}
|
||||
|
||||
+10
-13
@@ -11,24 +11,20 @@ service PackageRuntime {
|
||||
rpc Watch(WatchRequest) returns (stream WatchEvent);
|
||||
}
|
||||
|
||||
message HandshakeRequest {
|
||||
string orch_protocol_version = 1;
|
||||
}
|
||||
|
||||
message HandshakeRequest { string orch_protocol_version = 1; }
|
||||
message HandshakeResponse {
|
||||
string package_namespace = 1;
|
||||
string package_name = 2;
|
||||
string runtime_protocol_version = 3;
|
||||
repeated quixos.FunctionRef functions = 4;
|
||||
string package_revision_id = 1;
|
||||
string runtime_protocol_version = 2;
|
||||
repeated string export_ids = 3;
|
||||
}
|
||||
|
||||
message InvokeRequest {
|
||||
string invocation_id = 1;
|
||||
quixos.FunctionRef function = 2;
|
||||
quixos.PackageExportRef export = 2;
|
||||
string object_id = 3;
|
||||
map<string, camino.Value> input = 4;
|
||||
repeated quixos.InjectedDependency dependencies = 5;
|
||||
}
|
||||
|
||||
message InvokeResponse {
|
||||
bool ok = 1;
|
||||
camino.Value result = 2;
|
||||
@@ -37,16 +33,17 @@ message InvokeResponse {
|
||||
|
||||
message WatchRequest {
|
||||
string invocation_id = 1;
|
||||
quixos.FunctionRef function = 2;
|
||||
quixos.PackageExportRef export = 2;
|
||||
string object_id = 3;
|
||||
map<string, camino.Value> input = 4;
|
||||
repeated quixos.InjectedDependency dependencies = 5;
|
||||
}
|
||||
|
||||
message DerivedDependency {
|
||||
string kind = 1;
|
||||
string object_id = 2;
|
||||
string field_name = 3;
|
||||
string source_field = 4;
|
||||
string attachment_id = 3;
|
||||
string projection_id = 4;
|
||||
}
|
||||
|
||||
message WatchEvent {
|
||||
|
||||
Reference in New Issue
Block a user