projects

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package projects handles project creation, selection, updates, deletion, and team invites within workspaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	WorkspaceID string `json:"workspace_id"`
}

Project represents a project in a workspace

type Service

type Service struct {
	API *api.Client
}

Service handles project orchestration

func NewService

func NewService(client *api.Client) *Service

NewService creates a new project service

func (*Service) Create

func (s *Service) Create(name, description string) (*Project, error)

Create creates a new project in the active workspace and binds it locally

func (*Service) Delete

func (s *Service) Delete(name string) error

Delete permanently removes a project from the workspace

func (*Service) Invite

func (s *Service) Invite(email, role string) error

Invite invites a user to the current project by email, potentially migrating a personal workspace to a shared one.

func (*Service) List

func (s *Service) List() ([]Project, error)

List returns all projects for the currently selected workspace

func (*Service) Update

func (s *Service) Update(oldName, newName, desc string) error

Update modifies an existing project's name or description

func (*Service) Use

func (s *Service) Use(name string) (*Project, error)

Use selects a project by name and updates the local .agentsecrets/project.json

Jump to

Keyboard shortcuts

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