Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAPIKey = xerrors.New("no api key provided") ErrNoNameGenerated = xerrors.New("no task name generated") )
Functions ¶
This section is empty.
Types ¶
type TaskName ¶ added in v2.29.0
func Generate ¶
Generate creates a task name and display name from a user prompt. It attempts multiple strategies in order of preference:
- Use Claude (Anthropic) to generate semantic names from the prompt if an API key is available
- Sanitize the prompt directly into a valid task name
- Generate a random name as a final fallback
A suffix is always appended to task names to reduce collision risk. This function always succeeds and returns a valid TaskName.
Click to show internal directories.
Click to hide internal directories.