hradvisor

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrActivationUnavailable         = errors.New("hr advisor activation unavailable")
	ErrActivationRoleNotFound        = errors.New("hr advisor role template not found")
	ErrActivationWorkflowExists      = errors.New("hr advisor role workflow already exists")
	ErrActivationProviderUnavailable = errors.New("hr advisor activation requires an available agent provider")
	ErrActivationStatusNotFound      = errors.New("hr advisor activation status is not configured")
)

Functions

func Analyze

func Analyze(snapshot domain.Snapshot) domain.Analysis

Analyze recommends role coverage from the current project snapshot.

Types

type ActivateWorkflowInput

type ActivateWorkflowInput struct {
	ProjectID             uuid.UUID
	AgentID               uuid.UUID
	Name                  string
	Type                  string
	RoleSlug              string
	RoleName              string
	RoleDescription       string
	PlatformAccessAllowed []string
	SkillNames            []string
	HarnessPath           string
	HarnessContent        string
	MaxConcurrent         int
	MaxRetryAttempts      int
	TimeoutMinutes        int
	StallTimeoutMinutes   int
	IsActive              bool
	PickupStatusIDs       []uuid.UUID
	FinishStatusIDs       []uuid.UUID
}

type ActivationResult

type ActivationResult struct {
	ProjectID       uuid.UUID
	RoleSlug        string
	Agent           catalogdomain.Agent
	Workflow        ActivationWorkflow
	BootstrapTicket BootstrapTicketResult
}

type ActivationService

type ActivationService struct {
	// contains filtered or unexported fields
}

func NewActivationService

func NewActivationService(
	catalog activationCatalog,
	workflows activationWorkflows,
	statuses activationStatuses,
	tickets activationTickets,
) *ActivationService

func (*ActivationService) Activate

type ActivationStatus

type ActivationStatus struct {
	ID    uuid.UUID
	Name  string
	Stage string
}

type ActivationTicket

type ActivationTicket struct {
	ID          uuid.UUID
	ProjectID   uuid.UUID
	Identifier  string
	Title       string
	StatusID    uuid.UUID
	StatusName  string
	WorkflowID  *uuid.UUID
	CreatedBy   string
	Priority    string
	Type        string
	Description string
}

type ActivationWorkflow

type ActivationWorkflow struct {
	ID                    uuid.UUID
	ProjectID             uuid.UUID
	AgentID               *uuid.UUID
	Name                  string
	Type                  string
	RoleSlug              string
	RoleName              string
	RoleDescription       string
	PlatformAccessAllowed []string
	HarnessPath           string
	HarnessContent        string
	MaxConcurrent         int
	MaxRetryAttempts      int
	TimeoutMinutes        int
	StallTimeoutMinutes   int
	Version               int
	IsActive              bool
	PickupStatusIDs       []uuid.UUID
	FinishStatusIDs       []uuid.UUID
}

type BootstrapTicketResult

type BootstrapTicketResult struct {
	Requested bool
	Status    string
	Message   string
	Ticket    *ActivationTicket
}

type CreateActivationTicketInput

type CreateActivationTicketInput struct {
	ProjectID   uuid.UUID
	Title       string
	Description string
	StatusID    *uuid.UUID
	Priority    string
	Type        string
	WorkflowID  *uuid.UUID
	CreatedBy   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL