Adopt basecamp-sdk v0.12.0

Closed
JE
4mo ago
+20-20

PR 1 of 3. Bump only — no new commands. B (bc5-command-surface) and C
(account-wide-task-filters) stack on top.

What changed

Everything() gained a parameter in v0.12.0. Eleven call sites across
cards.go and todos.go pass nil, preserving today's behaviour exactly.

internal/version/sdk-provenance.json moves to v0.12.0.

vendorHash

nix/package.nix is updated to sha256-+j9bY0gS… via make update-nix-hash.
A go.mod change invalidates it and the nix-build job gates on it, so the bump
cannot land without this. Recomputed and re-verified by rebuild — through the
shared classifier that #609 just extracted, which is a nice first real exercise
of it.

Rebase provenance

Rebased from 1bf961f2 onto ec979fc8. git range-diff against
backup/sdk-0.12.0-pre-rebase shows the only intra-commit change is the
vendorHash line; everything else is byte-identical.

go.mod resolved cleanly because the two moves are disjoint — main bumped goldmark
1.8.4 → 1.8.5 and left the SDK alone; this branch bumps the SDK and leaves
goldmark alone. Result is SDK v0.12.0 + goldmark v1.8.5, which is the intended
resolution. No replace directive.

Verification

  • bin/ci exit 0 at this head.
  • goldmark renderer re-smoked, and this is the interesting one. The stack
    carried goldmark 1.8.4, main carries 1.8.5, and internal/commands/notes.go
    renders through richtext.MarkdownToHTML — so the renderer under that path
    changed on rebase. Rendering one corpus (headings, nested lists, tables, fenced
    code, footnotes, emoji, raw HTML, hard breaks, entities) under both versions
    produces byte-identical output.
  • Live round-trip against production as well: notes set --file → notes show
    returns correct HTML for headings, emphasis, lists, links (target/rel),
    blockquote and entity escaping. Test note restored to its prior content
    byte-for-byte afterwards.

Backup branch: backup/sdk-0.12.0-pre-rebase


Summary by cubic

Upgrade to github.com/basecamp/basecamp-sdk/go v0.12.0 and update Everything() selectors to accept the new filters param, passing nil to keep behavior unchanged. No user-facing changes; sets up future account-wide filtering.

  • Dependencies
    • Bumped SDK to v0.12.0 in go.mod/go.sum.
    • Updated nix/package.nix vendorHash.
    • Refreshed internal/version/sdk-provenance.json.