Documentation
¶
Index ¶
- Variables
- type AgentApprovalEvent
- func (*AgentApprovalEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentApprovalEvent) GetDescription() string
- func (x *AgentApprovalEvent) GetOperationType() string
- func (x *AgentApprovalEvent) GetRequestId() string
- func (x *AgentApprovalEvent) GetRiskLevel() RiskLevel
- func (x *AgentApprovalEvent) GetTimeoutSeconds() int32
- func (*AgentApprovalEvent) ProtoMessage()
- func (x *AgentApprovalEvent) ProtoReflect() protoreflect.Message
- func (x *AgentApprovalEvent) Reset()
- func (x *AgentApprovalEvent) String() string
- type AgentApprovalResponse
- func (*AgentApprovalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AgentApprovalResponse) GetApproved() bool
- func (x *AgentApprovalResponse) GetReason() string
- func (x *AgentApprovalResponse) GetRequestId() string
- func (*AgentApprovalResponse) ProtoMessage()
- func (x *AgentApprovalResponse) ProtoReflect() protoreflect.Message
- func (x *AgentApprovalResponse) Reset()
- func (x *AgentApprovalResponse) String() string
- type AgentCapabilities
- func (*AgentCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *AgentCapabilities) GetAgentic() bool
- func (x *AgentCapabilities) GetApprovalWorkflows() bool
- func (x *AgentCapabilities) GetCodeExecution() bool
- func (x *AgentCapabilities) GetFileModification() bool
- func (x *AgentCapabilities) GetSessionResumption() bool
- func (x *AgentCapabilities) GetStreaming() bool
- func (x *AgentCapabilities) GetToolUse() bool
- func (*AgentCapabilities) ProtoMessage()
- func (x *AgentCapabilities) ProtoReflect() protoreflect.Message
- func (x *AgentCapabilities) Reset()
- func (x *AgentCapabilities) String() string
- type AgentCommandEvent
- func (*AgentCommandEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentCommandEvent) GetCommand() string
- func (x *AgentCommandEvent) GetDuration() *durationpb.Duration
- func (x *AgentCommandEvent) GetExitCode() int32
- func (x *AgentCommandEvent) GetOutput() string
- func (x *AgentCommandEvent) GetStatus() string
- func (x *AgentCommandEvent) GetWorkingDirectory() string
- func (*AgentCommandEvent) ProtoMessage()
- func (x *AgentCommandEvent) ProtoReflect() protoreflect.Message
- func (x *AgentCommandEvent) Reset()
- func (x *AgentCommandEvent) String() string
- type AgentErrorEvent
- func (*AgentErrorEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentErrorEvent) GetCanRetry() bool
- func (x *AgentErrorEvent) GetCode() string
- func (x *AgentErrorEvent) GetIsFatal() bool
- func (x *AgentErrorEvent) GetMessage() string
- func (*AgentErrorEvent) ProtoMessage()
- func (x *AgentErrorEvent) ProtoReflect() protoreflect.Message
- func (x *AgentErrorEvent) Reset()
- func (x *AgentErrorEvent) String() string
- type AgentEvent
- func (*AgentEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentEvent) GetApproval() *AgentApprovalEvent
- func (x *AgentEvent) GetCommand() *AgentCommandEvent
- func (x *AgentEvent) GetDetails() isAgentEvent_Details
- func (x *AgentEvent) GetError() *AgentErrorEvent
- func (x *AgentEvent) GetFile() *AgentFileEvent
- func (x *AgentEvent) GetPhase() AgentPhase
- func (x *AgentEvent) GetSessionId() string
- func (x *AgentEvent) GetStatus() *AgentStatusEvent
- func (x *AgentEvent) GetSummary() *AgentSummaryEvent
- func (x *AgentEvent) GetText() *AgentTextEvent
- func (x *AgentEvent) GetTimestamp() *timestamppb.Timestamp
- func (x *AgentEvent) GetTokens() *AgentTokensEvent
- func (*AgentEvent) ProtoMessage()
- func (x *AgentEvent) ProtoReflect() protoreflect.Message
- func (x *AgentEvent) Reset()
- func (x *AgentEvent) String() string
- type AgentEvent_Approval
- type AgentEvent_Command
- type AgentEvent_Error
- type AgentEvent_File
- type AgentEvent_Status
- type AgentEvent_Summary
- type AgentEvent_Text
- type AgentEvent_Tokens
- type AgentFileEvent
- func (*AgentFileEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentFileEvent) GetAction() string
- func (x *AgentFileEvent) GetContentSize() int64
- func (x *AgentFileEvent) GetPath() string
- func (x *AgentFileEvent) GetStatus() string
- func (*AgentFileEvent) ProtoMessage()
- func (x *AgentFileEvent) ProtoReflect() protoreflect.Message
- func (x *AgentFileEvent) Reset()
- func (x *AgentFileEvent) String() string
- type AgentInfo
- func (*AgentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AgentInfo) GetCapabilities() *AgentCapabilities
- func (x *AgentInfo) GetDefaultModel() string
- func (x *AgentInfo) GetDescription() string
- func (x *AgentInfo) GetDisplayName() string
- func (x *AgentInfo) GetIsAvailable() bool
- func (x *AgentInfo) GetName() string
- func (x *AgentInfo) GetSupportedModels() []string
- func (x *AgentInfo) GetSupportedSandboxModes() []string
- func (x *AgentInfo) GetUnavailableReason() string
- func (*AgentInfo) ProtoMessage()
- func (x *AgentInfo) ProtoReflect() protoreflect.Message
- func (x *AgentInfo) Reset()
- func (x *AgentInfo) String() string
- type AgentOptions
- func (*AgentOptions) Descriptor() ([]byte, []int)deprecated
- func (x *AgentOptions) GetFullAuto() bool
- func (x *AgentOptions) GetIncludePlanTool() bool
- func (x *AgentOptions) GetMaxTurns() int32
- func (x *AgentOptions) GetModel() string
- func (x *AgentOptions) GetSandbox() string
- func (x *AgentOptions) GetSessionId() string
- func (x *AgentOptions) GetSkipRepositoryChecks() bool
- func (x *AgentOptions) GetTimeout() *durationpb.Duration
- func (x *AgentOptions) GetVerboseOutput() bool
- func (*AgentOptions) ProtoMessage()
- func (x *AgentOptions) ProtoReflect() protoreflect.Message
- func (x *AgentOptions) Reset()
- func (x *AgentOptions) String() string
- type AgentPhase
- type AgentStatusEvent
- func (*AgentStatusEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentStatusEvent) GetCurrentTask() string
- func (x *AgentStatusEvent) GetProgress() int32
- func (x *AgentStatusEvent) GetStatus() string
- func (*AgentStatusEvent) ProtoMessage()
- func (x *AgentStatusEvent) ProtoReflect() protoreflect.Message
- func (x *AgentStatusEvent) Reset()
- func (x *AgentStatusEvent) String() string
- type AgentSummaryEvent
- func (*AgentSummaryEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentSummaryEvent) GetCommandsExecuted() []string
- func (x *AgentSummaryEvent) GetCompletedAt() *timestamppb.Timestamp
- func (x *AgentSummaryEvent) GetErrorMessage() string
- func (x *AgentSummaryEvent) GetFilesModified() []string
- func (x *AgentSummaryEvent) GetFinalPlan() *Plan
- func (x *AgentSummaryEvent) GetModelUsed() string
- func (x *AgentSummaryEvent) GetOverallMessage() string
- func (x *AgentSummaryEvent) GetSessionId() string
- func (x *AgentSummaryEvent) GetStartedAt() *timestamppb.Timestamp
- func (x *AgentSummaryEvent) GetSuccess() bool
- func (x *AgentSummaryEvent) GetTotalDuration() *durationpb.Duration
- func (x *AgentSummaryEvent) GetTurns() int32
- func (x *AgentSummaryEvent) GetVulnerabilitiesFixed() int32
- func (x *AgentSummaryEvent) GetWarnings() []string
- func (*AgentSummaryEvent) ProtoMessage()
- func (x *AgentSummaryEvent) ProtoReflect() protoreflect.Message
- func (x *AgentSummaryEvent) Reset()
- func (x *AgentSummaryEvent) String() string
- type AgentTextEvent
- func (*AgentTextEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentTextEvent) GetIsPartial() bool
- func (x *AgentTextEvent) GetText() string
- func (*AgentTextEvent) ProtoMessage()
- func (x *AgentTextEvent) ProtoReflect() protoreflect.Message
- func (x *AgentTextEvent) Reset()
- func (x *AgentTextEvent) String() string
- type AgentTokensEvent
- func (*AgentTokensEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentTokensEvent) GetCompletionTokens() int32
- func (x *AgentTokensEvent) GetPromptTokens() int32
- func (x *AgentTokensEvent) GetRunningTotal() int32
- func (x *AgentTokensEvent) GetTotalTokens() int32
- func (*AgentTokensEvent) ProtoMessage()
- func (x *AgentTokensEvent) ProtoReflect() protoreflect.Message
- func (x *AgentTokensEvent) Reset()
- func (x *AgentTokensEvent) String() string
- type ApprovalMode
- func (ApprovalMode) Descriptor() protoreflect.EnumDescriptor
- func (x ApprovalMode) Enum() *ApprovalMode
- func (ApprovalMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ApprovalMode) Number() protoreflect.EnumNumber
- func (x ApprovalMode) String() string
- func (ApprovalMode) Type() protoreflect.EnumType
- type ApprovalNeededEvent
- func (*ApprovalNeededEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ApprovalNeededEvent) GetReason() string
- func (x *ApprovalNeededEvent) GetRiskLevel() RiskLevel
- func (x *ApprovalNeededEvent) GetStepId() string
- func (x *ApprovalNeededEvent) GetStepTitle() string
- func (x *ApprovalNeededEvent) GetTimeoutSeconds() int32
- func (*ApprovalNeededEvent) ProtoMessage()
- func (x *ApprovalNeededEvent) ProtoReflect() protoreflect.Message
- func (x *ApprovalNeededEvent) Reset()
- func (x *ApprovalNeededEvent) String() string
- type ApproveStepRequest
- func (*ApproveStepRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveStepRequest) GetApproved() bool
- func (x *ApproveStepRequest) GetReason() string
- func (x *ApproveStepRequest) GetSessionId() string
- func (x *ApproveStepRequest) GetStepId() string
- func (*ApproveStepRequest) ProtoMessage()
- func (x *ApproveStepRequest) ProtoReflect() protoreflect.Message
- func (x *ApproveStepRequest) Reset()
- func (x *ApproveStepRequest) String() string
- type ApproveStepResponse
- func (*ApproveStepResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveStepResponse) GetAccepted() bool
- func (x *ApproveStepResponse) GetCanProceed() bool
- func (x *ApproveStepResponse) GetMessage() string
- func (*ApproveStepResponse) ProtoMessage()
- func (x *ApproveStepResponse) ProtoReflect() protoreflect.Message
- func (x *ApproveStepResponse) Reset()
- func (x *ApproveStepResponse) String() string
- type CommandCompletedEvent
- func (*CommandCompletedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *CommandCompletedEvent) GetCommand() string
- func (x *CommandCompletedEvent) GetDuration() *durationpb.Duration
- func (x *CommandCompletedEvent) GetExitCode() int32
- func (x *CommandCompletedEvent) GetStderr() string
- func (x *CommandCompletedEvent) GetStdout() string
- func (*CommandCompletedEvent) ProtoMessage()
- func (x *CommandCompletedEvent) ProtoReflect() protoreflect.Message
- func (x *CommandCompletedEvent) Reset()
- func (x *CommandCompletedEvent) String() string
- type CommandStartedEvent
- func (*CommandStartedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *CommandStartedEvent) GetCommand() string
- func (x *CommandStartedEvent) GetWorkingDirectory() string
- func (*CommandStartedEvent) ProtoMessage()
- func (x *CommandStartedEvent) ProtoReflect() protoreflect.Message
- func (x *CommandStartedEvent) Reset()
- func (x *CommandStartedEvent) String() string
- type ExecutePlanRequest
- func (*ExecutePlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutePlanRequest) GetOptions() *ExecutionOptions
- func (x *ExecutePlanRequest) GetPlan() *Plan
- func (x *ExecutePlanRequest) GetPlanBytes() []byte
- func (x *ExecutePlanRequest) GetSource() isExecutePlanRequest_Source
- func (x *ExecutePlanRequest) GetTargetPath() string
- func (*ExecutePlanRequest) ProtoMessage()
- func (x *ExecutePlanRequest) ProtoReflect() protoreflect.Message
- func (x *ExecutePlanRequest) Reset()
- func (x *ExecutePlanRequest) String() string
- type ExecutePlanRequest_Plan
- type ExecutePlanRequest_PlanBytes
- type ExecuteWithAgentRequest
- func (*ExecuteWithAgentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteWithAgentRequest) GetAgent() string
- func (x *ExecuteWithAgentRequest) GetOptions() *AgentOptions
- func (x *ExecuteWithAgentRequest) GetPrompt() string
- func (x *ExecuteWithAgentRequest) GetSbomBytes() []byte
- func (x *ExecuteWithAgentRequest) GetSbomFormat() v1.Format
- func (x *ExecuteWithAgentRequest) GetScanResult() *v11.ScanResponse
- func (x *ExecuteWithAgentRequest) GetSource() isExecuteWithAgentRequest_Source
- func (x *ExecuteWithAgentRequest) GetTargetPath() string
- func (*ExecuteWithAgentRequest) ProtoMessage()
- func (x *ExecuteWithAgentRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteWithAgentRequest) Reset()
- func (x *ExecuteWithAgentRequest) String() string
- type ExecuteWithAgentRequest_SbomBytes
- type ExecuteWithAgentRequest_ScanResult
- type ExecutionErrorEvent
- func (*ExecutionErrorEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutionErrorEvent) GetIsFatal() bool
- func (x *ExecutionErrorEvent) GetMessage() string
- func (x *ExecutionErrorEvent) GetStepId() string
- func (*ExecutionErrorEvent) ProtoMessage()
- func (x *ExecutionErrorEvent) ProtoReflect() protoreflect.Message
- func (x *ExecutionErrorEvent) Reset()
- func (x *ExecutionErrorEvent) String() string
- type ExecutionEvent
- func (*ExecutionEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutionEvent) GetApprovalNeeded() *ApprovalNeededEvent
- func (x *ExecutionEvent) GetCommandCompleted() *CommandCompletedEvent
- func (x *ExecutionEvent) GetCommandStarted() *CommandStartedEvent
- func (x *ExecutionEvent) GetDetails() isExecutionEvent_Details
- func (x *ExecutionEvent) GetError() *ExecutionErrorEvent
- func (x *ExecutionEvent) GetMessage() string
- func (x *ExecutionEvent) GetPhase() ExecutionPhase
- func (x *ExecutionEvent) GetProgress() int32
- func (x *ExecutionEvent) GetStepCompleted() *StepCompletedEvent
- func (x *ExecutionEvent) GetStepId() string
- func (x *ExecutionEvent) GetSummary() *ExecutionSummaryEvent
- func (x *ExecutionEvent) GetTimestamp() *timestamppb.Timestamp
- func (*ExecutionEvent) ProtoMessage()
- func (x *ExecutionEvent) ProtoReflect() protoreflect.Message
- func (x *ExecutionEvent) Reset()
- func (x *ExecutionEvent) String() string
- type ExecutionEvent_ApprovalNeeded
- type ExecutionEvent_CommandCompleted
- type ExecutionEvent_CommandStarted
- type ExecutionEvent_Error
- type ExecutionEvent_StepCompleted
- type ExecutionEvent_Summary
- type ExecutionOptions
- func (*ExecutionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutionOptions) GetApprovalMode() ApprovalMode
- func (x *ExecutionOptions) GetDryRun() bool
- func (x *ExecutionOptions) GetSkipStepIds() []string
- func (x *ExecutionOptions) GetStopOnError() bool
- func (x *ExecutionOptions) GetTimeout() *durationpb.Duration
- func (x *ExecutionOptions) GetVerboseOutput() bool
- func (*ExecutionOptions) ProtoMessage()
- func (x *ExecutionOptions) ProtoReflect() protoreflect.Message
- func (x *ExecutionOptions) Reset()
- func (x *ExecutionOptions) String() string
- type ExecutionPhase
- func (ExecutionPhase) Descriptor() protoreflect.EnumDescriptor
- func (x ExecutionPhase) Enum() *ExecutionPhase
- func (ExecutionPhase) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExecutionPhase) Number() protoreflect.EnumNumber
- func (x ExecutionPhase) String() string
- func (ExecutionPhase) Type() protoreflect.EnumType
- type ExecutionSummaryEvent
- func (*ExecutionSummaryEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutionSummaryEvent) GetCommandsExecuted() []string
- func (x *ExecutionSummaryEvent) GetCompletedAt() *timestamppb.Timestamp
- func (x *ExecutionSummaryEvent) GetErrorMessage() string
- func (x *ExecutionSummaryEvent) GetModifiedFiles() []string
- func (x *ExecutionSummaryEvent) GetStartedAt() *timestamppb.Timestamp
- func (x *ExecutionSummaryEvent) GetStepsExecuted() int32
- func (x *ExecutionSummaryEvent) GetStepsFailed() int32
- func (x *ExecutionSummaryEvent) GetStepsSkipped() int32
- func (x *ExecutionSummaryEvent) GetSuccess() bool
- func (x *ExecutionSummaryEvent) GetTotalDuration() *durationpb.Duration
- func (x *ExecutionSummaryEvent) GetVulnerabilitiesAddressed() int32
- func (x *ExecutionSummaryEvent) GetWarnings() []string
- func (*ExecutionSummaryEvent) ProtoMessage()
- func (x *ExecutionSummaryEvent) ProtoReflect() protoreflect.Message
- func (x *ExecutionSummaryEvent) Reset()
- func (x *ExecutionSummaryEvent) String() string
- type GeneratePlanRequest
- func (*GeneratePlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratePlanRequest) GetOptions() *PlanOptions
- func (x *GeneratePlanRequest) GetSbomBytes() []byte
- func (x *GeneratePlanRequest) GetSbomFormat() v1.Format
- func (x *GeneratePlanRequest) GetScanResult() *v11.ScanResponse
- func (x *GeneratePlanRequest) GetSource() isGeneratePlanRequest_Source
- func (*GeneratePlanRequest) ProtoMessage()
- func (x *GeneratePlanRequest) ProtoReflect() protoreflect.Message
- func (x *GeneratePlanRequest) Reset()
- func (x *GeneratePlanRequest) String() string
- type GeneratePlanRequest_SbomBytes
- type GeneratePlanRequest_ScanResult
- type GeneratePlanResponse
- func (*GeneratePlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratePlanResponse) GetGeneratedAt() *timestamppb.Timestamp
- func (x *GeneratePlanResponse) GetPlan() *Plan
- func (x *GeneratePlanResponse) GetStats() *PlanStats
- func (x *GeneratePlanResponse) GetTarget() *v13.Target
- func (x *GeneratePlanResponse) GetWarnings() []string
- func (*GeneratePlanResponse) ProtoMessage()
- func (x *GeneratePlanResponse) ProtoReflect() protoreflect.Message
- func (x *GeneratePlanResponse) Reset()
- func (x *GeneratePlanResponse) String() string
- type ListAgentsRequest
- type ListAgentsResponse
- func (*ListAgentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAgentsResponse) GetAgents() []*AgentInfo
- func (*ListAgentsResponse) ProtoMessage()
- func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAgentsResponse) Reset()
- func (x *ListAgentsResponse) String() string
- type Plan
- func (*Plan) Descriptor() ([]byte, []int)deprecated
- func (x *Plan) GetGeneratedAt() *timestamppb.Timestamp
- func (x *Plan) GetId() string
- func (x *Plan) GetMetadata() map[string]string
- func (x *Plan) GetStdlibUpgrade() string
- func (x *Plan) GetSteps() []*Step
- func (x *Plan) GetTarget() *v13.Target
- func (*Plan) ProtoMessage()
- func (x *Plan) ProtoReflect() protoreflect.Message
- func (x *Plan) Reset()
- func (x *Plan) String() string
- type PlanOptions
- func (*PlanOptions) Descriptor() ([]byte, []int)deprecated
- func (x *PlanOptions) GetIgnoreUnfixed() bool
- func (x *PlanOptions) GetIncludeTransitiveFixes() bool
- func (x *PlanOptions) GetMaxUpgrades() int32
- func (x *PlanOptions) GetPreferMinimalChanges() bool
- func (x *PlanOptions) GetSeverityThreshold() v12.SeverityLevel
- func (x *PlanOptions) GetTargetEcosystems() []string
- func (*PlanOptions) ProtoMessage()
- func (x *PlanOptions) ProtoReflect() protoreflect.Message
- func (x *PlanOptions) Reset()
- func (x *PlanOptions) String() string
- type PlanStats
- func (*PlanStats) Descriptor() ([]byte, []int)deprecated
- func (x *PlanStats) GetAffectedManagers() []string
- func (x *PlanStats) GetAffectedPackages() int32
- func (x *PlanStats) GetExecutableSteps() int32
- func (x *PlanStats) GetHighRiskSteps() int32
- func (x *PlanStats) GetManualSteps() int32
- func (x *PlanStats) GetTotalSteps() int32
- func (x *PlanStats) GetVulnerabilitiesAddressed() int32
- func (*PlanStats) ProtoMessage()
- func (x *PlanStats) ProtoReflect() protoreflect.Message
- func (x *PlanStats) Reset()
- func (x *PlanStats) String() string
- type ResumeAgentRequest
- func (*ResumeAgentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResumeAgentRequest) GetApprovalResponse() *AgentApprovalResponse
- func (x *ResumeAgentRequest) GetMessage() string
- func (x *ResumeAgentRequest) GetSessionId() string
- func (x *ResumeAgentRequest) GetTimeout() *durationpb.Duration
- func (*ResumeAgentRequest) ProtoMessage()
- func (x *ResumeAgentRequest) ProtoReflect() protoreflect.Message
- func (x *ResumeAgentRequest) Reset()
- func (x *ResumeAgentRequest) String() string
- type RiskLevel
- type Step
- func (*Step) Descriptor() ([]byte, []int)deprecated
- func (x *Step) GetAffectedVulnerabilities() []string
- func (x *Step) GetCommand() string
- func (x *Step) GetCurrentVersion() string
- func (x *Step) GetDependsOn() []string
- func (x *Step) GetDescription() string
- func (x *Step) GetExecutable() bool
- func (x *Step) GetHint() string
- func (x *Step) GetId() string
- func (x *Step) GetKind() StepKind
- func (x *Step) GetManager() string
- func (x *Step) GetManifestPath() string
- func (x *Step) GetPackageName() string
- func (x *Step) GetRequiresApproval() bool
- func (x *Step) GetRiskLevel() RiskLevel
- func (x *Step) GetTargetVersion() string
- func (x *Step) GetTitle() string
- func (*Step) ProtoMessage()
- func (x *Step) ProtoReflect() protoreflect.Message
- func (x *Step) Reset()
- func (x *Step) String() string
- type StepCompletedEvent
- func (*StepCompletedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StepCompletedEvent) GetDuration() *durationpb.Duration
- func (x *StepCompletedEvent) GetOutput() string
- func (x *StepCompletedEvent) GetStepId() string
- func (x *StepCompletedEvent) GetSuccess() bool
- func (*StepCompletedEvent) ProtoMessage()
- func (x *StepCompletedEvent) ProtoReflect() protoreflect.Message
- func (x *StepCompletedEvent) Reset()
- func (x *StepCompletedEvent) String() string
- type StepKind
Constants ¶
This section is empty.
Variables ¶
var ( StepKind_name = map[int32]string{ 0: "STEP_KIND_UNSPECIFIED", 1: "STEP_KIND_VERSION_UPGRADE", 2: "STEP_KIND_FILE_EDIT", 3: "STEP_KIND_SHELL_COMMAND", 4: "STEP_KIND_DOCKERFILE_UPDATE", 5: "STEP_KIND_ACTION_UPDATE", 6: "STEP_KIND_CONFIG_CHANGE", 7: "STEP_KIND_CUSTOM_AGENT", } StepKind_value = map[string]int32{ "STEP_KIND_UNSPECIFIED": 0, "STEP_KIND_VERSION_UPGRADE": 1, "STEP_KIND_FILE_EDIT": 2, "STEP_KIND_SHELL_COMMAND": 3, "STEP_KIND_DOCKERFILE_UPDATE": 4, "STEP_KIND_ACTION_UPDATE": 5, "STEP_KIND_CONFIG_CHANGE": 6, "STEP_KIND_CUSTOM_AGENT": 7, } )
Enum value maps for StepKind.
var ( RiskLevel_name = map[int32]string{ 0: "RISK_LEVEL_UNSPECIFIED", 1: "RISK_LEVEL_LOW", 2: "RISK_LEVEL_MEDIUM", 3: "RISK_LEVEL_HIGH", 4: "RISK_LEVEL_CRITICAL", } RiskLevel_value = map[string]int32{ "RISK_LEVEL_UNSPECIFIED": 0, "RISK_LEVEL_LOW": 1, "RISK_LEVEL_MEDIUM": 2, "RISK_LEVEL_HIGH": 3, "RISK_LEVEL_CRITICAL": 4, } )
Enum value maps for RiskLevel.
var ( ApprovalMode_name = map[int32]string{ 0: "APPROVAL_MODE_UNSPECIFIED", 1: "APPROVAL_MODE_AUTO_APPROVE", 2: "APPROVAL_MODE_INTERACTIVE", 3: "APPROVAL_MODE_ALL_STEPS", 4: "APPROVAL_MODE_SKIP_HIGH_RISK", } ApprovalMode_value = map[string]int32{ "APPROVAL_MODE_UNSPECIFIED": 0, "APPROVAL_MODE_AUTO_APPROVE": 1, "APPROVAL_MODE_INTERACTIVE": 2, "APPROVAL_MODE_ALL_STEPS": 3, "APPROVAL_MODE_SKIP_HIGH_RISK": 4, } )
Enum value maps for ApprovalMode.
var ( ExecutionPhase_name = map[int32]string{ 0: "EXECUTION_PHASE_UNSPECIFIED", 1: "EXECUTION_PHASE_PREPARING", 2: "EXECUTION_PHASE_EXECUTING", 3: "EXECUTION_PHASE_COMPLETED", 4: "EXECUTION_PHASE_FAILED", 5: "EXECUTION_PHASE_INTERRUPTED", } ExecutionPhase_value = map[string]int32{ "EXECUTION_PHASE_UNSPECIFIED": 0, "EXECUTION_PHASE_PREPARING": 1, "EXECUTION_PHASE_EXECUTING": 2, "EXECUTION_PHASE_COMPLETED": 3, "EXECUTION_PHASE_FAILED": 4, "EXECUTION_PHASE_INTERRUPTED": 5, } )
Enum value maps for ExecutionPhase.
var ( AgentPhase_name = map[int32]string{ 0: "AGENT_PHASE_UNSPECIFIED", 1: "AGENT_PHASE_ANALYZING", 2: "AGENT_PHASE_PLANNING", 3: "AGENT_PHASE_AWAITING_APPROVAL", 4: "AGENT_PHASE_EXECUTING", 5: "AGENT_PHASE_VERIFYING", 6: "AGENT_PHASE_COMPLETED", 7: "AGENT_PHASE_FAILED", 8: "AGENT_PHASE_INTERRUPTED", } AgentPhase_value = map[string]int32{ "AGENT_PHASE_UNSPECIFIED": 0, "AGENT_PHASE_ANALYZING": 1, "AGENT_PHASE_PLANNING": 2, "AGENT_PHASE_AWAITING_APPROVAL": 3, "AGENT_PHASE_EXECUTING": 4, "AGENT_PHASE_VERIFYING": 5, "AGENT_PHASE_COMPLETED": 6, "AGENT_PHASE_FAILED": 7, "AGENT_PHASE_INTERRUPTED": 8, } )
Enum value maps for AgentPhase.
var File_deputy_remediation_v1_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AgentApprovalEvent ¶
type AgentApprovalEvent struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
OperationType string `protobuf:"bytes,2,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` // "command", "file_write", "file_delete", etc.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
RiskLevel RiskLevel `` /* 126-byte string literal not displayed */
TimeoutSeconds int32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// contains filtered or unexported fields
}
AgentApprovalEvent indicates an operation requires approval.
func (*AgentApprovalEvent) Descriptor
deprecated
func (*AgentApprovalEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentApprovalEvent.ProtoReflect.Descriptor instead.
func (*AgentApprovalEvent) GetDescription ¶
func (x *AgentApprovalEvent) GetDescription() string
func (*AgentApprovalEvent) GetOperationType ¶
func (x *AgentApprovalEvent) GetOperationType() string
func (*AgentApprovalEvent) GetRequestId ¶
func (x *AgentApprovalEvent) GetRequestId() string
func (*AgentApprovalEvent) GetRiskLevel ¶
func (x *AgentApprovalEvent) GetRiskLevel() RiskLevel
func (*AgentApprovalEvent) GetTimeoutSeconds ¶
func (x *AgentApprovalEvent) GetTimeoutSeconds() int32
func (*AgentApprovalEvent) ProtoMessage ¶
func (*AgentApprovalEvent) ProtoMessage()
func (*AgentApprovalEvent) ProtoReflect ¶
func (x *AgentApprovalEvent) ProtoReflect() protoreflect.Message
func (*AgentApprovalEvent) Reset ¶
func (x *AgentApprovalEvent) Reset()
func (*AgentApprovalEvent) String ¶
func (x *AgentApprovalEvent) String() string
type AgentApprovalResponse ¶
type AgentApprovalResponse struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Approved bool `protobuf:"varint,2,opt,name=approved,proto3" json:"approved,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
AgentApprovalResponse is a response to an approval request.
func (*AgentApprovalResponse) Descriptor
deprecated
func (*AgentApprovalResponse) Descriptor() ([]byte, []int)
Deprecated: Use AgentApprovalResponse.ProtoReflect.Descriptor instead.
func (*AgentApprovalResponse) GetApproved ¶
func (x *AgentApprovalResponse) GetApproved() bool
func (*AgentApprovalResponse) GetReason ¶
func (x *AgentApprovalResponse) GetReason() string
func (*AgentApprovalResponse) GetRequestId ¶
func (x *AgentApprovalResponse) GetRequestId() string
func (*AgentApprovalResponse) ProtoMessage ¶
func (*AgentApprovalResponse) ProtoMessage()
func (*AgentApprovalResponse) ProtoReflect ¶
func (x *AgentApprovalResponse) ProtoReflect() protoreflect.Message
func (*AgentApprovalResponse) Reset ¶
func (x *AgentApprovalResponse) Reset()
func (*AgentApprovalResponse) String ¶
func (x *AgentApprovalResponse) String() string
type AgentCapabilities ¶
type AgentCapabilities struct {
Streaming bool `protobuf:"varint,1,opt,name=streaming,proto3" json:"streaming,omitempty"`
ToolUse bool `protobuf:"varint,2,opt,name=tool_use,json=toolUse,proto3" json:"tool_use,omitempty"`
Agentic bool `protobuf:"varint,3,opt,name=agentic,proto3" json:"agentic,omitempty"`
SessionResumption bool `protobuf:"varint,4,opt,name=session_resumption,json=sessionResumption,proto3" json:"session_resumption,omitempty"`
CodeExecution bool `protobuf:"varint,5,opt,name=code_execution,json=codeExecution,proto3" json:"code_execution,omitempty"`
FileModification bool `protobuf:"varint,6,opt,name=file_modification,json=fileModification,proto3" json:"file_modification,omitempty"`
ApprovalWorkflows bool `protobuf:"varint,7,opt,name=approval_workflows,json=approvalWorkflows,proto3" json:"approval_workflows,omitempty"`
// contains filtered or unexported fields
}
AgentCapabilities describes what an agent can do.
func (*AgentCapabilities) Descriptor
deprecated
func (*AgentCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use AgentCapabilities.ProtoReflect.Descriptor instead.
func (*AgentCapabilities) GetAgentic ¶
func (x *AgentCapabilities) GetAgentic() bool
func (*AgentCapabilities) GetApprovalWorkflows ¶
func (x *AgentCapabilities) GetApprovalWorkflows() bool
func (*AgentCapabilities) GetCodeExecution ¶
func (x *AgentCapabilities) GetCodeExecution() bool
func (*AgentCapabilities) GetFileModification ¶
func (x *AgentCapabilities) GetFileModification() bool
func (*AgentCapabilities) GetSessionResumption ¶
func (x *AgentCapabilities) GetSessionResumption() bool
func (*AgentCapabilities) GetStreaming ¶
func (x *AgentCapabilities) GetStreaming() bool
func (*AgentCapabilities) GetToolUse ¶
func (x *AgentCapabilities) GetToolUse() bool
func (*AgentCapabilities) ProtoMessage ¶
func (*AgentCapabilities) ProtoMessage()
func (*AgentCapabilities) ProtoReflect ¶
func (x *AgentCapabilities) ProtoReflect() protoreflect.Message
func (*AgentCapabilities) Reset ¶
func (x *AgentCapabilities) Reset()
func (*AgentCapabilities) String ¶
func (x *AgentCapabilities) String() string
type AgentCommandEvent ¶
type AgentCommandEvent struct {
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // "running", "completed", "failed"
ExitCode *int32 `protobuf:"varint,3,opt,name=exit_code,json=exitCode,proto3,oneof" json:"exit_code,omitempty"`
Output string `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
WorkingDirectory string `protobuf:"bytes,5,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"`
Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
AgentCommandEvent represents a shell command execution.
func (*AgentCommandEvent) Descriptor
deprecated
func (*AgentCommandEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentCommandEvent.ProtoReflect.Descriptor instead.
func (*AgentCommandEvent) GetCommand ¶
func (x *AgentCommandEvent) GetCommand() string
func (*AgentCommandEvent) GetDuration ¶
func (x *AgentCommandEvent) GetDuration() *durationpb.Duration
func (*AgentCommandEvent) GetExitCode ¶
func (x *AgentCommandEvent) GetExitCode() int32
func (*AgentCommandEvent) GetOutput ¶
func (x *AgentCommandEvent) GetOutput() string
func (*AgentCommandEvent) GetStatus ¶
func (x *AgentCommandEvent) GetStatus() string
func (*AgentCommandEvent) GetWorkingDirectory ¶
func (x *AgentCommandEvent) GetWorkingDirectory() string
func (*AgentCommandEvent) ProtoMessage ¶
func (*AgentCommandEvent) ProtoMessage()
func (*AgentCommandEvent) ProtoReflect ¶
func (x *AgentCommandEvent) ProtoReflect() protoreflect.Message
func (*AgentCommandEvent) Reset ¶
func (x *AgentCommandEvent) Reset()
func (*AgentCommandEvent) String ¶
func (x *AgentCommandEvent) String() string
type AgentErrorEvent ¶
type AgentErrorEvent struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
IsFatal bool `protobuf:"varint,3,opt,name=is_fatal,json=isFatal,proto3" json:"is_fatal,omitempty"`
CanRetry bool `protobuf:"varint,4,opt,name=can_retry,json=canRetry,proto3" json:"can_retry,omitempty"`
// contains filtered or unexported fields
}
AgentErrorEvent represents an error during execution.
func (*AgentErrorEvent) Descriptor
deprecated
func (*AgentErrorEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentErrorEvent.ProtoReflect.Descriptor instead.
func (*AgentErrorEvent) GetCanRetry ¶
func (x *AgentErrorEvent) GetCanRetry() bool
func (*AgentErrorEvent) GetCode ¶
func (x *AgentErrorEvent) GetCode() string
func (*AgentErrorEvent) GetIsFatal ¶
func (x *AgentErrorEvent) GetIsFatal() bool
func (*AgentErrorEvent) GetMessage ¶
func (x *AgentErrorEvent) GetMessage() string
func (*AgentErrorEvent) ProtoMessage ¶
func (*AgentErrorEvent) ProtoMessage()
func (*AgentErrorEvent) ProtoReflect ¶
func (x *AgentErrorEvent) ProtoReflect() protoreflect.Message
func (*AgentErrorEvent) Reset ¶
func (x *AgentErrorEvent) Reset()
func (*AgentErrorEvent) String ¶
func (x *AgentErrorEvent) String() string
type AgentEvent ¶
type AgentEvent struct {
// Phase indicates which phase of remediation is active.
Phase AgentPhase `protobuf:"varint,1,opt,name=phase,proto3,enum=deputy.remediation.v1.AgentPhase" json:"phase,omitempty"`
// SessionId is the agent session identifier.
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// Timestamp of the event.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// The actual event payload (one of):
//
// Types that are valid to be assigned to Details:
//
// *AgentEvent_Text
// *AgentEvent_Command
// *AgentEvent_File
// *AgentEvent_Status
// *AgentEvent_Approval
// *AgentEvent_Error
// *AgentEvent_Summary
// *AgentEvent_Tokens
Details isAgentEvent_Details `protobuf_oneof:"details"`
// contains filtered or unexported fields
}
AgentEvent provides streaming updates during agent execution.
func (*AgentEvent) Descriptor
deprecated
func (*AgentEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentEvent.ProtoReflect.Descriptor instead.
func (*AgentEvent) GetApproval ¶
func (x *AgentEvent) GetApproval() *AgentApprovalEvent
func (*AgentEvent) GetCommand ¶
func (x *AgentEvent) GetCommand() *AgentCommandEvent
func (*AgentEvent) GetDetails ¶
func (x *AgentEvent) GetDetails() isAgentEvent_Details
func (*AgentEvent) GetError ¶
func (x *AgentEvent) GetError() *AgentErrorEvent
func (*AgentEvent) GetFile ¶
func (x *AgentEvent) GetFile() *AgentFileEvent
func (*AgentEvent) GetPhase ¶
func (x *AgentEvent) GetPhase() AgentPhase
func (*AgentEvent) GetSessionId ¶
func (x *AgentEvent) GetSessionId() string
func (*AgentEvent) GetStatus ¶
func (x *AgentEvent) GetStatus() *AgentStatusEvent
func (*AgentEvent) GetSummary ¶
func (x *AgentEvent) GetSummary() *AgentSummaryEvent
func (*AgentEvent) GetText ¶
func (x *AgentEvent) GetText() *AgentTextEvent
func (*AgentEvent) GetTimestamp ¶
func (x *AgentEvent) GetTimestamp() *timestamppb.Timestamp
func (*AgentEvent) GetTokens ¶
func (x *AgentEvent) GetTokens() *AgentTokensEvent
func (*AgentEvent) ProtoMessage ¶
func (*AgentEvent) ProtoMessage()
func (*AgentEvent) ProtoReflect ¶
func (x *AgentEvent) ProtoReflect() protoreflect.Message
func (*AgentEvent) Reset ¶
func (x *AgentEvent) Reset()
func (*AgentEvent) String ¶
func (x *AgentEvent) String() string
type AgentEvent_Approval ¶
type AgentEvent_Approval struct {
// Approval required for a risky operation.
Approval *AgentApprovalEvent `protobuf:"bytes,14,opt,name=approval,proto3,oneof"`
}
type AgentEvent_Command ¶
type AgentEvent_Command struct {
// Command execution event.
Command *AgentCommandEvent `protobuf:"bytes,11,opt,name=command,proto3,oneof"`
}
type AgentEvent_Error ¶
type AgentEvent_Error struct {
// Error during execution.
Error *AgentErrorEvent `protobuf:"bytes,15,opt,name=error,proto3,oneof"`
}
type AgentEvent_File ¶
type AgentEvent_File struct {
// File modification event.
File *AgentFileEvent `protobuf:"bytes,12,opt,name=file,proto3,oneof"`
}
type AgentEvent_Status ¶
type AgentEvent_Status struct {
// Status update (thinking, planning, executing, etc.).
Status *AgentStatusEvent `protobuf:"bytes,13,opt,name=status,proto3,oneof"`
}
type AgentEvent_Summary ¶
type AgentEvent_Summary struct {
// Session completed with summary.
Summary *AgentSummaryEvent `protobuf:"bytes,16,opt,name=summary,proto3,oneof"`
}
type AgentEvent_Text ¶
type AgentEvent_Text struct {
// Text output from the agent (analysis, reasoning, etc.).
Text *AgentTextEvent `protobuf:"bytes,10,opt,name=text,proto3,oneof"`
}
type AgentEvent_Tokens ¶
type AgentEvent_Tokens struct {
// Token usage update.
Tokens *AgentTokensEvent `protobuf:"bytes,17,opt,name=tokens,proto3,oneof"`
}
type AgentFileEvent ¶
type AgentFileEvent struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // "create", "modify", "delete", "read"
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // "pending", "completed", "failed"
ContentSize int64 `protobuf:"varint,4,opt,name=content_size,json=contentSize,proto3" json:"content_size,omitempty"`
// contains filtered or unexported fields
}
AgentFileEvent represents a file operation.
func (*AgentFileEvent) Descriptor
deprecated
func (*AgentFileEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentFileEvent.ProtoReflect.Descriptor instead.
func (*AgentFileEvent) GetAction ¶
func (x *AgentFileEvent) GetAction() string
func (*AgentFileEvent) GetContentSize ¶
func (x *AgentFileEvent) GetContentSize() int64
func (*AgentFileEvent) GetPath ¶
func (x *AgentFileEvent) GetPath() string
func (*AgentFileEvent) GetStatus ¶
func (x *AgentFileEvent) GetStatus() string
func (*AgentFileEvent) ProtoMessage ¶
func (*AgentFileEvent) ProtoMessage()
func (*AgentFileEvent) ProtoReflect ¶
func (x *AgentFileEvent) ProtoReflect() protoreflect.Message
func (*AgentFileEvent) Reset ¶
func (x *AgentFileEvent) Reset()
func (*AgentFileEvent) String ¶
func (x *AgentFileEvent) String() string
type AgentInfo ¶
type AgentInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
DefaultModel string `protobuf:"bytes,4,opt,name=default_model,json=defaultModel,proto3" json:"default_model,omitempty"`
SupportedModels []string `protobuf:"bytes,5,rep,name=supported_models,json=supportedModels,proto3" json:"supported_models,omitempty"`
SupportedSandboxModes []string `` /* 126-byte string literal not displayed */
Capabilities *AgentCapabilities `protobuf:"bytes,7,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
IsAvailable bool `protobuf:"varint,8,opt,name=is_available,json=isAvailable,proto3" json:"is_available,omitempty"`
// contains filtered or unexported fields
}
AgentInfo provides metadata about an agent.
func (*AgentInfo) Descriptor
deprecated
func (*AgentInfo) GetCapabilities ¶
func (x *AgentInfo) GetCapabilities() *AgentCapabilities
func (*AgentInfo) GetDefaultModel ¶
func (*AgentInfo) GetDescription ¶
func (*AgentInfo) GetDisplayName ¶
func (*AgentInfo) GetIsAvailable ¶
func (*AgentInfo) GetSupportedModels ¶
func (*AgentInfo) GetSupportedSandboxModes ¶
func (*AgentInfo) GetUnavailableReason ¶
func (*AgentInfo) ProtoMessage ¶
func (*AgentInfo) ProtoMessage()
func (*AgentInfo) ProtoReflect ¶
func (x *AgentInfo) ProtoReflect() protoreflect.Message
type AgentOptions ¶
type AgentOptions struct {
// Model overrides the agent's default model.
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
// Sandbox specifies file/command permissions.
// Values: "read-only", "workspace-write", "full-access".
Sandbox string `protobuf:"bytes,2,opt,name=sandbox,proto3" json:"sandbox,omitempty"`
// FullAuto enables full-automation mode (all operations auto-approved).
// DANGEROUS: Use only in fully automated, audited environments.
FullAuto bool `protobuf:"varint,3,opt,name=full_auto,json=fullAuto,proto3" json:"full_auto,omitempty"`
// IncludePlanTool allows the agent to use the plan-generation tool.
IncludePlanTool bool `protobuf:"varint,4,opt,name=include_plan_tool,json=includePlanTool,proto3" json:"include_plan_tool,omitempty"`
// MaxTurns limits the number of interaction turns (0 = unlimited).
MaxTurns int32 `protobuf:"varint,5,opt,name=max_turns,json=maxTurns,proto3" json:"max_turns,omitempty"`
// Timeout is the maximum duration for the entire agent session.
Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
// VerboseOutput shows full command output instead of summaries.
VerboseOutput bool `protobuf:"varint,7,opt,name=verbose_output,json=verboseOutput,proto3" json:"verbose_output,omitempty"`
// SkipRepositoryChecks skips git repository validation.
SkipRepositoryChecks bool `protobuf:"varint,8,opt,name=skip_repository_checks,json=skipRepositoryChecks,proto3" json:"skip_repository_checks,omitempty"`
// SessionId resumes a previous agent session.
SessionId string `protobuf:"bytes,9,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// contains filtered or unexported fields
}
AgentOptions configures AI agent behavior.
func (*AgentOptions) Descriptor
deprecated
func (*AgentOptions) Descriptor() ([]byte, []int)
Deprecated: Use AgentOptions.ProtoReflect.Descriptor instead.
func (*AgentOptions) GetFullAuto ¶
func (x *AgentOptions) GetFullAuto() bool
func (*AgentOptions) GetIncludePlanTool ¶
func (x *AgentOptions) GetIncludePlanTool() bool
func (*AgentOptions) GetMaxTurns ¶
func (x *AgentOptions) GetMaxTurns() int32
func (*AgentOptions) GetModel ¶
func (x *AgentOptions) GetModel() string
func (*AgentOptions) GetSandbox ¶
func (x *AgentOptions) GetSandbox() string
func (*AgentOptions) GetSessionId ¶
func (x *AgentOptions) GetSessionId() string
func (*AgentOptions) GetSkipRepositoryChecks ¶
func (x *AgentOptions) GetSkipRepositoryChecks() bool
func (*AgentOptions) GetTimeout ¶
func (x *AgentOptions) GetTimeout() *durationpb.Duration
func (*AgentOptions) GetVerboseOutput ¶
func (x *AgentOptions) GetVerboseOutput() bool
func (*AgentOptions) ProtoMessage ¶
func (*AgentOptions) ProtoMessage()
func (*AgentOptions) ProtoReflect ¶
func (x *AgentOptions) ProtoReflect() protoreflect.Message
func (*AgentOptions) Reset ¶
func (x *AgentOptions) Reset()
func (*AgentOptions) String ¶
func (x *AgentOptions) String() string
type AgentPhase ¶
type AgentPhase int32
AgentPhase indicates the current phase of agent execution.
const ( AgentPhase_AGENT_PHASE_UNSPECIFIED AgentPhase = 0 AgentPhase_AGENT_PHASE_ANALYZING AgentPhase = 1 AgentPhase_AGENT_PHASE_PLANNING AgentPhase = 2 AgentPhase_AGENT_PHASE_AWAITING_APPROVAL AgentPhase = 3 AgentPhase_AGENT_PHASE_EXECUTING AgentPhase = 4 AgentPhase_AGENT_PHASE_VERIFYING AgentPhase = 5 AgentPhase_AGENT_PHASE_COMPLETED AgentPhase = 6 AgentPhase_AGENT_PHASE_FAILED AgentPhase = 7 AgentPhase_AGENT_PHASE_INTERRUPTED AgentPhase = 8 )
func (AgentPhase) Descriptor ¶
func (AgentPhase) Descriptor() protoreflect.EnumDescriptor
func (AgentPhase) Enum ¶
func (x AgentPhase) Enum() *AgentPhase
func (AgentPhase) EnumDescriptor
deprecated
func (AgentPhase) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentPhase.Descriptor instead.
func (AgentPhase) Number ¶
func (x AgentPhase) Number() protoreflect.EnumNumber
func (AgentPhase) String ¶
func (x AgentPhase) String() string
func (AgentPhase) Type ¶
func (AgentPhase) Type() protoreflect.EnumType
type AgentStatusEvent ¶
type AgentStatusEvent struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Progress int32 `protobuf:"varint,2,opt,name=progress,proto3" json:"progress,omitempty"`
CurrentTask string `protobuf:"bytes,3,opt,name=current_task,json=currentTask,proto3" json:"current_task,omitempty"`
// contains filtered or unexported fields
}
AgentStatusEvent is a progress update.
func (*AgentStatusEvent) Descriptor
deprecated
func (*AgentStatusEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentStatusEvent.ProtoReflect.Descriptor instead.
func (*AgentStatusEvent) GetCurrentTask ¶
func (x *AgentStatusEvent) GetCurrentTask() string
func (*AgentStatusEvent) GetProgress ¶
func (x *AgentStatusEvent) GetProgress() int32
func (*AgentStatusEvent) GetStatus ¶
func (x *AgentStatusEvent) GetStatus() string
func (*AgentStatusEvent) ProtoMessage ¶
func (*AgentStatusEvent) ProtoMessage()
func (*AgentStatusEvent) ProtoReflect ¶
func (x *AgentStatusEvent) ProtoReflect() protoreflect.Message
func (*AgentStatusEvent) Reset ¶
func (x *AgentStatusEvent) Reset()
func (*AgentStatusEvent) String ¶
func (x *AgentStatusEvent) String() string
type AgentSummaryEvent ¶
type AgentSummaryEvent struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
StartedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
CompletedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
TotalDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"`
Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
OverallMessage string `protobuf:"bytes,6,opt,name=overall_message,json=overallMessage,proto3" json:"overall_message,omitempty"`
CommandsExecuted []string `protobuf:"bytes,7,rep,name=commands_executed,json=commandsExecuted,proto3" json:"commands_executed,omitempty"`
FilesModified []string `protobuf:"bytes,8,rep,name=files_modified,json=filesModified,proto3" json:"files_modified,omitempty"`
VulnerabilitiesFixed int32 `protobuf:"varint,9,opt,name=vulnerabilities_fixed,json=vulnerabilitiesFixed,proto3" json:"vulnerabilities_fixed,omitempty"`
Turns int32 `protobuf:"varint,10,opt,name=turns,proto3" json:"turns,omitempty"`
ModelUsed string `protobuf:"bytes,11,opt,name=model_used,json=modelUsed,proto3" json:"model_used,omitempty"`
FinalPlan *Plan `protobuf:"bytes,12,opt,name=final_plan,json=finalPlan,proto3" json:"final_plan,omitempty"`
Warnings []string `protobuf:"bytes,13,rep,name=warnings,proto3" json:"warnings,omitempty"`
ErrorMessage string `protobuf:"bytes,14,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
AgentSummaryEvent is the final report of an agent session.
func (*AgentSummaryEvent) Descriptor
deprecated
func (*AgentSummaryEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentSummaryEvent.ProtoReflect.Descriptor instead.
func (*AgentSummaryEvent) GetCommandsExecuted ¶
func (x *AgentSummaryEvent) GetCommandsExecuted() []string
func (*AgentSummaryEvent) GetCompletedAt ¶
func (x *AgentSummaryEvent) GetCompletedAt() *timestamppb.Timestamp
func (*AgentSummaryEvent) GetErrorMessage ¶
func (x *AgentSummaryEvent) GetErrorMessage() string
func (*AgentSummaryEvent) GetFilesModified ¶
func (x *AgentSummaryEvent) GetFilesModified() []string
func (*AgentSummaryEvent) GetFinalPlan ¶
func (x *AgentSummaryEvent) GetFinalPlan() *Plan
func (*AgentSummaryEvent) GetModelUsed ¶
func (x *AgentSummaryEvent) GetModelUsed() string
func (*AgentSummaryEvent) GetOverallMessage ¶
func (x *AgentSummaryEvent) GetOverallMessage() string
func (*AgentSummaryEvent) GetSessionId ¶
func (x *AgentSummaryEvent) GetSessionId() string
func (*AgentSummaryEvent) GetStartedAt ¶
func (x *AgentSummaryEvent) GetStartedAt() *timestamppb.Timestamp
func (*AgentSummaryEvent) GetSuccess ¶
func (x *AgentSummaryEvent) GetSuccess() bool
func (*AgentSummaryEvent) GetTotalDuration ¶
func (x *AgentSummaryEvent) GetTotalDuration() *durationpb.Duration
func (*AgentSummaryEvent) GetTurns ¶
func (x *AgentSummaryEvent) GetTurns() int32
func (*AgentSummaryEvent) GetVulnerabilitiesFixed ¶
func (x *AgentSummaryEvent) GetVulnerabilitiesFixed() int32
func (*AgentSummaryEvent) GetWarnings ¶
func (x *AgentSummaryEvent) GetWarnings() []string
func (*AgentSummaryEvent) ProtoMessage ¶
func (*AgentSummaryEvent) ProtoMessage()
func (*AgentSummaryEvent) ProtoReflect ¶
func (x *AgentSummaryEvent) ProtoReflect() protoreflect.Message
func (*AgentSummaryEvent) Reset ¶
func (x *AgentSummaryEvent) Reset()
func (*AgentSummaryEvent) String ¶
func (x *AgentSummaryEvent) String() string
type AgentTextEvent ¶
type AgentTextEvent struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
IsPartial bool `protobuf:"varint,2,opt,name=is_partial,json=isPartial,proto3" json:"is_partial,omitempty"`
// contains filtered or unexported fields
}
AgentTextEvent is text streamed from the agent.
func (*AgentTextEvent) Descriptor
deprecated
func (*AgentTextEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentTextEvent.ProtoReflect.Descriptor instead.
func (*AgentTextEvent) GetIsPartial ¶
func (x *AgentTextEvent) GetIsPartial() bool
func (*AgentTextEvent) GetText ¶
func (x *AgentTextEvent) GetText() string
func (*AgentTextEvent) ProtoMessage ¶
func (*AgentTextEvent) ProtoMessage()
func (*AgentTextEvent) ProtoReflect ¶
func (x *AgentTextEvent) ProtoReflect() protoreflect.Message
func (*AgentTextEvent) Reset ¶
func (x *AgentTextEvent) Reset()
func (*AgentTextEvent) String ¶
func (x *AgentTextEvent) String() string
type AgentTokensEvent ¶
type AgentTokensEvent struct {
PromptTokens int32 `protobuf:"varint,1,opt,name=prompt_tokens,json=promptTokens,proto3" json:"prompt_tokens,omitempty"`
CompletionTokens int32 `protobuf:"varint,2,opt,name=completion_tokens,json=completionTokens,proto3" json:"completion_tokens,omitempty"`
TotalTokens int32 `protobuf:"varint,3,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
RunningTotal int32 `protobuf:"varint,4,opt,name=running_total,json=runningTotal,proto3" json:"running_total,omitempty"`
// contains filtered or unexported fields
}
AgentTokensEvent reports token consumption.
func (*AgentTokensEvent) Descriptor
deprecated
func (*AgentTokensEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentTokensEvent.ProtoReflect.Descriptor instead.
func (*AgentTokensEvent) GetCompletionTokens ¶
func (x *AgentTokensEvent) GetCompletionTokens() int32
func (*AgentTokensEvent) GetPromptTokens ¶
func (x *AgentTokensEvent) GetPromptTokens() int32
func (*AgentTokensEvent) GetRunningTotal ¶
func (x *AgentTokensEvent) GetRunningTotal() int32
func (*AgentTokensEvent) GetTotalTokens ¶
func (x *AgentTokensEvent) GetTotalTokens() int32
func (*AgentTokensEvent) ProtoMessage ¶
func (*AgentTokensEvent) ProtoMessage()
func (*AgentTokensEvent) ProtoReflect ¶
func (x *AgentTokensEvent) ProtoReflect() protoreflect.Message
func (*AgentTokensEvent) Reset ¶
func (x *AgentTokensEvent) Reset()
func (*AgentTokensEvent) String ¶
func (x *AgentTokensEvent) String() string
type ApprovalMode ¶
type ApprovalMode int32
ApprovalMode specifies how high-risk operations are handled.
const ( ApprovalMode_APPROVAL_MODE_UNSPECIFIED ApprovalMode = 0 ApprovalMode_APPROVAL_MODE_AUTO_APPROVE ApprovalMode = 1 ApprovalMode_APPROVAL_MODE_INTERACTIVE ApprovalMode = 2 ApprovalMode_APPROVAL_MODE_ALL_STEPS ApprovalMode = 3 ApprovalMode_APPROVAL_MODE_SKIP_HIGH_RISK ApprovalMode = 4 )
func (ApprovalMode) Descriptor ¶
func (ApprovalMode) Descriptor() protoreflect.EnumDescriptor
func (ApprovalMode) Enum ¶
func (x ApprovalMode) Enum() *ApprovalMode
func (ApprovalMode) EnumDescriptor
deprecated
func (ApprovalMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ApprovalMode.Descriptor instead.
func (ApprovalMode) Number ¶
func (x ApprovalMode) Number() protoreflect.EnumNumber
func (ApprovalMode) String ¶
func (x ApprovalMode) String() string
func (ApprovalMode) Type ¶
func (ApprovalMode) Type() protoreflect.EnumType
type ApprovalNeededEvent ¶
type ApprovalNeededEvent struct {
StepId string `protobuf:"bytes,1,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"`
StepTitle string `protobuf:"bytes,2,opt,name=step_title,json=stepTitle,proto3" json:"step_title,omitempty"`
RiskLevel RiskLevel `` /* 126-byte string literal not displayed */
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
TimeoutSeconds int32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// contains filtered or unexported fields
}
ApprovalNeededEvent indicates a step requires user approval.
func (*ApprovalNeededEvent) Descriptor
deprecated
func (*ApprovalNeededEvent) Descriptor() ([]byte, []int)
Deprecated: Use ApprovalNeededEvent.ProtoReflect.Descriptor instead.
func (*ApprovalNeededEvent) GetReason ¶
func (x *ApprovalNeededEvent) GetReason() string
func (*ApprovalNeededEvent) GetRiskLevel ¶
func (x *ApprovalNeededEvent) GetRiskLevel() RiskLevel
func (*ApprovalNeededEvent) GetStepId ¶
func (x *ApprovalNeededEvent) GetStepId() string
func (*ApprovalNeededEvent) GetStepTitle ¶
func (x *ApprovalNeededEvent) GetStepTitle() string
func (*ApprovalNeededEvent) GetTimeoutSeconds ¶
func (x *ApprovalNeededEvent) GetTimeoutSeconds() int32
func (*ApprovalNeededEvent) ProtoMessage ¶
func (*ApprovalNeededEvent) ProtoMessage()
func (*ApprovalNeededEvent) ProtoReflect ¶
func (x *ApprovalNeededEvent) ProtoReflect() protoreflect.Message
func (*ApprovalNeededEvent) Reset ¶
func (x *ApprovalNeededEvent) Reset()
func (*ApprovalNeededEvent) String ¶
func (x *ApprovalNeededEvent) String() string
type ApproveStepRequest ¶
type ApproveStepRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
StepId string `protobuf:"bytes,2,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"`
Approved bool `protobuf:"varint,3,opt,name=approved,proto3" json:"approved,omitempty"`
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
ApproveStepRequest approves or denies a pending step.
func (*ApproveStepRequest) Descriptor
deprecated
func (*ApproveStepRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApproveStepRequest.ProtoReflect.Descriptor instead.
func (*ApproveStepRequest) GetApproved ¶
func (x *ApproveStepRequest) GetApproved() bool
func (*ApproveStepRequest) GetReason ¶
func (x *ApproveStepRequest) GetReason() string
func (*ApproveStepRequest) GetSessionId ¶
func (x *ApproveStepRequest) GetSessionId() string
func (*ApproveStepRequest) GetStepId ¶
func (x *ApproveStepRequest) GetStepId() string
func (*ApproveStepRequest) ProtoMessage ¶
func (*ApproveStepRequest) ProtoMessage()
func (*ApproveStepRequest) ProtoReflect ¶
func (x *ApproveStepRequest) ProtoReflect() protoreflect.Message
func (*ApproveStepRequest) Reset ¶
func (x *ApproveStepRequest) Reset()
func (*ApproveStepRequest) String ¶
func (x *ApproveStepRequest) String() string
type ApproveStepResponse ¶
type ApproveStepResponse struct {
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
CanProceed bool `protobuf:"varint,3,opt,name=can_proceed,json=canProceed,proto3" json:"can_proceed,omitempty"`
// contains filtered or unexported fields
}
ApproveStepResponse confirms the approval decision.
func (*ApproveStepResponse) Descriptor
deprecated
func (*ApproveStepResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApproveStepResponse.ProtoReflect.Descriptor instead.
func (*ApproveStepResponse) GetAccepted ¶
func (x *ApproveStepResponse) GetAccepted() bool
func (*ApproveStepResponse) GetCanProceed ¶
func (x *ApproveStepResponse) GetCanProceed() bool
func (*ApproveStepResponse) GetMessage ¶
func (x *ApproveStepResponse) GetMessage() string
func (*ApproveStepResponse) ProtoMessage ¶
func (*ApproveStepResponse) ProtoMessage()
func (*ApproveStepResponse) ProtoReflect ¶
func (x *ApproveStepResponse) ProtoReflect() protoreflect.Message
func (*ApproveStepResponse) Reset ¶
func (x *ApproveStepResponse) Reset()
func (*ApproveStepResponse) String ¶
func (x *ApproveStepResponse) String() string
type CommandCompletedEvent ¶
type CommandCompletedEvent struct {
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
Stdout string `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"`
Stderr string `protobuf:"bytes,4,opt,name=stderr,proto3" json:"stderr,omitempty"`
Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
CommandCompletedEvent indicates a shell command finished.
func (*CommandCompletedEvent) Descriptor
deprecated
func (*CommandCompletedEvent) Descriptor() ([]byte, []int)
Deprecated: Use CommandCompletedEvent.ProtoReflect.Descriptor instead.
func (*CommandCompletedEvent) GetCommand ¶
func (x *CommandCompletedEvent) GetCommand() string
func (*CommandCompletedEvent) GetDuration ¶
func (x *CommandCompletedEvent) GetDuration() *durationpb.Duration
func (*CommandCompletedEvent) GetExitCode ¶
func (x *CommandCompletedEvent) GetExitCode() int32
func (*CommandCompletedEvent) GetStderr ¶
func (x *CommandCompletedEvent) GetStderr() string
func (*CommandCompletedEvent) GetStdout ¶
func (x *CommandCompletedEvent) GetStdout() string
func (*CommandCompletedEvent) ProtoMessage ¶
func (*CommandCompletedEvent) ProtoMessage()
func (*CommandCompletedEvent) ProtoReflect ¶
func (x *CommandCompletedEvent) ProtoReflect() protoreflect.Message
func (*CommandCompletedEvent) Reset ¶
func (x *CommandCompletedEvent) Reset()
func (*CommandCompletedEvent) String ¶
func (x *CommandCompletedEvent) String() string
type CommandStartedEvent ¶
type CommandStartedEvent struct {
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
WorkingDirectory string `protobuf:"bytes,2,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"`
// contains filtered or unexported fields
}
CommandStartedEvent indicates a shell command is starting.
func (*CommandStartedEvent) Descriptor
deprecated
func (*CommandStartedEvent) Descriptor() ([]byte, []int)
Deprecated: Use CommandStartedEvent.ProtoReflect.Descriptor instead.
func (*CommandStartedEvent) GetCommand ¶
func (x *CommandStartedEvent) GetCommand() string
func (*CommandStartedEvent) GetWorkingDirectory ¶
func (x *CommandStartedEvent) GetWorkingDirectory() string
func (*CommandStartedEvent) ProtoMessage ¶
func (*CommandStartedEvent) ProtoMessage()
func (*CommandStartedEvent) ProtoReflect ¶
func (x *CommandStartedEvent) ProtoReflect() protoreflect.Message
func (*CommandStartedEvent) Reset ¶
func (x *CommandStartedEvent) Reset()
func (*CommandStartedEvent) String ¶
func (x *CommandStartedEvent) String() string
type ExecutePlanRequest ¶
type ExecutePlanRequest struct {
// Source (one of):
//
// Types that are valid to be assigned to Source:
//
// *ExecutePlanRequest_PlanBytes
// *ExecutePlanRequest_Plan
Source isExecutePlanRequest_Source `protobuf_oneof:"source"`
// TargetPath is the local filesystem path where changes are applied.
// Security: Only available in local/in-process mode.
TargetPath string `protobuf:"bytes,3,opt,name=target_path,json=targetPath,proto3" json:"target_path,omitempty"`
// Options configure how the plan is applied.
Options *ExecutionOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
ExecutePlanRequest specifies how to apply a remediation plan.
func (*ExecutePlanRequest) Descriptor
deprecated
func (*ExecutePlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecutePlanRequest.ProtoReflect.Descriptor instead.
func (*ExecutePlanRequest) GetOptions ¶
func (x *ExecutePlanRequest) GetOptions() *ExecutionOptions
func (*ExecutePlanRequest) GetPlan ¶
func (x *ExecutePlanRequest) GetPlan() *Plan
func (*ExecutePlanRequest) GetPlanBytes ¶
func (x *ExecutePlanRequest) GetPlanBytes() []byte
func (*ExecutePlanRequest) GetSource ¶
func (x *ExecutePlanRequest) GetSource() isExecutePlanRequest_Source
func (*ExecutePlanRequest) GetTargetPath ¶
func (x *ExecutePlanRequest) GetTargetPath() string
func (*ExecutePlanRequest) ProtoMessage ¶
func (*ExecutePlanRequest) ProtoMessage()
func (*ExecutePlanRequest) ProtoReflect ¶
func (x *ExecutePlanRequest) ProtoReflect() protoreflect.Message
func (*ExecutePlanRequest) Reset ¶
func (x *ExecutePlanRequest) Reset()
func (*ExecutePlanRequest) String ¶
func (x *ExecutePlanRequest) String() string
type ExecutePlanRequest_Plan ¶
type ExecutePlanRequest_Plan struct {
// Plan is an inline remediation plan to execute.
Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3,oneof"`
}
type ExecutePlanRequest_PlanBytes ¶
type ExecutePlanRequest_PlanBytes struct {
// PlanBytes is serialized plan JSON to execute.
PlanBytes []byte `protobuf:"bytes,1,opt,name=plan_bytes,json=planBytes,proto3,oneof"`
}
type ExecuteWithAgentRequest ¶
type ExecuteWithAgentRequest struct {
// Agent is the AI agent to use (e.g., "claude", "codex").
Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
// TargetPath is the local filesystem path.
// Security: Only available in local/in-process mode.
TargetPath string `protobuf:"bytes,2,opt,name=target_path,json=targetPath,proto3" json:"target_path,omitempty"`
// Source is what the agent should analyze (one of):
//
// Types that are valid to be assigned to Source:
//
// *ExecuteWithAgentRequest_ScanResult
// *ExecuteWithAgentRequest_SbomBytes
Source isExecuteWithAgentRequest_Source `protobuf_oneof:"source"`
// SBOMFormat specifies the format if sbom_bytes is set.
SbomFormat v1.Format `protobuf:"varint,5,opt,name=sbom_format,json=sbomFormat,proto3,enum=deputy.sbom.v1.Format" json:"sbom_format,omitempty"`
// Prompt is a custom prompt to guide the agent's analysis.
Prompt string `protobuf:"bytes,6,opt,name=prompt,proto3" json:"prompt,omitempty"`
// Options configure agent behavior.
Options *AgentOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
ExecuteWithAgentRequest specifies parameters for agent-assisted remediation.
func (*ExecuteWithAgentRequest) Descriptor
deprecated
func (*ExecuteWithAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteWithAgentRequest.ProtoReflect.Descriptor instead.
func (*ExecuteWithAgentRequest) GetAgent ¶
func (x *ExecuteWithAgentRequest) GetAgent() string
func (*ExecuteWithAgentRequest) GetOptions ¶
func (x *ExecuteWithAgentRequest) GetOptions() *AgentOptions
func (*ExecuteWithAgentRequest) GetPrompt ¶
func (x *ExecuteWithAgentRequest) GetPrompt() string
func (*ExecuteWithAgentRequest) GetSbomBytes ¶
func (x *ExecuteWithAgentRequest) GetSbomBytes() []byte
func (*ExecuteWithAgentRequest) GetSbomFormat ¶
func (x *ExecuteWithAgentRequest) GetSbomFormat() v1.Format
func (*ExecuteWithAgentRequest) GetScanResult ¶
func (x *ExecuteWithAgentRequest) GetScanResult() *v11.ScanResponse
func (*ExecuteWithAgentRequest) GetSource ¶
func (x *ExecuteWithAgentRequest) GetSource() isExecuteWithAgentRequest_Source
func (*ExecuteWithAgentRequest) GetTargetPath ¶
func (x *ExecuteWithAgentRequest) GetTargetPath() string
func (*ExecuteWithAgentRequest) ProtoMessage ¶
func (*ExecuteWithAgentRequest) ProtoMessage()
func (*ExecuteWithAgentRequest) ProtoReflect ¶
func (x *ExecuteWithAgentRequest) ProtoReflect() protoreflect.Message
func (*ExecuteWithAgentRequest) Reset ¶
func (x *ExecuteWithAgentRequest) Reset()
func (*ExecuteWithAgentRequest) String ¶
func (x *ExecuteWithAgentRequest) String() string
type ExecuteWithAgentRequest_SbomBytes ¶
type ExecuteWithAgentRequest_SbomBytes struct {
// SBOMBytes is raw SBOM data for analysis.
SbomBytes []byte `protobuf:"bytes,4,opt,name=sbom_bytes,json=sbomBytes,proto3,oneof"`
}
type ExecuteWithAgentRequest_ScanResult ¶
type ExecuteWithAgentRequest_ScanResult struct {
// ScanResult from a previous scan operation.
ScanResult *v11.ScanResponse `protobuf:"bytes,3,opt,name=scan_result,json=scanResult,proto3,oneof"`
}
type ExecutionErrorEvent ¶
type ExecutionErrorEvent struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
StepId string `protobuf:"bytes,2,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"`
IsFatal bool `protobuf:"varint,3,opt,name=is_fatal,json=isFatal,proto3" json:"is_fatal,omitempty"`
// contains filtered or unexported fields
}
ExecutionErrorEvent indicates an error during execution.
func (*ExecutionErrorEvent) Descriptor
deprecated
func (*ExecutionErrorEvent) Descriptor() ([]byte, []int)
Deprecated: Use ExecutionErrorEvent.ProtoReflect.Descriptor instead.
func (*ExecutionErrorEvent) GetIsFatal ¶
func (x *ExecutionErrorEvent) GetIsFatal() bool
func (*ExecutionErrorEvent) GetMessage ¶
func (x *ExecutionErrorEvent) GetMessage() string
func (*ExecutionErrorEvent) GetStepId ¶
func (x *ExecutionErrorEvent) GetStepId() string
func (*ExecutionErrorEvent) ProtoMessage ¶
func (*ExecutionErrorEvent) ProtoMessage()
func (*ExecutionErrorEvent) ProtoReflect ¶
func (x *ExecutionErrorEvent) ProtoReflect() protoreflect.Message
func (*ExecutionErrorEvent) Reset ¶
func (x *ExecutionErrorEvent) Reset()
func (*ExecutionErrorEvent) String ¶
func (x *ExecutionErrorEvent) String() string
type ExecutionEvent ¶
type ExecutionEvent struct {
// Phase indicates which phase of execution is active.
Phase ExecutionPhase `protobuf:"varint,1,opt,name=phase,proto3,enum=deputy.remediation.v1.ExecutionPhase" json:"phase,omitempty"`
// StepId identifies the current step.
StepId string `protobuf:"bytes,2,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"`
// Message is human-readable progress information.
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// Progress is the completion percentage (0-100).
Progress int32 `protobuf:"varint,4,opt,name=progress,proto3" json:"progress,omitempty"`
// Timestamp of the event.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Details (one of):
//
// Types that are valid to be assigned to Details:
//
// *ExecutionEvent_CommandStarted
// *ExecutionEvent_CommandCompleted
// *ExecutionEvent_StepCompleted
// *ExecutionEvent_ApprovalNeeded
// *ExecutionEvent_Error
// *ExecutionEvent_Summary
Details isExecutionEvent_Details `protobuf_oneof:"details"`
// contains filtered or unexported fields
}
ExecutionEvent provides streaming updates during plan execution.
func (*ExecutionEvent) Descriptor
deprecated
func (*ExecutionEvent) Descriptor() ([]byte, []int)
Deprecated: Use ExecutionEvent.ProtoReflect.Descriptor instead.
func (*ExecutionEvent) GetApprovalNeeded ¶
func (x *ExecutionEvent) GetApprovalNeeded() *ApprovalNeededEvent
func (*ExecutionEvent) GetCommandCompleted ¶
func (x *ExecutionEvent) GetCommandCompleted() *CommandCompletedEvent
func (*ExecutionEvent) GetCommandStarted ¶
func (x *ExecutionEvent) GetCommandStarted() *CommandStartedEvent
func (*ExecutionEvent) GetDetails ¶
func (x *ExecutionEvent) GetDetails() isExecutionEvent_Details
func (*ExecutionEvent) GetError ¶
func (x *ExecutionEvent) GetError() *ExecutionErrorEvent
func (*ExecutionEvent) GetMessage ¶
func (x *ExecutionEvent) GetMessage() string
func (*ExecutionEvent) GetPhase ¶
func (x *ExecutionEvent) GetPhase() ExecutionPhase
func (*ExecutionEvent) GetProgress ¶
func (x *ExecutionEvent) GetProgress() int32
func (*ExecutionEvent) GetStepCompleted ¶
func (x *ExecutionEvent) GetStepCompleted() *StepCompletedEvent
func (*ExecutionEvent) GetStepId ¶
func (x *ExecutionEvent) GetStepId() string
func (*ExecutionEvent) GetSummary ¶
func (x *ExecutionEvent) GetSummary() *ExecutionSummaryEvent
func (*ExecutionEvent) GetTimestamp ¶
func (x *ExecutionEvent) GetTimestamp() *timestamppb.Timestamp
func (*ExecutionEvent) ProtoMessage ¶
func (*ExecutionEvent) ProtoMessage()
func (*ExecutionEvent) ProtoReflect ¶
func (x *ExecutionEvent) ProtoReflect() protoreflect.Message
func (*ExecutionEvent) Reset ¶
func (x *ExecutionEvent) Reset()
func (*ExecutionEvent) String ¶
func (x *ExecutionEvent) String() string
type ExecutionEvent_ApprovalNeeded ¶
type ExecutionEvent_ApprovalNeeded struct {
ApprovalNeeded *ApprovalNeededEvent `protobuf:"bytes,13,opt,name=approval_needed,json=approvalNeeded,proto3,oneof"`
}
type ExecutionEvent_CommandCompleted ¶
type ExecutionEvent_CommandCompleted struct {
CommandCompleted *CommandCompletedEvent `protobuf:"bytes,11,opt,name=command_completed,json=commandCompleted,proto3,oneof"`
}
type ExecutionEvent_CommandStarted ¶
type ExecutionEvent_CommandStarted struct {
CommandStarted *CommandStartedEvent `protobuf:"bytes,10,opt,name=command_started,json=commandStarted,proto3,oneof"`
}
type ExecutionEvent_Error ¶
type ExecutionEvent_Error struct {
Error *ExecutionErrorEvent `protobuf:"bytes,14,opt,name=error,proto3,oneof"`
}
type ExecutionEvent_StepCompleted ¶
type ExecutionEvent_StepCompleted struct {
StepCompleted *StepCompletedEvent `protobuf:"bytes,12,opt,name=step_completed,json=stepCompleted,proto3,oneof"`
}
type ExecutionEvent_Summary ¶
type ExecutionEvent_Summary struct {
Summary *ExecutionSummaryEvent `protobuf:"bytes,15,opt,name=summary,proto3,oneof"`
}
type ExecutionOptions ¶
type ExecutionOptions struct {
// DryRun simulates plan execution without making actual changes.
DryRun bool `protobuf:"varint,1,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// ApprovalMode specifies how high-risk steps are handled.
ApprovalMode ApprovalMode `` /* 138-byte string literal not displayed */
// StopOnError halts execution if any step fails.
StopOnError bool `protobuf:"varint,3,opt,name=stop_on_error,json=stopOnError,proto3" json:"stop_on_error,omitempty"`
// Timeout is the maximum duration for the entire execution.
Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
// VerboseOutput includes full command output instead of summaries.
VerboseOutput bool `protobuf:"varint,5,opt,name=verbose_output,json=verboseOutput,proto3" json:"verbose_output,omitempty"`
// SkipStepIds specifies steps to skip during execution.
SkipStepIds []string `protobuf:"bytes,6,rep,name=skip_step_ids,json=skipStepIds,proto3" json:"skip_step_ids,omitempty"`
// contains filtered or unexported fields
}
ExecutionOptions configures plan execution behavior.
func (*ExecutionOptions) Descriptor
deprecated
func (*ExecutionOptions) Descriptor() ([]byte, []int)
Deprecated: Use ExecutionOptions.ProtoReflect.Descriptor instead.
func (*ExecutionOptions) GetApprovalMode ¶
func (x *ExecutionOptions) GetApprovalMode() ApprovalMode
func (*ExecutionOptions) GetDryRun ¶
func (x *ExecutionOptions) GetDryRun() bool
func (*ExecutionOptions) GetSkipStepIds ¶
func (x *ExecutionOptions) GetSkipStepIds() []string
func (*ExecutionOptions) GetStopOnError ¶
func (x *ExecutionOptions) GetStopOnError() bool
func (*ExecutionOptions) GetTimeout ¶
func (x *ExecutionOptions) GetTimeout() *durationpb.Duration
func (*ExecutionOptions) GetVerboseOutput ¶
func (x *ExecutionOptions) GetVerboseOutput() bool
func (*ExecutionOptions) ProtoMessage ¶
func (*ExecutionOptions) ProtoMessage()
func (*ExecutionOptions) ProtoReflect ¶
func (x *ExecutionOptions) ProtoReflect() protoreflect.Message
func (*ExecutionOptions) Reset ¶
func (x *ExecutionOptions) Reset()
func (*ExecutionOptions) String ¶
func (x *ExecutionOptions) String() string
type ExecutionPhase ¶
type ExecutionPhase int32
ExecutionPhase indicates the current phase of plan execution.
const ( ExecutionPhase_EXECUTION_PHASE_UNSPECIFIED ExecutionPhase = 0 ExecutionPhase_EXECUTION_PHASE_PREPARING ExecutionPhase = 1 ExecutionPhase_EXECUTION_PHASE_EXECUTING ExecutionPhase = 2 ExecutionPhase_EXECUTION_PHASE_COMPLETED ExecutionPhase = 3 ExecutionPhase_EXECUTION_PHASE_FAILED ExecutionPhase = 4 ExecutionPhase_EXECUTION_PHASE_INTERRUPTED ExecutionPhase = 5 )
func (ExecutionPhase) Descriptor ¶
func (ExecutionPhase) Descriptor() protoreflect.EnumDescriptor
func (ExecutionPhase) Enum ¶
func (x ExecutionPhase) Enum() *ExecutionPhase
func (ExecutionPhase) EnumDescriptor
deprecated
func (ExecutionPhase) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExecutionPhase.Descriptor instead.
func (ExecutionPhase) Number ¶
func (x ExecutionPhase) Number() protoreflect.EnumNumber
func (ExecutionPhase) String ¶
func (x ExecutionPhase) String() string
func (ExecutionPhase) Type ¶
func (ExecutionPhase) Type() protoreflect.EnumType
type ExecutionSummaryEvent ¶
type ExecutionSummaryEvent struct {
StartedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
CompletedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
TotalDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"`
StepsExecuted int32 `protobuf:"varint,4,opt,name=steps_executed,json=stepsExecuted,proto3" json:"steps_executed,omitempty"`
StepsSkipped int32 `protobuf:"varint,5,opt,name=steps_skipped,json=stepsSkipped,proto3" json:"steps_skipped,omitempty"`
StepsFailed int32 `protobuf:"varint,6,opt,name=steps_failed,json=stepsFailed,proto3" json:"steps_failed,omitempty"`
Success bool `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"`
ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
ModifiedFiles []string `protobuf:"bytes,9,rep,name=modified_files,json=modifiedFiles,proto3" json:"modified_files,omitempty"`
CommandsExecuted []string `protobuf:"bytes,10,rep,name=commands_executed,json=commandsExecuted,proto3" json:"commands_executed,omitempty"`
VulnerabilitiesAddressed int32 `` /* 135-byte string literal not displayed */
Warnings []string `protobuf:"bytes,12,rep,name=warnings,proto3" json:"warnings,omitempty"`
// contains filtered or unexported fields
}
ExecutionSummaryEvent is the final report of plan execution.
func (*ExecutionSummaryEvent) Descriptor
deprecated
func (*ExecutionSummaryEvent) Descriptor() ([]byte, []int)
Deprecated: Use ExecutionSummaryEvent.ProtoReflect.Descriptor instead.
func (*ExecutionSummaryEvent) GetCommandsExecuted ¶
func (x *ExecutionSummaryEvent) GetCommandsExecuted() []string
func (*ExecutionSummaryEvent) GetCompletedAt ¶
func (x *ExecutionSummaryEvent) GetCompletedAt() *timestamppb.Timestamp
func (*ExecutionSummaryEvent) GetErrorMessage ¶
func (x *ExecutionSummaryEvent) GetErrorMessage() string
func (*ExecutionSummaryEvent) GetModifiedFiles ¶
func (x *ExecutionSummaryEvent) GetModifiedFiles() []string
func (*ExecutionSummaryEvent) GetStartedAt ¶
func (x *ExecutionSummaryEvent) GetStartedAt() *timestamppb.Timestamp
func (*ExecutionSummaryEvent) GetStepsExecuted ¶
func (x *ExecutionSummaryEvent) GetStepsExecuted() int32
func (*ExecutionSummaryEvent) GetStepsFailed ¶
func (x *ExecutionSummaryEvent) GetStepsFailed() int32
func (*ExecutionSummaryEvent) GetStepsSkipped ¶
func (x *ExecutionSummaryEvent) GetStepsSkipped() int32
func (*ExecutionSummaryEvent) GetSuccess ¶
func (x *ExecutionSummaryEvent) GetSuccess() bool
func (*ExecutionSummaryEvent) GetTotalDuration ¶
func (x *ExecutionSummaryEvent) GetTotalDuration() *durationpb.Duration
func (*ExecutionSummaryEvent) GetVulnerabilitiesAddressed ¶
func (x *ExecutionSummaryEvent) GetVulnerabilitiesAddressed() int32
func (*ExecutionSummaryEvent) GetWarnings ¶
func (x *ExecutionSummaryEvent) GetWarnings() []string
func (*ExecutionSummaryEvent) ProtoMessage ¶
func (*ExecutionSummaryEvent) ProtoMessage()
func (*ExecutionSummaryEvent) ProtoReflect ¶
func (x *ExecutionSummaryEvent) ProtoReflect() protoreflect.Message
func (*ExecutionSummaryEvent) Reset ¶
func (x *ExecutionSummaryEvent) Reset()
func (*ExecutionSummaryEvent) String ¶
func (x *ExecutionSummaryEvent) String() string
type GeneratePlanRequest ¶
type GeneratePlanRequest struct {
// Source of vulnerability data (one of):
//
// Types that are valid to be assigned to Source:
//
// *GeneratePlanRequest_ScanResult
// *GeneratePlanRequest_SbomBytes
Source isGeneratePlanRequest_Source `protobuf_oneof:"source"`
// SBOMFormat specifies the format if sbom_bytes is set.
SbomFormat v1.Format `protobuf:"varint,3,opt,name=sbom_format,json=sbomFormat,proto3,enum=deputy.sbom.v1.Format" json:"sbom_format,omitempty"`
// Options configure plan generation behavior.
Options *PlanOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
GeneratePlanRequest specifies how to generate a remediation plan.
func (*GeneratePlanRequest) Descriptor
deprecated
func (*GeneratePlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use GeneratePlanRequest.ProtoReflect.Descriptor instead.
func (*GeneratePlanRequest) GetOptions ¶
func (x *GeneratePlanRequest) GetOptions() *PlanOptions
func (*GeneratePlanRequest) GetSbomBytes ¶
func (x *GeneratePlanRequest) GetSbomBytes() []byte
func (*GeneratePlanRequest) GetSbomFormat ¶
func (x *GeneratePlanRequest) GetSbomFormat() v1.Format
func (*GeneratePlanRequest) GetScanResult ¶
func (x *GeneratePlanRequest) GetScanResult() *v11.ScanResponse
func (*GeneratePlanRequest) GetSource ¶
func (x *GeneratePlanRequest) GetSource() isGeneratePlanRequest_Source
func (*GeneratePlanRequest) ProtoMessage ¶
func (*GeneratePlanRequest) ProtoMessage()
func (*GeneratePlanRequest) ProtoReflect ¶
func (x *GeneratePlanRequest) ProtoReflect() protoreflect.Message
func (*GeneratePlanRequest) Reset ¶
func (x *GeneratePlanRequest) Reset()
func (*GeneratePlanRequest) String ¶
func (x *GeneratePlanRequest) String() string
type GeneratePlanRequest_SbomBytes ¶
type GeneratePlanRequest_SbomBytes struct {
// SBOMBytes is raw SBOM data (CycloneDX/SPDX) to analyze.
SbomBytes []byte `protobuf:"bytes,2,opt,name=sbom_bytes,json=sbomBytes,proto3,oneof"`
}
type GeneratePlanRequest_ScanResult ¶
type GeneratePlanRequest_ScanResult struct {
// ScanResult is a complete scan response to base the plan on.
ScanResult *v11.ScanResponse `protobuf:"bytes,1,opt,name=scan_result,json=scanResult,proto3,oneof"`
}
type GeneratePlanResponse ¶
type GeneratePlanResponse struct {
// Plan is the structured remediation plan.
Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
// Target describes what the plan addresses.
Target *v13.Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
// GeneratedAt is when this plan was created.
GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
// Stats summarizes the plan contents.
Stats *PlanStats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"`
// Warnings contains non-fatal issues encountered during planning.
Warnings []string `protobuf:"bytes,5,rep,name=warnings,proto3" json:"warnings,omitempty"`
// contains filtered or unexported fields
}
GeneratePlanResponse contains the generated remediation plan.
func (*GeneratePlanResponse) Descriptor
deprecated
func (*GeneratePlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneratePlanResponse.ProtoReflect.Descriptor instead.
func (*GeneratePlanResponse) GetGeneratedAt ¶
func (x *GeneratePlanResponse) GetGeneratedAt() *timestamppb.Timestamp
func (*GeneratePlanResponse) GetPlan ¶
func (x *GeneratePlanResponse) GetPlan() *Plan
func (*GeneratePlanResponse) GetStats ¶
func (x *GeneratePlanResponse) GetStats() *PlanStats
func (*GeneratePlanResponse) GetTarget ¶
func (x *GeneratePlanResponse) GetTarget() *v13.Target
func (*GeneratePlanResponse) GetWarnings ¶
func (x *GeneratePlanResponse) GetWarnings() []string
func (*GeneratePlanResponse) ProtoMessage ¶
func (*GeneratePlanResponse) ProtoMessage()
func (*GeneratePlanResponse) ProtoReflect ¶
func (x *GeneratePlanResponse) ProtoReflect() protoreflect.Message
func (*GeneratePlanResponse) Reset ¶
func (x *GeneratePlanResponse) Reset()
func (*GeneratePlanResponse) String ¶
func (x *GeneratePlanResponse) String() string
type ListAgentsRequest ¶
type ListAgentsRequest struct {
// contains filtered or unexported fields
}
ListAgentsRequest requests the list of available agents.
func (*ListAgentsRequest) Descriptor
deprecated
func (*ListAgentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAgentsRequest.ProtoReflect.Descriptor instead.
func (*ListAgentsRequest) ProtoMessage ¶
func (*ListAgentsRequest) ProtoMessage()
func (*ListAgentsRequest) ProtoReflect ¶
func (x *ListAgentsRequest) ProtoReflect() protoreflect.Message
func (*ListAgentsRequest) Reset ¶
func (x *ListAgentsRequest) Reset()
func (*ListAgentsRequest) String ¶
func (x *ListAgentsRequest) String() string
type ListAgentsResponse ¶
type ListAgentsResponse struct {
Agents []*AgentInfo `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"`
// contains filtered or unexported fields
}
ListAgentsResponse provides the list of available agents.
func (*ListAgentsResponse) Descriptor
deprecated
func (*ListAgentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAgentsResponse.ProtoReflect.Descriptor instead.
func (*ListAgentsResponse) GetAgents ¶
func (x *ListAgentsResponse) GetAgents() []*AgentInfo
func (*ListAgentsResponse) ProtoMessage ¶
func (*ListAgentsResponse) ProtoMessage()
func (*ListAgentsResponse) ProtoReflect ¶
func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message
func (*ListAgentsResponse) Reset ¶
func (x *ListAgentsResponse) Reset()
func (*ListAgentsResponse) String ¶
func (x *ListAgentsResponse) String() string
type Plan ¶
type Plan struct {
// Id is a unique identifier for this plan (UUID).
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Steps are the remediation actions to perform (in order).
Steps []*Step `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"`
// Target describes what this plan addresses.
Target *v13.Target `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// StdlibUpgrade is a special recommendation for Go toolchain upgrades.
StdlibUpgrade string `protobuf:"bytes,4,opt,name=stdlib_upgrade,json=stdlibUpgrade,proto3" json:"stdlib_upgrade,omitempty"`
// GeneratedAt is when the plan was created.
GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
// Metadata allows custom fields (e.g., "approved_by", "ticket_id").
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
Plan is the structured representation of remediation steps.
func (*Plan) Descriptor
deprecated
func (*Plan) GetGeneratedAt ¶
func (x *Plan) GetGeneratedAt() *timestamppb.Timestamp
func (*Plan) GetMetadata ¶
func (*Plan) GetStdlibUpgrade ¶
func (*Plan) ProtoMessage ¶
func (*Plan) ProtoMessage()
func (*Plan) ProtoReflect ¶
func (x *Plan) ProtoReflect() protoreflect.Message
type PlanOptions ¶
type PlanOptions struct {
// IgnoreUnfixed omits vulnerabilities without available fixes.
IgnoreUnfixed bool `protobuf:"varint,1,opt,name=ignore_unfixed,json=ignoreUnfixed,proto3" json:"ignore_unfixed,omitempty"`
// MaxUpgrades limits the number of version bumps in the plan.
MaxUpgrades int32 `protobuf:"varint,2,opt,name=max_upgrades,json=maxUpgrades,proto3" json:"max_upgrades,omitempty"`
// PreferMinimalChanges prefers smaller version bumps when multiple fixes exist.
PreferMinimalChanges bool `protobuf:"varint,3,opt,name=prefer_minimal_changes,json=preferMinimalChanges,proto3" json:"prefer_minimal_changes,omitempty"`
// IncludeTransitiveFixes includes upgrades for transitive dependencies.
IncludeTransitiveFixes bool `` /* 130-byte string literal not displayed */
// TargetEcosystems filters recommendations to specific package managers.
TargetEcosystems []string `protobuf:"bytes,5,rep,name=target_ecosystems,json=targetEcosystems,proto3" json:"target_ecosystems,omitempty"`
// SeverityThreshold omits vulnerabilities below this severity level.
SeverityThreshold v12.SeverityLevel `` /* 156-byte string literal not displayed */
// contains filtered or unexported fields
}
PlanOptions configures how plans are generated.
func (*PlanOptions) Descriptor
deprecated
func (*PlanOptions) Descriptor() ([]byte, []int)
Deprecated: Use PlanOptions.ProtoReflect.Descriptor instead.
func (*PlanOptions) GetIgnoreUnfixed ¶
func (x *PlanOptions) GetIgnoreUnfixed() bool
func (*PlanOptions) GetIncludeTransitiveFixes ¶
func (x *PlanOptions) GetIncludeTransitiveFixes() bool
func (*PlanOptions) GetMaxUpgrades ¶
func (x *PlanOptions) GetMaxUpgrades() int32
func (*PlanOptions) GetPreferMinimalChanges ¶
func (x *PlanOptions) GetPreferMinimalChanges() bool
func (*PlanOptions) GetSeverityThreshold ¶
func (x *PlanOptions) GetSeverityThreshold() v12.SeverityLevel
func (*PlanOptions) GetTargetEcosystems ¶
func (x *PlanOptions) GetTargetEcosystems() []string
func (*PlanOptions) ProtoMessage ¶
func (*PlanOptions) ProtoMessage()
func (*PlanOptions) ProtoReflect ¶
func (x *PlanOptions) ProtoReflect() protoreflect.Message
func (*PlanOptions) Reset ¶
func (x *PlanOptions) Reset()
func (*PlanOptions) String ¶
func (x *PlanOptions) String() string
type PlanStats ¶
type PlanStats struct {
TotalSteps int32 `protobuf:"varint,1,opt,name=total_steps,json=totalSteps,proto3" json:"total_steps,omitempty"`
ExecutableSteps int32 `protobuf:"varint,2,opt,name=executable_steps,json=executableSteps,proto3" json:"executable_steps,omitempty"`
ManualSteps int32 `protobuf:"varint,3,opt,name=manual_steps,json=manualSteps,proto3" json:"manual_steps,omitempty"`
HighRiskSteps int32 `protobuf:"varint,4,opt,name=high_risk_steps,json=highRiskSteps,proto3" json:"high_risk_steps,omitempty"`
VulnerabilitiesAddressed int32 `` /* 134-byte string literal not displayed */
AffectedPackages int32 `protobuf:"varint,6,opt,name=affected_packages,json=affectedPackages,proto3" json:"affected_packages,omitempty"`
AffectedManagers []string `protobuf:"bytes,7,rep,name=affected_managers,json=affectedManagers,proto3" json:"affected_managers,omitempty"`
// contains filtered or unexported fields
}
PlanStats summarizes plan statistics.
func (*PlanStats) Descriptor
deprecated
func (*PlanStats) GetAffectedManagers ¶
func (*PlanStats) GetAffectedPackages ¶
func (*PlanStats) GetExecutableSteps ¶
func (*PlanStats) GetHighRiskSteps ¶
func (*PlanStats) GetManualSteps ¶
func (*PlanStats) GetTotalSteps ¶
func (*PlanStats) GetVulnerabilitiesAddressed ¶
func (*PlanStats) ProtoMessage ¶
func (*PlanStats) ProtoMessage()
func (*PlanStats) ProtoReflect ¶
func (x *PlanStats) ProtoReflect() protoreflect.Message
type ResumeAgentRequest ¶
type ResumeAgentRequest struct {
// SessionId identifies the session to resume.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// Message is a follow-up message to send to the agent.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// ApprovalResponse is the response to a pending approval request.
ApprovalResponse *AgentApprovalResponse `protobuf:"bytes,3,opt,name=approval_response,json=approvalResponse,proto3" json:"approval_response,omitempty"`
// Timeout is the maximum duration for the resumed session.
Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
// contains filtered or unexported fields
}
ResumeAgentRequest specifies how to resume a previous session.
func (*ResumeAgentRequest) Descriptor
deprecated
func (*ResumeAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResumeAgentRequest.ProtoReflect.Descriptor instead.
func (*ResumeAgentRequest) GetApprovalResponse ¶
func (x *ResumeAgentRequest) GetApprovalResponse() *AgentApprovalResponse
func (*ResumeAgentRequest) GetMessage ¶
func (x *ResumeAgentRequest) GetMessage() string
func (*ResumeAgentRequest) GetSessionId ¶
func (x *ResumeAgentRequest) GetSessionId() string
func (*ResumeAgentRequest) GetTimeout ¶
func (x *ResumeAgentRequest) GetTimeout() *durationpb.Duration
func (*ResumeAgentRequest) ProtoMessage ¶
func (*ResumeAgentRequest) ProtoMessage()
func (*ResumeAgentRequest) ProtoReflect ¶
func (x *ResumeAgentRequest) ProtoReflect() protoreflect.Message
func (*ResumeAgentRequest) Reset ¶
func (x *ResumeAgentRequest) Reset()
func (*ResumeAgentRequest) String ¶
func (x *ResumeAgentRequest) String() string
type RiskLevel ¶
type RiskLevel int32
RiskLevel indicates the risk of a remediation step.
func (RiskLevel) Descriptor ¶
func (RiskLevel) Descriptor() protoreflect.EnumDescriptor
func (RiskLevel) EnumDescriptor
deprecated
func (RiskLevel) Number ¶
func (x RiskLevel) Number() protoreflect.EnumNumber
func (RiskLevel) Type ¶
func (RiskLevel) Type() protoreflect.EnumType
type Step ¶
type Step struct {
// Id uniquely identifies this step within the plan.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Kind indicates the type of remediation.
Kind StepKind `protobuf:"varint,2,opt,name=kind,proto3,enum=deputy.remediation.v1.StepKind" json:"kind,omitempty"`
// Title is a human-readable summary of the step.
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
// Description explains what the step does and why.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// PackageName is the affected package name (for version_upgrade steps).
PackageName string `protobuf:"bytes,5,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
// CurrentVersion is the current version (for version_upgrade steps).
CurrentVersion string `protobuf:"bytes,6,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
// TargetVersion is the recommended version (for version_upgrade steps).
TargetVersion string `protobuf:"bytes,7,opt,name=target_version,json=targetVersion,proto3" json:"target_version,omitempty"`
// Manager is the package manager involved (go, npm, pip, cargo, etc.).
Manager string `protobuf:"bytes,8,opt,name=manager,proto3" json:"manager,omitempty"`
// ManifestPath is the relative path to the manifest/lockfile.
ManifestPath string `protobuf:"bytes,9,opt,name=manifest_path,json=manifestPath,proto3" json:"manifest_path,omitempty"`
// Command is the shell command to execute (for shell_command steps).
Command string `protobuf:"bytes,10,opt,name=command,proto3" json:"command,omitempty"`
// RiskLevel indicates the risk of this step.
RiskLevel RiskLevel `` /* 127-byte string literal not displayed */
// AffectedVulnerabilities are the CVE/GHSA IDs this step addresses.
AffectedVulnerabilities []string `` /* 131-byte string literal not displayed */
// Executable indicates if the step can be auto-executed.
Executable bool `protobuf:"varint,13,opt,name=executable,proto3" json:"executable,omitempty"`
// RequiresApproval indicates if this step requires explicit user approval.
RequiresApproval bool `protobuf:"varint,14,opt,name=requires_approval,json=requiresApproval,proto3" json:"requires_approval,omitempty"`
// Hint provides additional context for manual steps.
Hint string `protobuf:"bytes,15,opt,name=hint,proto3" json:"hint,omitempty"`
// DependsOn lists IDs of steps that must execute before this one.
DependsOn []string `protobuf:"bytes,16,rep,name=depends_on,json=dependsOn,proto3" json:"depends_on,omitempty"`
// contains filtered or unexported fields
}
Step represents a single actionable remediation.
func (*Step) Descriptor
deprecated
func (*Step) GetAffectedVulnerabilities ¶
func (*Step) GetCommand ¶
func (*Step) GetCurrentVersion ¶
func (*Step) GetDependsOn ¶
func (*Step) GetDescription ¶
func (*Step) GetExecutable ¶
func (*Step) GetManager ¶
func (*Step) GetManifestPath ¶
func (*Step) GetPackageName ¶
func (*Step) GetRequiresApproval ¶
func (*Step) GetRiskLevel ¶
func (*Step) GetTargetVersion ¶
func (*Step) ProtoMessage ¶
func (*Step) ProtoMessage()
func (*Step) ProtoReflect ¶
func (x *Step) ProtoReflect() protoreflect.Message
type StepCompletedEvent ¶
type StepCompletedEvent struct {
StepId string `protobuf:"bytes,1,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
Output string `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
StepCompletedEvent indicates a remediation step finished.
func (*StepCompletedEvent) Descriptor
deprecated
func (*StepCompletedEvent) Descriptor() ([]byte, []int)
Deprecated: Use StepCompletedEvent.ProtoReflect.Descriptor instead.
func (*StepCompletedEvent) GetDuration ¶
func (x *StepCompletedEvent) GetDuration() *durationpb.Duration
func (*StepCompletedEvent) GetOutput ¶
func (x *StepCompletedEvent) GetOutput() string
func (*StepCompletedEvent) GetStepId ¶
func (x *StepCompletedEvent) GetStepId() string
func (*StepCompletedEvent) GetSuccess ¶
func (x *StepCompletedEvent) GetSuccess() bool
func (*StepCompletedEvent) ProtoMessage ¶
func (*StepCompletedEvent) ProtoMessage()
func (*StepCompletedEvent) ProtoReflect ¶
func (x *StepCompletedEvent) ProtoReflect() protoreflect.Message
func (*StepCompletedEvent) Reset ¶
func (x *StepCompletedEvent) Reset()
func (*StepCompletedEvent) String ¶
func (x *StepCompletedEvent) String() string
type StepKind ¶
type StepKind int32
StepKind identifies the type of remediation step.
const ( StepKind_STEP_KIND_UNSPECIFIED StepKind = 0 StepKind_STEP_KIND_VERSION_UPGRADE StepKind = 1 StepKind_STEP_KIND_FILE_EDIT StepKind = 2 StepKind_STEP_KIND_SHELL_COMMAND StepKind = 3 StepKind_STEP_KIND_DOCKERFILE_UPDATE StepKind = 4 StepKind_STEP_KIND_ACTION_UPDATE StepKind = 5 StepKind_STEP_KIND_CONFIG_CHANGE StepKind = 6 StepKind_STEP_KIND_CUSTOM_AGENT StepKind = 7 )
func (StepKind) Descriptor ¶
func (StepKind) Descriptor() protoreflect.EnumDescriptor
func (StepKind) EnumDescriptor
deprecated
func (StepKind) Number ¶
func (x StepKind) Number() protoreflect.EnumNumber
func (StepKind) Type ¶
func (StepKind) Type() protoreflect.EnumType