Documentation
¶
Overview ¶
Package effortop coordinates resolved effort use cases over effort residents and managed worktrees.
Index ¶
- func AcquireMutationLease(ctx context.Context, root, subcommand string, noWorktree bool) (*filesystem.Lease, error)
- func AddWorktree(ctx context.Context, manager *worktree.Manager, slug, base string) (presentation.Document, error)
- func AttachActivity(service *effort.Service, slug, owner string) effort.ActivityReply
- func DetachActivity(service *effort.Service, slug, owner string) effort.ActivityReply
- func EditMemory(service *effort.Service, input effort.MemoryEditInput) (effort.MemoryOperationResult, error)
- func Finish(ctx context.Context, service *effort.Service, slug string) (presentation.Document, error)
- func HeartbeatActivity(service *effort.Service, slug, owner string) effort.ActivityReply
- func Integrate(ctx context.Context, root string, manager *worktree.Manager, slug string) (presentation.Document, error)
- func List(service *effort.Service) (presentation.Document, error)
- func New(ctx context.Context, service *effort.Service, manager *worktree.Manager, ...) (presentation.Document, error)
- func ReadMemory(service *effort.Service, input effort.MemoryReadInput) (effort.MemoryOperationResult, error)
- func RemoveWorktree(ctx context.Context, manager *worktree.Manager, slug string) (presentation.Document, error)
- func Show(service *effort.Service, slug string) (presentation.Document, error)
- func UpdateMemory(service *effort.Service, input effort.MemoryUpdateInput) (effort.MemoryOperationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireMutationLease ¶ added in v0.41.0
func AcquireMutationLease(ctx context.Context, root, subcommand string, noWorktree bool) (*filesystem.Lease, error)
AcquireMutationLease is the sole effort application-composition policy for resident and dual-root mutation transactions. Command code supplies only the parsed operation shape and holds the returned capability through rendering.
func AddWorktree ¶
func AddWorktree(ctx context.Context, manager *worktree.Manager, slug, base string) (presentation.Document, error)
AddWorktree adds the managed worktree for an effort.
func AttachActivity ¶
func AttachActivity(service *effort.Service, slug, owner string) effort.ActivityReply
AttachActivity attaches one bounded activity owner.
func DetachActivity ¶
func DetachActivity(service *effort.Service, slug, owner string) effort.ActivityReply
DetachActivity detaches one bounded activity owner.
func EditMemory ¶
func EditMemory(service *effort.Service, input effort.MemoryEditInput) (effort.MemoryOperationResult, error)
EditMemory performs one exact memory edit or preview.
func Finish ¶
func Finish(ctx context.Context, service *effort.Service, slug string) (presentation.Document, error)
Finish finishes an effort resident and returns its readable mutation result.
func HeartbeatActivity ¶
func HeartbeatActivity(service *effort.Service, slug, owner string) effort.ActivityReply
HeartbeatActivity refreshes one bounded activity owner.
func Integrate ¶
func Integrate(ctx context.Context, root string, manager *worktree.Manager, slug string) (presentation.Document, error)
Integrate verifies and fast-forwards an effort branch into its base branch.
func List ¶
func List(service *effort.Service) (presentation.Document, error)
List returns the readable active-effort listing.
func New ¶
func New(ctx context.Context, service *effort.Service, manager *worktree.Manager, input effort.NewInput, base string, noWorktree bool) (presentation.Document, error)
New creates an effort resident and, unless excluded, its managed worktree.
func ReadMemory ¶
func ReadMemory(service *effort.Service, input effort.MemoryReadInput) (effort.MemoryOperationResult, error)
ReadMemory performs one bounded memory read.
func RemoveWorktree ¶
func RemoveWorktree(ctx context.Context, manager *worktree.Manager, slug string) (presentation.Document, error)
RemoveWorktree removes the managed worktree for an effort.
func UpdateMemory ¶
func UpdateMemory(service *effort.Service, input effort.MemoryUpdateInput) (effort.MemoryOperationResult, error)
UpdateMemory updates effort memory metadata or previews the update.
Types ¶
This section is empty.