project

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ID                string    `yaml:"id"`
	Name              string    `yaml:"name"`
	Description       string    `yaml:"description"`
	RepositoryURL     string    `yaml:"repository_url"`
	DefaultBranch     string    `yaml:"default_branch"`
	Order             int32     `yaml:"order"`
	HiddenFromSidebar bool      `yaml:"hidden_from_sidebar"`
	CreatedAt         time.Time `yaml:"created_at"`
	UpdatedAt         time.Time `yaml:"updated_at"`
}

type Repository

type Repository interface {
	Create(ctx context.Context, p *Project) error
	Get(ctx context.Context, id string) (*Project, error)
	FindByName(ctx context.Context, name string) (*Project, error)
	List(ctx context.Context, limit, offset int) ([]*Project, int, error)
	ListAll(ctx context.Context) ([]*Project, error)
	Update(ctx context.Context, p *Project) error
	Delete(ctx context.Context, id string) error
}

type Seeder added in v0.0.31

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

Seeder creates default workflow and skills for a newly created project.

func NewSeeder added in v0.0.31

func NewSeeder(workflowRepo workflow.Repository, skillRepo skill.Repository) *Seeder

NewSeeder creates a new Seeder.

func (*Seeder) Seed added in v0.0.31

func (s *Seeder) Seed(ctx context.Context, projectID string) error

Seed creates the default development workflow with role skills, guard skills, and hook skills for a newly created project.

func (*Seeder) UpsertSkills added in v0.0.63

func (s *Seeder) UpsertSkills(ctx context.Context, projectID string) error

UpsertSkills upserts the default skill definitions into the given project. For each definition, if a skill with the same name already exists in the project, its description/content/tools/etc. are updated while preserving the existing ID and CreatedAt. Otherwise a new skill is created.

UpsertSkills never deletes skills — any skills in the project that are not in the default definitions are left untouched. The workflow is also left alone, so calling this against an existing project is safe.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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