Files
cursor-byok/proto/from_extensions/anyrun_v1.proto
T
leookun 2f47f02497 chore(cursor-proxy-debugger): enhance traffic capture for Fork Chat and update README
- Added support for capturing and decoding Fork Chat traffic, including `ForkBackgroundComposer`, `NotifyConversationClone`, and `UploadConversationBlobs`.
- Updated the README to reflect new features and usage instructions for Fork Chat traffic.
- Modified `.gitignore` to include `proto/extensions-cursor-app/`.
- Refactored `Taskfile.yml` to improve error messages related to Cursor extensions.
- Introduced new tests for decoding functionality in `cursor-proxy-debugger`.
2026-08-05 01:17:01 +08:00

1430 lines
40 KiB
Protocol Buffer

syntax = "proto3";
package anyrun.v1;
import "google/protobuf/empty.proto";
option go_package = "react-admin/cursor-server/gen/anyrun/v1;anyrunv1";
// Copied from: local:anyrun.v1.AllowedDomain (var: mt)
message AllowedDomain {
string domain = 1;
}
// Copied from: local:anyrun.v1.AllowedTcpDestination (var: ct)
message AllowedTcpDestination {
string cidr = 1;
uint32 port = 2;
}
// Copied from: local:anyrun.v1.AntiAffinityTags (var: ze)
message AntiAffinityTags {
repeated string tags = 1;
}
// Copied from: local:anyrun.v1.AnygressLocalPodDenyRules (var: Ke)
message AnygressLocalPodDenyRules {
uint32 version = 1;
string pod_id = 2;
AnygressPerPodDenyRules deny_rules = 3;
}
// Copied from: local:anyrun.v1.AnygressPerPodDenyRules (var: Ye)
message AnygressPerPodDenyRules {
map<string, AnygressPodDenyRuleList> denies = 1;
}
// Copied from: local:anyrun.v1.AnygressPodDenyRule (var: He)
message AnygressPodDenyRule {
string verb = 1;
string path = 2;
}
// Copied from: local:anyrun.v1.AnygressPodDenyRuleList (var: Ve)
message AnygressPodDenyRuleList {
repeated AnygressPodDenyRule rules = 1;
}
// Copied from: local:anyrun.v1.AttachProcessRequest (var: J)
message AttachProcessRequest {
int64 pid = 1;
optional string last_event_id = 2;
}
// Copied from: local:anyrun.v1.BlobStorageFormat (var: f)
enum BlobStorageFormat {
BLOB_STORAGE_FORMAT_LEGACY_UNSPECIFIED = 0;
BLOB_STORAGE_FORMAT_V1 = 1;
BLOB_STORAGE_FORMAT_VM_SNAPSHOT_V1 = 2;
BLOB_STORAGE_FORMAT_V2 = 3;
BLOB_STORAGE_FORMAT_V2_LAYERED = 4;
BLOB_STORAGE_FORMAT_V3 = 5;
}
// Copied from: local:anyrun.v1.Build (var: et)
message Build {
string dockerfile = 1;
string context = 2;
}
// Copied from: local:anyrun.v1.BuildStatusLine (var: Ae)
message BuildStatusLine {
uint32 stream_id = 1;
string timestamp = 2;
string content = 3;
}
// Copied from: local:anyrun.v1.BuildStepStarted (var: he)
message BuildStepStarted {
uint32 stream_id = 1;
uint32 step = 2;
uint32 total_steps = 3;
string command = 4;
}
// Copied from: local:anyrun.v1.CloneCompleted (var: ve)
message CloneCompleted {
ClonePurpose purpose = 1;
}
// Copied from: local:anyrun.v1.ClonePurpose (var: a)
enum ClonePurpose {
CLONE_PURPOSE_UNSPECIFIED = 0;
CLONE_PURPOSE_DOCKER_BUILD = 1;
CLONE_PURPOSE_WORKSPACE_SETUP = 2;
}
// Copied from: local:anyrun.v1.CloneStarted (var: Ie)
message CloneStarted {
ClonePurpose purpose = 1;
}
// Copied from: local:anyrun.v1.ContainerRuntime (var: d)
enum ContainerRuntime {
CONTAINER_RUNTIME_DOCKERD_UNSPECIFIED = 0;
CONTAINER_RUNTIME_ISOD_RUNC = 1;
}
// Copied from: local:anyrun.v1.ContainerWaitFailure (var: jt)
message ContainerWaitFailure {
int64 exit_code = 1;
string message = 2;
}
// Copied from: local:anyrun.v1.CreateProcessRequest (var: v)
message CreateProcessRequest {
repeated string command = 1;
string user = 2;
string working_directory = 3;
map<string, string> env = 4;
optional string idempotency_key = 5;
optional ProcessSupervision supervision = 6;
}
// Copied from: local:anyrun.v1.CreateProcessResponse (var: B)
message CreateProcessResponse {
int64 pid = 1;
bool reused_existing_pid = 2;
optional int64 process_pid = 3;
}
// Copied from: local:anyrun.v1.DaemonCommandHandlerPersistentState (var: Lt)
message DaemonCommandHandlerPersistentState {
int64 vpid = 1;
optional string last_event_id = 2;
}
// Copied from: local:anyrun.v1.DaemonPod (var: nn)
message DaemonPod {
PodStatus status = 2;
optional uint32 internal_proxy_port = 3;
optional DefaultPortConfig default_port_config = 4;
optional string started_from_checkpoint_group_id = 5;
optional string started_from_checkpoint_id = 8;
optional PodStartCacheSource started_from_cache_source = 6;
optional uint64 started_from_checkpoint_creation_timestamp = 7;
}
// Copied from: local:anyrun.v1.DefaultPortConfig (var: Ce)
message DefaultPortConfig {
oneof authentication {
google.protobuf.Empty open = 3;
google.protobuf.Empty token = 4;
}
oneof visibility {
google.protobuf.Empty public = 1;
google.protobuf.Empty private = 2;
}
}
// Copied from: local:anyrun.v1.DevContainerConfig (var: $e)
message DevContainerConfig {
// Copied from: local:anyrun.v1.DevContainerConfig.RegistryReferenceAlias (var: g)
enum RegistryReferenceAlias {
REGISTRY_REFERENCE_ALIAS_UNSPECIFIED = 0;
REGISTRY_REFERENCE_ALIAS_BUILDER = 1;
}
optional bytes prepare_commands_tag = 19;
repeated DevContainerExecCommand prepare_commands = 8;
optional bytes install_commands_tag = 20;
repeated DevContainerExecCommand install_commands = 9;
optional bytes verify_commands_tag = 24;
repeated DevContainerExecCommand verify_commands = 25;
optional bytes start_commands_tag = 21;
repeated DevContainerExecCommand start_commands = 10;
repeated PortDefinition ports = 11;
optional DefaultPortConfig default_port_config = 26;
optional string user = 12;
repeated DevContainerEnv env = 13;
string shell = 14;
optional bool privileged = 17;
optional bool build_container = 29;
optional uint64 checkpoint_threshold_ms = 23;
optional bool enable_cgroup_subtree_control = 30;
optional bool enable_checkpoint_scratch_drive = 34;
optional bool blob_client_resilience_enabled = 35;
optional bool skip_workspace_source_checkout = 36;
ContainerRuntime container_runtime = 37;
FirecrackerVersion firecracker_version = 39;
oneof image {
string registry_reference = 4;
string snapshot_id = 5;
Build build = 6;
ExternalSnapshot external_snapshot = 27;
string checkpoint_group_id = 28;
RegistryReferenceAlias registry_reference_alias = 32;
InlineBuild inline_build = 33;
DockerArchiveImage docker_archive = 38;
}
oneof source {
GitRepoSourceReference git = 1;
TarRepoSourceReference tar = 2;
LocalDirectoryReference local = 15;
TarGzipUrlSourceReference tar_gzip_url = 16;
NoopSourceReference noop = 22;
MultiSourceReference multi = 31;
}
oneof workspace {
string workspace_path = 7;
string workdir_relative_path = 18;
}
}
// Copied from: local:anyrun.v1.DevContainerEnv (var: je)
message DevContainerEnv {
string name = 1;
optional string value_hash = 4;
oneof value {
string inline = 2;
string encrypted = 3;
}
}
// Copied from: local:anyrun.v1.DevContainerExecCommand (var: Ne)
message DevContainerExecCommand {
string name = 1;
optional string user = 2;
string command = 3;
bool is_system = 4;
optional string cache_key = 5;
bool failure_tolerant = 6;
repeated string depends_on = 7;
bool depends_on_git_checkout = 8;
optional ProcessSupervision supervision = 9;
bool ignore_failure_for_install_health = 10;
}
// Copied from: local:anyrun.v1.DevContainerSpec (var: We)
message DevContainerSpec {
string name = 5;
optional string platform = 23;
optional uint64 deletion_timestamp = 6;
optional uint64 hibernation_timestamp = 14;
map<string, string> pod_labels = 7;
map<string, string> node_labels = 8;
repeated string low_cardinality_pod_labels = 27;
ResourceRequests requests = 9;
ResourceRequests hibernated_requests = 16;
ResourceLimits limits = 10;
optional bool cache = 13;
optional bool enable_base_container_cache = 20;
optional bool enable_checkpoint_read = 18;
optional bool enable_checkpoint_write = 19;
BlobStorageFormat blob_storage_format = 17;
optional string cache_tag = 15;
string workload = 21;
DevContainerConfig config = 12;
optional bool persist_config = 22;
optional uint32 expected_fork_count = 24;
optional EgressPolicy egress_policy = 26;
optional AnygressPerPodDenyRules anygress_per_pod_deny_rules = 28;
optional AntiAffinityTags anti_affinity_tags = 32;
}
// Copied from: local:anyrun.v1.DirectoryEntry (var: j)
message DirectoryEntry {
string name = 1;
string path = 2;
EntryType type = 3;
uint64 size_bytes = 4;
int64 modified_at_unix_ms = 5;
}
// Copied from: local:anyrun.v1.DiskUsage (var: Me)
message DiskUsage {
uint64 bytes_used = 1;
uint64 bytes_total = 2;
optional double busy_percentage = 3;
}
// Copied from: local:anyrun.v1.DockerArchiveImage (var: Ze)
message DockerArchiveImage {
string url = 1;
string registry_reference = 2;
}
// Copied from: local:anyrun.v1.DockerBuildConfig (var: rt)
message DockerBuildConfig {
string dockerfile = 1;
string context = 2;
string user = 3;
string registry_cache_ref = 4;
RegistryCredentials cache_registry_credentials = 5;
repeated DockerBuildSecretEntry build_secrets = 6;
repeated string cache_from_refs = 7;
}
// Copied from: local:anyrun.v1.DockerBuildFailure (var: Zt)
message DockerBuildFailure {
int64 exit_code = 1;
}
// Copied from: local:anyrun.v1.DockerBuildResult (var: it)
message DockerBuildResult {
DockerImageRef image = 1;
}
// Copied from: local:anyrun.v1.DockerBuildSecretEntry (var: nt)
message DockerBuildSecretEntry {
string name = 1;
optional string value_hash = 4;
oneof value {
string inline = 2;
string encrypted = 3;
}
}
// Copied from: local:anyrun.v1.DockerContainerPersistentState (var: bt)
message DockerContainerPersistentState {
string id = 1;
string name = 2;
bool stopped = 3;
bool removed = 4;
bool leaked = 5;
optional uint64 post_pause_unpause_delay_ms = 6;
optional string isod_container_name = 8;
}
// Copied from: local:anyrun.v1.DockerDevContainerPersistentState (var: Pt)
message DockerDevContainerPersistentState {
string name = 1;
DockerContainerPersistentState container = 2;
RuntimeStatePersistentState runtime_state = 3;
ImageMetadata image_metadata = 4;
NetworkInfo network_info = 5;
optional string user = 6;
string shell = 7;
uint32 daemon_port = 8;
WorkspaceConfig workspace = 9;
bool v2_hydrated = 10;
}
// Copied from: local:anyrun.v1.DockerImageBuildEvent (var: at)
message DockerImageBuildEvent {
uint64 creation_timestamp = 1;
oneof payload {
google.protobuf.Empty queued = 2;
google.protobuf.Empty started = 3;
string build_status_message = 4;
BuildStepStarted build_step_started = 5;
BuildStatusLine build_status_line = 6;
InternalBuildMessage internal_build_message = 7;
PodErrorEvent error = 8;
DockerBuildResult completed = 9;
int32 build_exit_code = 10;
}
}
// Copied from: local:anyrun.v1.DockerImageRef (var: ot)
message DockerImageRef {
string registry_reference = 1;
}
// Copied from: local:anyrun.v1.DrainingReason (var: l)
enum DrainingReason {
DRAINING_REASON_UNSPECIFIED = 0;
DRAINING_REASON_CAPACITY = 1;
DRAINING_REASON_UPGRADE = 2;
DRAINING_REASON_MANUAL = 3;
DRAINING_REASON_HEALTH = 4;
}
// Copied from: local:anyrun.v1.EgressPolicy (var: lt)
message EgressPolicy {
repeated ScmConfig scm = 3;
bool use_scm_egress_config = 4;
oneof policy {
google.protobuf.Empty allow_all = 1;
EgressRestricted restricted = 2;
}
}
// Copied from: local:anyrun.v1.EgressRestricted (var: ut)
message EgressRestricted {
repeated AllowedDomain allowed_domains = 1;
repeated AllowedTcpDestination allowed_tcp_destinations = 2;
}
// Copied from: local:anyrun.v1.EntryType (var: o)
enum EntryType {
ENTRY_TYPE_UNSPECIFIED = 0;
ENTRY_TYPE_FILE = 1;
ENTRY_TYPE_DIRECTORY = 2;
ENTRY_TYPE_SYMLINK = 3;
}
// Copied from: local:anyrun.v1.EnvironmentBuildBootInfo (var: Fe)
message EnvironmentBuildBootInfo {
string build_id = 1;
string snapshot_id = 2;
WorkspaceGitSetupMode workspace_git_setup_mode = 3;
WarmForkMode warm_fork_mode = 4;
bool fast_forward_default_branch = 5;
}
// Copied from: local:anyrun.v1.ExternalSnapshot (var: Xe)
message ExternalSnapshot {
string snapshot_id = 1;
string presigned_url = 2;
ImageMetadata image_metadata = 3;
BlobStorageFormat blob_storage_format = 4;
optional string node_machine_type = 5;
optional string cpu_baseline_id = 6;
optional SnapshotUsageStats usage_stats = 7;
}
// Copied from: local:anyrun.v1.FeatureExitCode (var: ge)
message FeatureExitCode {
string feature_id = 1;
int64 exit_code = 2;
}
// Copied from: local:anyrun.v1.FeatureOutput (var: fe)
message FeatureOutput {
string feature_id = 1;
string output = 2;
}
// Copied from: local:anyrun.v1.FirecrackerVersion (var: p)
enum FirecrackerVersion {
FIRECRACKER_VERSION_UNSPECIFIED = 0;
FIRECRACKER_VERSION_V1_12_1 = 1;
FIRECRACKER_VERSION_V1_16_1 = 2;
}
// Copied from: local:anyrun.v1.GetProcessStatusRequest (var: b)
message GetProcessStatusRequest {
int64 pid = 1;
}
// Copied from: local:anyrun.v1.GetProcessStatusResponse (var: M)
message GetProcessStatusResponse {
// Copied from: local:anyrun.v1.GetProcessStatusResponse.Completed (var: F)
message Completed {
int32 exit_code = 1;
}
// Copied from: local:anyrun.v1.GetProcessStatusResponse.Running (var: L)
message Running {
}
oneof status {
Running running = 1;
Completed completed = 2;
}
}
// Copied from: local:anyrun.v1.GitCheckoutFailure (var: en)
message GitCheckoutFailure {
int64 exit_code = 1;
}
// Copied from: local:anyrun.v1.GitCloneFailure (var: $t)
message GitCloneFailure {
int64 exit_code = 1;
GitCloneFailureCategory category = 2;
bool retryable = 3;
optional string remote_host = 4;
optional int32 http_status = 5;
}
// Copied from: local:anyrun.v1.GitCloneFailureCategory (var: y)
enum GitCloneFailureCategory {
GIT_CLONE_FAILURE_CATEGORY_UNSPECIFIED = 0;
GIT_CLONE_FAILURE_CATEGORY_IP_ALLOW_LIST = 1;
GIT_CLONE_FAILURE_CATEGORY_INVALID_CREDENTIALS = 2;
GIT_CLONE_FAILURE_CATEGORY_SSO_REDIRECT = 3;
GIT_CLONE_FAILURE_CATEGORY_PROXY_CONNECT = 4;
GIT_CLONE_FAILURE_CATEGORY_CONNECTION_RESET = 5;
GIT_CLONE_FAILURE_CATEGORY_TRANSPORT_INTERRUPTED = 6;
GIT_CLONE_FAILURE_CATEGORY_REMOTE_FORBIDDEN = 7;
GIT_CLONE_FAILURE_CATEGORY_UPSTREAM_BAD_GATEWAY = 8;
}
// Copied from: local:anyrun.v1.GitRepoSourceReference (var: qe)
message GitRepoSourceReference {
string cache_uri = 1;
string checkout_uri = 2;
bytes commit_hash = 3;
string http_proxy = 5;
optional string mtls_cert_pem = 6;
optional string mtls_key_pem = 7;
}
// Copied from: local:anyrun.v1.HttpHealthCheck (var: G)
message HttpHealthCheck {
string url = 1;
string method = 2;
map<string, string> headers = 3;
bytes body = 4;
uint32 interval_ms = 5;
uint32 timeout_ms = 6;
uint32 start_period_ms = 7;
uint32 unhealthy_threshold = 8;
}
// Copied from: local:anyrun.v1.HydrationProgress (var: de)
message HydrationProgress {
uint64 transferred = 1;
uint64 total = 2;
}
// Copied from: local:anyrun.v1.ImageMetadata (var: Be)
message ImageMetadata {
optional string user = 1;
map<string, string> env = 2;
optional string working_dir = 3;
optional string arch = 4;
}
// Copied from: local:anyrun.v1.ImagePullCompleted (var: Ee)
message ImagePullCompleted {
string image_name = 1;
string pull_id = 2;
}
// Copied from: local:anyrun.v1.ImagePullFailure (var: tn)
message ImagePullFailure {
ImagePullFailureCategory category = 1;
bool retryable = 2;
optional int32 http_status = 3;
optional string repository = 4;
}
// Copied from: local:anyrun.v1.ImagePullFailureCategory (var: k)
enum ImagePullFailureCategory {
IMAGE_PULL_FAILURE_CATEGORY_UNSPECIFIED = 0;
IMAGE_PULL_FAILURE_CATEGORY_DENIED = 1;
IMAGE_PULL_FAILURE_CATEGORY_UNAUTHORIZED = 2;
IMAGE_PULL_FAILURE_CATEGORY_NOT_FOUND = 3;
IMAGE_PULL_FAILURE_CATEGORY_RATE_LIMITED = 4;
IMAGE_PULL_FAILURE_CATEGORY_UPSTREAM = 5;
}
// Copied from: local:anyrun.v1.ImagePullLayerUpdate (var: ye)
message ImagePullLayerUpdate {
string image_name = 1;
string pull_id = 2;
string layer_id = 3;
oneof status {
bool pulling_fs_layer = 4;
bool waiting = 5;
bool verifying_checksum = 6;
bool download_complete = 7;
bool pull_complete = 8;
ProgressDetail downloading = 9;
ProgressDetail extracting = 10;
string other = 11;
}
}
// Copied from: local:anyrun.v1.ImagePullStarted (var: Te)
message ImagePullStarted {
string image_name = 1;
string pull_id = 2;
}
// Copied from: local:anyrun.v1.ImagePullStatusUpdate (var: we)
message ImagePullStatusUpdate {
string image_name = 1;
string pull_id = 2;
string status = 3;
}
// Copied from: local:anyrun.v1.InlineBuild (var: tt)
message InlineBuild {
string dockerfile_contents = 1;
string context = 2;
}
// Copied from: local:anyrun.v1.InstallCommand (var: Se)
message InstallCommand {
string name = 1;
string command = 2;
optional string user = 3;
bool is_system = 4;
bool failure_tolerant = 5;
}
// Copied from: local:anyrun.v1.InstallCommandFailure (var: Xt)
message InstallCommandFailure {
bool is_system = 1;
}
// Copied from: local:anyrun.v1.InternalBuildMessage (var: _e)
message InternalBuildMessage {
uint32 stream_id = 1;
string content = 2;
}
// Copied from: local:anyrun.v1.IsoDevContainerMetadata (var: Et)
message IsoDevContainerMetadata {
string name = 1;
DockerDevContainerPersistentState persistent_state = 2;
IsoEnvConfig env_config = 3;
repeated PersistedDriveDescriptor drive_descriptors = 4;
}
// Copied from: local:anyrun.v1.IsoEnvBalloonConfig (var: Nt)
message IsoEnvBalloonConfig {
uint32 amount_mib = 1;
bool deflate_on_oom = 2;
optional uint32 stats_polling_interval_s = 3;
}
// Copied from: local:anyrun.v1.IsoEnvConfig (var: Rt)
message IsoEnvConfig {
uint32 vcpu_count = 1;
uint32 mem_size_mib = 2;
optional uint32 swap_size_mib = 3;
optional uint32 rootfs_size_mib = 4;
repeated IsoEnvExtraDriveConfig extra_drives = 5;
optional IsoEnvBalloonConfig balloon = 6;
FirecrackerVersion firecracker_version = 7;
}
// Copied from: local:anyrun.v1.IsoEnvExtraDriveConfig (var: Ct)
message IsoEnvExtraDriveConfig {
IsoEnvExtraDrivePurpose purpose = 1;
uint32 size_mib = 3;
string drive_id = 4;
string guest_device = 5;
string guest_mount_path = 6;
}
// Copied from: local:anyrun.v1.IsoEnvExtraDrivePurpose (var: A)
enum IsoEnvExtraDrivePurpose {
ISO_ENV_EXTRA_DRIVE_PURPOSE_UNSPECIFIED = 0;
ISO_ENV_EXTRA_DRIVE_PURPOSE_CHECKPOINT_SCRATCH = 1;
}
// Copied from: local:anyrun.v1.LifecycleProcessExited (var: le)
message LifecycleProcessExited {
int32 exit_code = 1;
string command_name = 2;
}
// Copied from: local:anyrun.v1.LifecycleProcessRestarted (var: ae)
message LifecycleProcessRestarted {
uint32 attempt = 1;
int32 previous_exit_code = 2;
RestartReason reason = 3;
string command_name = 4;
}
// Copied from: local:anyrun.v1.ListDirectoryRequest (var: W)
message ListDirectoryRequest {
string path = 1;
bool include_hidden = 2;
}
// Copied from: local:anyrun.v1.ListDirectoryResponse (var: z)
message ListDirectoryResponse {
repeated DirectoryEntry entries = 1;
}
// Copied from: local:anyrun.v1.ListProcessesRequest (var: q)
message ListProcessesRequest {
}
// Copied from: local:anyrun.v1.ListProcessesResponse (var: O)
message ListProcessesResponse {
repeated ListedProcess processes = 1;
}
// Copied from: local:anyrun.v1.ListedProcess (var: D)
message ListedProcess {
int64 pid = 1;
GetProcessStatusResponse status = 2;
}
// Copied from: local:anyrun.v1.LocalDirectoryReference (var: Oe)
message LocalDirectoryReference {
string path = 1;
}
// Copied from: local:anyrun.v1.MemoryUsage (var: Le)
message MemoryUsage {
uint64 bytes_used = 1;
uint64 bytes_total = 2;
uint64 collected_at_timestamp = 3;
}
// Copied from: local:anyrun.v1.MultiSourceEntry (var: Qe)
message MultiSourceEntry {
string relative_path = 1;
oneof source {
GitRepoSourceReference git = 2;
TarRepoSourceReference tar = 3;
LocalDirectoryReference local = 4;
TarGzipUrlSourceReference tar_gzip_url = 5;
NoopSourceReference noop = 6;
}
}
// Copied from: local:anyrun.v1.MultiSourceReference (var: Ge)
message MultiSourceReference {
repeated MultiSourceEntry sources = 1;
}
// Copied from: local:anyrun.v1.NetworkInfo (var: Ft)
message NetworkInfo {
string ip_address = 1;
}
// Copied from: local:anyrun.v1.NoopSourceReference (var: xe)
message NoopSourceReference {
}
// Copied from: local:anyrun.v1.PersistedDevContainerConfig (var: wt)
message PersistedDevContainerConfig {
repeated DevContainerExecCommand prepare_commands = 10;
repeated DevContainerExecCommand install_commands = 11;
repeated DevContainerExecCommand verify_commands = 19;
repeated DevContainerExecCommand start_commands = 12;
repeated PersistedEnvVar env = 13;
repeated PortDefinition ports = 14;
string shell = 15;
optional string user = 16;
optional bool privileged = 17;
optional bool build_container = 22;
optional bool enable_checkpoint_scratch_drive = 25;
optional bool blob_client_resilience_enabled = 26;
ContainerRuntime container_runtime = 27;
FirecrackerVersion firecracker_version = 28;
oneof image {
string registry_reference = 5;
Build build = 6;
string snapshot_id = 7;
PersistedExternalSnapshot external_snapshot = 20;
string checkpoint_group_id = 21;
DevContainerConfig.RegistryReferenceAlias registry_reference_alias = 24;
}
oneof source {
PersistedGitRepoSource git = 1;
PersistedTarRepoSource tar = 2;
PersistedLocalRepoSource local = 3;
PersistedTarGzipUrlSource tar_gzip_url = 4;
PersistedNoopSource noop = 18;
PersistedMultiSource multi = 23;
}
oneof workspace {
string workspace_path = 8;
string workdir_relative_path = 9;
}
}
// Copied from: local:anyrun.v1.PersistedDriveDescriptor (var: St)
message PersistedDriveDescriptor {
oneof descriptor {
PersistedFileDriveDescriptor file_v1 = 1;
PersistedLazySquashfsDriveDescriptor lazy_squashfs_v1 = 2;
}
}
// Copied from: local:anyrun.v1.PersistedEnvVar (var: kt)
message PersistedEnvVar {
string name = 1;
string value = 2;
}
// Copied from: local:anyrun.v1.PersistedExternalSnapshot (var: yt)
message PersistedExternalSnapshot {
string snapshot_id = 1;
optional string cpu_baseline_id = 2;
}
// Copied from: local:anyrun.v1.PersistedFileDriveDescriptor (var: It)
message PersistedFileDriveDescriptor {
string artifact_reference = 1;
string drive_id = 2;
string guest_path = 3;
bool is_root_device = 4;
optional uint32 size_mib = 5;
}
// Copied from: local:anyrun.v1.PersistedGitRepoSource (var: pt)
message PersistedGitRepoSource {
string cache_uri = 1;
bytes commit_hash = 2;
}
// Copied from: local:anyrun.v1.PersistedLazyCheckpointSource (var: Jt)
message PersistedLazyCheckpointSource {
string tenant_id = 1;
string checkpoint_id = 2;
}
// Copied from: local:anyrun.v1.PersistedLazySnapshotSource (var: Bt)
message PersistedLazySnapshotSource {
string tenant_id = 1;
string snapshot_id = 2;
}
// Copied from: local:anyrun.v1.PersistedLazySquashfsDriveDescriptor (var: vt)
message PersistedLazySquashfsDriveDescriptor {
string drive_id = 1;
string guest_path = 2;
uint64 chunk_size = 4;
oneof source {
PersistedLazySnapshotSource snapshot = 3;
PersistedLazyCheckpointSource checkpoint = 5;
}
}
// Copied from: local:anyrun.v1.PersistedLocalRepoSource (var: gt)
message PersistedLocalRepoSource {
string path = 1;
}
// Copied from: local:anyrun.v1.PersistedMultiSource (var: Tt)
message PersistedMultiSource {
repeated PersistedMultiSourceEntry sources = 1;
}
// Copied from: local:anyrun.v1.PersistedMultiSourceEntry (var: _t)
message PersistedMultiSourceEntry {
string relative_path = 1;
oneof source {
PersistedGitRepoSource git = 2;
PersistedTarRepoSource tar = 3;
PersistedLocalRepoSource local = 4;
PersistedTarGzipUrlSource tar_gzip_url = 5;
PersistedNoopSource noop = 6;
}
}
// Copied from: local:anyrun.v1.PersistedNoopSource (var: At)
message PersistedNoopSource {
}
// Copied from: local:anyrun.v1.PersistedTarGzipUrlSource (var: ht)
message PersistedTarGzipUrlSource {
string name = 1;
}
// Copied from: local:anyrun.v1.PersistedTarRepoSource (var: ft)
message PersistedTarRepoSource {
string name = 1;
}
// Copied from: local:anyrun.v1.Pod (var: xt)
message Pod {
string tenant_id = 1;
string pod_id = 2;
uint32 resource_version = 9;
string name = 10;
map<string, string> labels = 11;
uint64 creation_timestamp = 12;
optional uint64 deletion_timestamp = 13;
optional uint64 hibernation_timestamp = 14;
ResourceRequests resource_requests = 4;
ResourceRequests hibernated_resource_requests = 20;
optional ResourceLimits resource_limits = 17;
optional bool cache = 18;
optional string cache_tag = 19;
string workload = 21;
string node_id = 5;
optional bool hibernated = 15;
string network_token = 7;
PodStatus status = 8;
PodPorts ports = 6;
optional uint32 internal_proxy_port = 22;
optional PersistedDevContainerConfig config = 16;
optional uint64 modified_timestamp = 23;
optional uint64 pod_awake_since = 24;
repeated string low_cardinality_labels = 25;
repeated string checkpoint_group_ids = 26;
optional string started_from_checkpoint_group_id = 27;
optional string started_from_checkpoint_id = 30;
optional PodStartCacheSource started_from_cache_source = 28;
optional uint64 started_from_checkpoint_creation_timestamp = 29;
optional AntiAffinityTags anti_affinity_tags = 31;
optional bool collect_metrics = 32;
}
// Copied from: local:anyrun.v1.PodCollection (var: Qt)
message PodCollection {
repeated Pod items = 1;
optional string next_cursor = 2;
}
// Copied from: local:anyrun.v1.PodCreatingPhase (var: T)
enum PodCreatingPhase {
POD_CREATING_PHASE_UNSPECIFIED = 0;
POD_CREATING_PHASE_CLONE = 1;
POD_CREATING_PHASE_BUILD = 2;
POD_CREATING_PHASE_POST_CREATE = 3;
POD_CREATING_PHASE_UPDATE_CONTENT = 4;
POD_CREATING_PHASE_POST_START = 5;
}
// Copied from: local:anyrun.v1.PodCreatingStatus (var: Vt)
message PodCreatingStatus {
PodCreatingPhase phase = 1;
}
// Copied from: local:anyrun.v1.PodDiskUsage (var: R)
message PodDiskUsage {
string device = 1;
uint64 usage_bytes = 2;
uint64 limit_bytes = 3;
string path = 4;
}
// Copied from: local:anyrun.v1.PodErrorEvent (var: pe)
message PodErrorEvent {
string error_message = 1;
}
// Copied from: local:anyrun.v1.PodEvent (var: ie)
message PodEvent {
uint64 creation_timestamp = 49;
oneof payload {
PodErrorEvent error = 26;
string debug_event = 1;
google.protobuf.Empty hydration_started = 43;
HydrationProgress hydration_progress = 44;
google.protobuf.Empty hydration_completed = 45;
google.protobuf.Empty clone_started = 31;
google.protobuf.Empty clone_completed = 32;
CloneStarted clone_started_v2 = 51;
CloneCompleted clone_completed_v2 = 52;
google.protobuf.Empty checkout_started = 33;
google.protobuf.Empty checkout_completed = 34;
string build_started = 2;
string build_status_message = 3;
BuildStepStarted build_step_started = 27;
BuildStatusLine build_status_line = 28;
InternalBuildMessage internal_build_message = 29;
int32 build_exit_code = 30;
string prepare_stdout = 14;
string prepare_stderr = 15;
int64 prepare_exit_code = 16;
InstallCommand install_command = 50;
string install_stdout = 17;
string install_stderr = 18;
int64 install_exit_code = 19;
string verify_stdout = 46;
string verify_stderr = 47;
int64 verify_exit_code = 48;
string start_stdout = 6;
string start_stderr = 7;
int64 start_exit_code = 8;
FeatureOutput extension_install_stdout = 20;
FeatureOutput extension_install_stderr = 21;
FeatureExitCode extension_install_exit_code = 22;
google.protobuf.Empty snapshot_started = 35;
google.protobuf.Empty snapshot_completed = 36;
google.protobuf.Empty creation_completed = 9;
string post_start_stdout = 10;
string post_start_stderr = 11;
int64 post_start_exit_code = 12;
FeatureOutput extension_start_stdout = 23;
FeatureOutput extension_start_stderr = 24;
FeatureExitCode extension_start_exit_code = 25;
google.protobuf.Empty startup_completed = 13;
ImagePullStarted image_pull_started = 37;
ImagePullLayerUpdate image_pull_layer_update = 38;
ImagePullStatusUpdate image_pull_status_update = 39;
ImagePullCompleted image_pull_completed = 40;
PodIdentity blocked_repo_state = 41;
google.protobuf.Empty acquired_repo_state = 42;
google.protobuf.Empty private_worker_ready = 53;
WaitingForWorkerStatus waiting_for_worker = 54;
SpanStarted span_started = 55;
SpanEnded span_ended = 56;
LifecycleProcessRestarted lifecycle_process_restarted = 57;
LifecycleProcessExited lifecycle_process_exited = 58;
}
}
// Copied from: local:anyrun.v1.PodFailedStatus (var: Kt)
message PodFailedStatus {
string reason = 1;
optional PodFailureDetails failure_details = 2;
}
// Copied from: local:anyrun.v1.PodFailureDetails (var: zt)
message PodFailureDetails {
oneof details {
InstallCommandFailure install_command_failure = 1;
DockerBuildFailure docker_build_failure = 2;
GitCloneFailure git_clone_failure = 3;
GitCheckoutFailure git_checkout_failure = 4;
ContainerWaitFailure container_wait_failure = 5;
ImagePullFailure image_pull_failure = 6;
}
}
// Copied from: local:anyrun.v1.PodFilter (var: Ht)
message PodFilter {
optional string pod_id = 1;
map<string, string> labels = 2;
}
// Copied from: local:anyrun.v1.PodIdentity (var: oe)
message PodIdentity {
string tenant_id = 1;
string pod_id = 2;
}
// Copied from: local:anyrun.v1.PodMetricsSample (var: N)
message PodMetricsSample {
uint64 cpu_usage_mcores = 1;
uint64 cpu_limit_mcores = 2;
uint64 memory_usage_bytes = 3;
uint64 memory_limit_bytes = 4;
uint64 cgroup_memory_current_bytes = 5;
uint64 cgroup_memory_max_bytes = 6;
uint64 oom_kill_count = 7;
uint64 pids_current = 8;
uint64 pids_max = 9;
uint64 process_count = 10;
uint64 new_procs_this_interval = 12;
uint64 procs_seen_total = 13;
map<string, uint64> process_state_counts = 14;
map<string, uint64> top_procs_by_name = 15;
repeated TopProcess top_procs = 16;
double memory_psi_full_avg10 = 17;
int64 oom_victim_pid = 18;
string oom_victim_comm = 19;
uint64 oom_victim_rss_kb = 20;
repeated PodDiskUsage disk_usage_by_device = 21;
uint64 event_stream_subscribers_fell_behind_total = 22;
double cpu_psi_some_avg10 = 23;
}
// Copied from: local:anyrun.v1.PodPorts (var: Dt)
message PodPorts {
repeated PortDefinition ports = 1;
optional DefaultPortConfig default_port_config = 2;
}
// Copied from: local:anyrun.v1.PodRunningStatus (var: Yt)
message PodRunningStatus {
optional uint64 missed_heartbeat_deadline = 1;
}
// Copied from: local:anyrun.v1.PodStartCacheSource (var: _)
enum PodStartCacheSource {
POD_START_CACHE_SOURCE_UNSPECIFIED = 0;
POD_START_CACHE_SOURCE_NODE_LOCAL_FIRECRACKER_SNAPSHOT = 1;
POD_START_CACHE_SOURCE_REMOTE_ROOTAR_CHECKPOINT = 2;
}
// Copied from: local:anyrun.v1.PodStatus (var: Ut)
message PodStatus {
oneof status {
PodCreatingStatus creating = 1;
PodRunningStatus running = 2;
PodFailedStatus failed = 3;
PodTerminatedStatus terminated = 4;
}
}
// Copied from: local:anyrun.v1.PodTerminatedStatus (var: Wt)
message PodTerminatedStatus {
string reason = 1;
optional uint32 exit_code = 2;
}
// Copied from: local:anyrun.v1.PodUpdate (var: Gt)
message PodUpdate {
optional string event_id = 1;
oneof update {
PodCollection initial = 2;
Pod added = 3;
Pod updated = 4;
Pod removed = 5;
}
}
// Copied from: local:anyrun.v1.PortDefinition (var: Je)
message PortDefinition {
string name = 1;
uint32 port = 2;
oneof authentication {
google.protobuf.Empty open = 5;
google.protobuf.Empty token = 6;
}
oneof visibility {
google.protobuf.Empty public = 3;
google.protobuf.Empty private = 4;
}
}
// Copied from: local:anyrun.v1.PortState (var: Ot)
message PortState {
string port_name = 1;
uint32 container_port = 2;
uint32 host_port = 3;
oneof authentication {
google.protobuf.Empty open = 6;
google.protobuf.Empty token = 7;
}
oneof visibility {
google.protobuf.Empty public = 4;
google.protobuf.Empty private = 5;
}
}
// Copied from: local:anyrun.v1.PrivateWorkerWaitReason (var: i)
enum PrivateWorkerWaitReason {
PRIVATE_WORKER_WAIT_REASON_UNSPECIFIED = 0;
PRIVATE_WORKER_WAIT_REASON_NO_CONNECTED_WORKERS = 1;
PRIVATE_WORKER_WAIT_REASON_LABEL_MISMATCH = 2;
PRIVATE_WORKER_WAIT_REASON_OWNER_FILTERED = 3;
PRIVATE_WORKER_WAIT_REASON_SHARED_ASSIGNMENT_FILTERED = 4;
PRIVATE_WORKER_WAIT_REASON_ALL_BUSY = 5;
}
// Copied from: local:anyrun.v1.ProcessEvent (var: U)
message ProcessEvent {
string event_id = 1;
oneof data {
StdoutData stdout = 2;
StderrData stderr = 3;
ProcessExited exited = 4;
ProcessRestarted restarted = 5;
}
}
// Copied from: local:anyrun.v1.ProcessExited (var: Y)
message ProcessExited {
int32 exit_code = 1;
}
// Copied from: local:anyrun.v1.ProcessRestarted (var: K)
message ProcessRestarted {
uint32 attempt = 1;
int32 previous_exit_code = 2;
RestartReason reason = 3;
}
// Copied from: local:anyrun.v1.ProcessSupervision (var: x)
message ProcessSupervision {
RestartPolicy restart_policy = 1;
optional RestartBackoff backoff = 2;
optional HttpHealthCheck health_check = 3;
}
// Copied from: local:anyrun.v1.ProgressDetail (var: ke)
message ProgressDetail {
uint64 current = 1;
uint64 total = 2;
}
// Copied from: local:anyrun.v1.ReadBinaryFileRequest (var: te)
message ReadBinaryFileRequest {
string path = 1;
}
// Copied from: local:anyrun.v1.ReadBinaryFileResponse (var: ne)
message ReadBinaryFileResponse {
bytes content = 1;
}
// Copied from: local:anyrun.v1.ReadTextFileRequest (var: X)
message ReadTextFileRequest {
string path = 1;
}
// Copied from: local:anyrun.v1.ReadTextFileResponse (var: Z)
message ReadTextFileResponse {
string content = 1;
}
// Copied from: local:anyrun.v1.RegistryCredentials (var: st)
message RegistryCredentials {
string registry_url = 1;
string username = 2;
string password = 3;
}
// Copied from: local:anyrun.v1.ResourceLimits (var: Pe)
message ResourceLimits {
optional uint64 cpu_mcores = 1;
optional uint64 memory_mb = 2;
optional uint64 disk_mb = 3;
optional uint64 swap_mb = 4;
}
// Copied from: local:anyrun.v1.ResourceRequests (var: Re)
message ResourceRequests {
uint64 cpu_mcores = 1;
uint64 memory_mb = 2;
uint64 disk_mb = 3;
uint64 gpu_count = 4;
}
// Copied from: local:anyrun.v1.RestartBackoff (var: Q)
message RestartBackoff {
uint32 initial_ms = 1;
uint32 max_ms = 2;
double multiplier = 3;
uint32 reset_after_healthy_ms = 4;
}
// Copied from: local:anyrun.v1.RestartPolicy (var: r)
enum RestartPolicy {
RESTART_POLICY_UNSPECIFIED = 0;
RESTART_POLICY_NEVER = 1;
RESTART_POLICY_ON_FAILURE = 2;
RESTART_POLICY_ALWAYS = 3;
}
// Copied from: local:anyrun.v1.RestartReason (var: s)
enum RestartReason {
RESTART_REASON_UNSPECIFIED = 0;
RESTART_REASON_PROCESS_EXITED = 1;
RESTART_REASON_HEALTH_CHECK_FAILED = 2;
}
// Copied from: local:anyrun.v1.RuntimeStatePersistentState (var: Mt)
message RuntimeStatePersistentState {
map<string, DaemonCommandHandlerPersistentState> command_handlers = 1;
}
// Copied from: local:anyrun.v1.ScmConfig (var: dt)
message ScmConfig {
// Copied from: local:anyrun.v1.ScmConfig.AuthMethod (var: h)
enum AuthMethod {
AUTH_METHOD_UNSPECIFIED = 0;
AUTH_METHOD_BASIC = 1;
AUTH_METHOD_BEARER = 2;
}
string domain = 1;
string auth_value = 2;
string proxy_url = 3;
AuthMethod auth_method = 4;
}
// Copied from: local:anyrun.v1.Snapshot (var: rn)
message Snapshot {
string snapshot_id = 1;
uint32 resource_version = 2;
string name = 3;
map<string, string> labels = 4;
uint64 creation_timestamp = 5;
optional uint64 deletion_timestamp = 6;
optional uint64 deletion_duration_ms = 12;
optional uint64 archive_timestamp = 14;
optional uint64 archive_duration_ms = 15;
string tenant_id = 7;
string pod_id = 8;
optional PersistedDevContainerConfig pod_config = 13;
SnapshotState state = 9;
ImageMetadata image_metadata = 10;
BlobStorageFormat blob_storage_format = 11;
optional string node_machine_type = 16;
optional ResourceRequests resource_requests = 17;
optional ResourceLimits resource_limits = 18;
optional string cpu_baseline_id = 19;
optional SnapshotUsageStats usage_stats = 20;
optional uint64 object_size_bytes = 21;
}
// Copied from: local:anyrun.v1.SnapshotCollection (var: sn)
message SnapshotCollection {
repeated Snapshot items = 1;
optional string next_cursor = 2;
}
// Copied from: local:anyrun.v1.SnapshotExtraDriveFile (var: an)
message SnapshotExtraDriveFile {
string drive_id = 1;
repeated SnapshotFileChunk file_chunks = 2;
uint64 file_size = 3;
}
// Copied from: local:anyrun.v1.SnapshotFileChunk (var: on)
message SnapshotFileChunk {
uint64 blob_begin = 1;
uint64 blob_end = 2;
uint64 file_begin = 3;
uint64 file_end = 4;
string hash = 5;
}
// Copied from: local:anyrun.v1.SnapshotState (var: w)
enum SnapshotState {
SNAPSHOT_STATE_UNSPECIFIED = 0;
SNAPSHOT_STATE_CREATING = 1;
SNAPSHOT_STATE_READY = 2;
SNAPSHOT_STATE_FAILED = 3;
}
// Copied from: local:anyrun.v1.SnapshotUsageStats (var: be)
message SnapshotUsageStats {
uint64 max_memory_bytes = 1;
uint64 avg_cpu_mcores = 2;
uint32 sample_count = 3;
uint64 last_updated_timestamp = 4;
optional uint64 max_cache_adjusted_memory_bytes = 5;
uint32 cache_adjusted_sample_count = 6;
}
// Copied from: local:anyrun.v1.SnapshotVmSnapshotV1Metadata (var: ln)
message SnapshotVmSnapshotV1Metadata {
repeated SnapshotFileChunk rootfs_file_chunks = 1;
uint64 rootfs_file_size = 2;
SnapshotFileChunk memory_file_chunk = 3;
SnapshotFileChunk state_file_chunk = 4;
SnapshotFileChunk kernel_file_chunk = 5;
IsoDevContainerMetadata dev_container_metadata = 6;
repeated SnapshotExtraDriveFile extra_drive_files = 7;
}
// Copied from: local:anyrun.v1.SpanEnded (var: me)
message SpanEnded {
string span_id = 1;
}
// Copied from: local:anyrun.v1.SpanStarted (var: ue)
message SpanStarted {
string span_id = 1;
string name = 2;
optional string parent_span_id = 3;
optional string href = 5;
}
// Copied from: local:anyrun.v1.StderrData (var: V)
message StderrData {
bytes data = 1;
}
// Copied from: local:anyrun.v1.StdoutData (var: H)
message StdoutData {
bytes data = 1;
}
// Copied from: local:anyrun.v1.StreamMetricsRequest (var: C)
message StreamMetricsRequest {
}
// Copied from: local:anyrun.v1.TarGzipUrlSourceReference (var: Ue)
message TarGzipUrlSourceReference {
string name = 1;
string url = 2;
}
// Copied from: local:anyrun.v1.TarRepoSourceReference (var: De)
message TarRepoSourceReference {
string name = 1;
bytes tar_archive = 2;
}
// Copied from: local:anyrun.v1.TopProcess (var: P)
message TopProcess {
int64 pid = 1;
int64 ppid = 2;
string comm = 3;
string state = 4;
uint64 rss_kb = 5;
uint64 threads = 6;
uint64 num_fds = 7;
uint64 cpu_ticks_delta = 8;
}
// Copied from: local:anyrun.v1.UploadPriority (var: u)
enum UploadPriority {
UPLOAD_PRIORITY_UNSPECIFIED = 0;
UPLOAD_PRIORITY_P0 = 1;
UPLOAD_PRIORITY_P1 = 2;
UPLOAD_PRIORITY_P2 = 3;
}
// Copied from: local:anyrun.v1.WaitingForWorkerStatus (var: ce)
message WaitingForWorkerStatus {
int32 retry_count = 1;
int32 max_retries = 2;
PrivateWorkerWaitReason wait_reason = 3;
}
// Copied from: local:anyrun.v1.WarmForkMode (var: c)
enum WarmForkMode {
WARM_FORK_MODE_UNSPECIFIED = 0;
WARM_FORK_MODE_NONE = 1;
WARM_FORK_MODE_FORKED = 2;
WARM_FORK_MODE_COLD_FALLBACK = 3;
}
// Copied from: local:anyrun.v1.WorkspaceConfig (var: qt)
message WorkspaceConfig {
oneof config {
string absolute = 1;
string workdir_relative = 2;
}
}
// Copied from: local:anyrun.v1.WorkspaceGitSetupMode (var: m)
enum WorkspaceGitSetupMode {
WORKSPACE_GIT_SETUP_MODE_UNSPECIFIED = 0;
WORKSPACE_GIT_SETUP_MODE_REUSE = 1;
WORKSPACE_GIT_SETUP_MODE_REUSE_THEN_CHECKOUT = 2;
}
// Copied from: local:anyrun.v1.WriteBinaryFileRequest (var: re)
message WriteBinaryFileRequest {
string path = 1;
bytes content = 2;
}
// Copied from: local:anyrun.v1.WriteBinaryFileResponse (var: se)
message WriteBinaryFileResponse {
}
// Copied from: local:anyrun.v1.WriteTextFileRequest (var: $)
message WriteTextFileRequest {
string path = 1;
string content = 2;
}
// Copied from: local:anyrun.v1.WriteTextFileResponse (var: ee)
message WriteTextFileResponse {
}