team

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package team implements multi-user task assignment and workload management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assign

func Assign(workDir string, taskID int, user string) error

Assign sets the assignee for a task and persists the updated state. taskID is matched against Task.ID; user may be empty to unassign.

func BalancePrompt

func BalancePrompt(plan *pm.Plan) string

BalancePrompt builds a prompt asking the AI to suggest workload rebalancing across the current team members.

func Members

func Members(plan *pm.Plan) []string

Members returns an alphabetically sorted list of all distinct non-empty assignees in the plan.

func Workload

func Workload(plan *pm.Plan) map[string][]*pm.Task

Workload groups tasks by assignee. Tasks with no assignee are grouped under the empty string key "". The returned map is never nil.

func WorkloadSummary

func WorkloadSummary(plan *pm.Plan) string

WorkloadSummary returns a formatted text block showing each member's task list with statuses and estimated hours. Unassigned tasks are listed last under "(unassigned)".

Types

This section is empty.

Jump to

Keyboard shortcuts

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