Skip to content

Commit

Permalink
Update agent proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Otterverse committed Feb 12, 2025
1 parent 3f5d610 commit 0fcdfcc
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions proto/viam/app/agent/v1/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,37 @@ message DeviceAgentConfigRequest {
// info about the host system
HostInfo host_info = 2;
// current subsystems and versions
map<string, string> subsystem_versions = 3;
// DEPRECATED in favor of version_info
map<string, string> subsystem_versions = 3 [deprecated = true];
// Currently installed versions for agent and viam-server
VersionInfo version_info = 4;
}

message DeviceAgentConfigResponse {
// subsystems to be installed/configured/updated
// note: previously installed subsystems will be removed from the system if removed from this list
map<string, DeviceSubsystemConfig> subsystem_configs = 1;
// DEPRECATED in favor of indidivual update_info and settings fields
map<string, DeviceSubsystemConfig> subsystem_configs = 1 [deprecated = true];

// how often this request should be repeated
google.protobuf.Duration check_interval = 2;

// update info for agent and viam-server, parsed/processed in App
UpdateInfo agent_update_info = 3;
UpdateInfo viam_server_update_info = 4;

// various settings that are passed directly to device Agent
google.protobuf.Struct advanced_settings = 5;
google.protobuf.Struct network_configuration = 6;
google.protobuf.Struct additional_networks = 7;
google.protobuf.Struct system_configuration = 8;
}

// DEPRECATED as of January 2025
message DeviceSubsystemConfig {
option deprecated = true;
// data needed to download/validate the subsystem
SubsystemUpdateInfo update_info = 1;
UpdateInfo update_info = 1;

Check failure on line 52 in proto/viam/app/agent/v1/agent.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "1" with name "update_info" on message "DeviceSubsystemConfig" changed type from "viam.app.agent.v1.SubsystemUpdateInfo" to "viam.app.agent.v1.UpdateInfo".
// if this subsystem is disabled and should not be started by the agent
bool disable = 2;
// force_restart will restart the subsystem, even if no updates are available
Expand All @@ -41,6 +58,17 @@ message DeviceSubsystemConfig {
google.protobuf.Struct attributes = 4;
}

message VersionInfo {
// the version of agent currently running and making the request
string agent_running = 1;
// the version of agent installed (will run after restart if different)
string agent_installed = 2;
// the version of viam-server currently running
string viam_server_running = 3;
// the version of viam-server installed (will run after restart if different)
string viam_server_installed = 4;
}

message HostInfo {
// platform is the docker styled combination of kernel and architecture. Ex: linux/amd64, darwin/arm64
string platform = 1;
Expand All @@ -51,7 +79,7 @@ message HostInfo {
repeated string tags = 3;
}

message SubsystemUpdateInfo {
message UpdateInfo {
// unpacked filename as it is expected on disk (regardless of url)
string filename = 1;
// url to download from
Expand Down

0 comments on commit 0fcdfcc

Please sign in to comment.