Add the basecamp subtasks umbrella on the SDK's Subtasks service

Merged
ZA
2mo ago
+1567-102

What

basecamp/basecamp-sdk#883 adds a Subtasks service on bc3's flat canonical subtask routes (bc3#12659). This surfaces all eight of its operations as a new basecamp subtasks group:

basecamp subtasks list       <todo-or-card-id|url> [--limit N | --all | --page N]
basecamp subtasks show       <id|url>
basecamp subtasks create     <todo-or-card-id|url> <title> [--due DATE] [--assignees LIST]
basecamp subtasks update     <id|url> [title] [--title T] [--due DATE | --no-due] [--assignees LIST | --no-assignees]
basecamp subtasks complete   <id|url>
basecamp subtasks uncomplete <id|url>
basecamp subtasks move       <id|url> --position N      # 1-based
basecamp subtasks delete     <id|url>
  • The routes are scoped to the account, so no verb takes --in. A parent is a to-do or a card, given by id or pasted URL. A subtask URL is its parent's URL ending in #__recording_<id>, and the fragment names the subtask.
  • update is partial, the way the SDK and bc3 are. --no-due and --no-assignees send the explicit clears ("due_on": "", "assignee_ids": []).
  • complete, uncomplete, move and delete get a bare 204 back, so their payload reports the state that was requested.

Registration, catalog entry, .surface, API-COVERAGE row, MCP model sync, skill docs, unit tests, e2e error-handling tests and a level-1 smoke suite all follow the shape of #677 (bubble-up), with #682 and #689 for the SDK-bump-plus-new-group pieces. The skill's old section on to-do subtasks, which used raw basecamp api calls, is replaced with the new commands.

SDK

Rebased onto main, which is on the released basecamp-sdk go v0.21.0. That release ships the Subtasks service from #883, so the temporary pin of SDK main is gone, and go.mod, provenance, the MCP model and the Nix hash all come from main. The SDK changes the pin used to bring along (the split Automation tag and the rest) were already absorbed on main by the v0.21.0 bump.

Test plan

  • bin/ci green locally
  • New unit tests (internal/commands/subtasks_test.go) cover each verb's route, method and body against the recording transport
  • e2e/subtasks.bats covers argument and flag errors
  • e2e/smoke/smoke_subtasks.bats (level 1) runs the full lifecycle against a real to-do on the next smoke run

Card: https://app.basecamp.com/2914079/buckets/48521764/card_tables/cards/10346213842

🤖 Generated with Claude Code