application

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIPlanningService

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

func NewAIPlanningService

func NewAIPlanningService(repo domain.WorkspaceRepository, provider ai.Provider, audit *AuditService) *AIPlanningService

func (*AIPlanningService) DecomposeSpec

func (s *AIPlanningService) DecomposeSpec(ctx context.Context) (*planning.Plan, error)

func (*AIPlanningService) ExplainDrift

func (s *AIPlanningService) ExplainDrift(ctx context.Context, report *drift.Report) (string, error)

func (*AIPlanningService) ExplainSpec

func (s *AIPlanningService) ExplainSpec(ctx context.Context) (string, error)

func (*AIPlanningService) GetAuditService

func (s *AIPlanningService) GetAuditService() *AuditService

func (*AIPlanningService) ReconcileSpec

func (s *AIPlanningService) ReconcileSpec(ctx context.Context, rawSpec *spec.ProductSpec) (*spec.ProductSpec, error)

type AuditService

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

func NewAuditService

func NewAuditService(repo domain.WorkspaceRepository) *AuditService

func (*AuditService) GetTimeline

func (s *AuditService) GetTimeline() ([]domain.Event, error)

func (*AuditService) GetVelocity

func (s *AuditService) GetVelocity() (float64, error)

GetVelocity returns the average verified tasks per day over the last 7 days.

func (*AuditService) Log

func (s *AuditService) Log(action string, actor string, metadata map[string]interface{}) error

func (*AuditService) VerifyIntegrity

func (s *AuditService) VerifyIntegrity() ([]string, error)

type DriftService

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

func NewDriftService

func NewDriftService(repo domain.WorkspaceRepository) *DriftService

func (*DriftService) DetectDrift

func (s *DriftService) DetectDrift() (*drift.Report, error)

type InitService

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

func NewInitService

func NewInitService(repo domain.WorkspaceRepository, audit *AuditService) *InitService

func (*InitService) InitializeProject

func (s *InitService) InitializeProject(name string) error

type PlanService

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

func NewPlanService

func NewPlanService(repo domain.WorkspaceRepository, audit *AuditService) *PlanService

func (*PlanService) ApprovePlan

func (s *PlanService) ApprovePlan() error

func (*PlanService) GeneratePlan

func (s *PlanService) GeneratePlan() (*planning.Plan, error)

GeneratePlan updates the Plan based on the current Spec using a default heuristic.

func (*PlanService) GetPlan

func (s *PlanService) GetPlan() (*planning.Plan, error)

func (*PlanService) GetState

func (s *PlanService) GetState() (*planning.ExecutionState, error)

func (*PlanService) GetUsage

func (s *PlanService) GetUsage() (*domain.UsageStats, error)

func (*PlanService) PrunePlan

func (s *PlanService) PrunePlan() error

func (*PlanService) ReconcilePlan

func (s *PlanService) ReconcilePlan(proposedTasks []planning.Task) (*planning.Plan, error)

ReconcilePlan merges new tasks with the existing plan state.

func (*PlanService) RejectPlan

func (s *PlanService) RejectPlan() error

func (*PlanService) UpdatePlan

func (s *PlanService) UpdatePlan(tasks []planning.Task) (*planning.Plan, error)

UpdatePlan allows external agents (AI) to provide a specific list of tasks.

type PolicyService

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

func NewPolicyService

func NewPolicyService(repo domain.WorkspaceRepository) *PolicyService

func (*PolicyService) CheckCompliance

func (s *PolicyService) CheckCompliance() ([]policy.Violation, error)

CheckCompliance validates the current plan against active policies.

func (*PolicyService) ValidateTransition

func (s *PolicyService) ValidateTransition(taskID string, event string) error

type SpecService

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

func NewSpecService

func NewSpecService(repo domain.WorkspaceRepository) *SpecService

func (*SpecService) AddFeature

func (s *SpecService) AddFeature(title, description string) (*spec.ProductSpec, error)

func (*SpecService) AnalyzeDirectory

func (s *SpecService) AnalyzeDirectory(root string) (*spec.ProductSpec, error)

AnalyzeDirectory crawls a directory for markdown files and merges them into a single Spec.

func (*SpecService) GetSpec

func (s *SpecService) GetSpec() (*spec.ProductSpec, error)

func (*SpecService) ImportFromMarkdown

func (s *SpecService) ImportFromMarkdown(path string) (*spec.ProductSpec, error)

ImportFromMarkdown reads a markdown file and converts it into a ProductSpec.

type TaskService

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

func NewTaskService

func NewTaskService(repo domain.WorkspaceRepository, audit *AuditService) *TaskService

func (*TaskService) LinkTask

func (s *TaskService) LinkTask(taskID string, provider string, ref planning.ExternalRef) error

func (*TaskService) TransitionTask

func (s *TaskService) TransitionTask(taskID string, event string, actor string, evidence string) error

Jump to

Keyboard shortcuts

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