AGENTS.md
Go client library for the Lunatask API.
Copies of the API docs (uncommitted) are in ./docs/ with a thorough index at ./docs/index.md. You can also check Context7 with /websites/lunatask_app_api. Reference them often.
Commands
Run these most to least often
task fmt lint staticcheck test # Important ones to runs often
task # Include vulnerability and copyright checks
Duplicate Handling
Create methods return (nil, nil) when a matching entity already exists (HTTP 204). This is intentional API behavior, not an error:
task, err := client.NewTask("Review PR").Create(ctx)
if err != nil {
return err // actual error
}
if task == nil {
// duplicate exists, not created
}