Skip to content

feat!: migrate completed command to getAllCompletedTasks endpoint#204

Draft
scottlovegrove wants to merge 2 commits intomainfrom
scottl/completed-tasks
Draft

feat!: migrate completed command to getAllCompletedTasks endpoint#204
scottlovegrove wants to merge 2 commits intomainfrom
scottl/completed-tasks

Conversation

@scottlovegrove
Copy link
Copy Markdown
Collaborator

Summary

  • Switches td completed from getCompletedTasksByCompletionDate (cursor-based) to getAllCompletedTasks (offset-based)
  • Adds --label, --offset, --annotate-notes, and --annotate-items flags
  • Uses inline project/section data from the response instead of a separate getProjects() call (still fetches full projects only for collaborator resolution when tasks have assignees)

Breaking Changes

  • --cursor flag removed — use --offset instead
  • --all flag removed — offset-based pagination risks 429 rate-limit errors with unbounded fetches

Test plan

  • Type-check passes
  • All 1129 tests pass (18 in completed suite — 13 updated, 5 new)
  • Lint clean
  • Format clean
  • Manual: td completed shows today's completed tasks
  • Manual: td completed --label "work" filters by label
  • Manual: td completed --offset 10 --limit 5 pagination works
  • Manual: td completed --annotate-notes --json includes comment data

🤖 Generated with Claude Code

@scottlovegrove scottlovegrove self-assigned this Mar 30, 2026
@scottlovegrove scottlovegrove force-pushed the scottl/completed-tasks branch from e36e378 to f8bfd3b Compare April 1, 2026 10:20
@scottlovegrove scottlovegrove force-pushed the scottl/completed-tasks branch from f8bfd3b to ab02541 Compare April 11, 2026 08:36
scottlovegrove and others added 2 commits April 11, 2026 22:52
Switch from getCompletedTasksByCompletionDate (cursor-based) to
getAllCompletedTasks (offset-based) for richer filtering and inline
project/section data. Adds --label, --offset, --annotate-notes, and
--annotate-items flags.

BREAKING CHANGE: --cursor and --all flags are removed. Use --offset
for pagination instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@scottlovegrove scottlovegrove force-pushed the scottl/completed-tasks branch from ab02541 to 672ec74 Compare April 11, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant