Add collections and collection commands - #1
Closed
sburgos9 wants to merge 1 commit into
Closed
Conversation
`hey collections` lists all collections via GET /collections.json. `hey collection <id>` lists every thread in a collection. The collection detail view has no JSON API and renders only ~50 threads per page, so the command walks the full timeline via the "next page" pagination link and parses both card__link (recent) and entry__collection-topic (older) anchors, de-duplicating across pages. Uses the existing OAuth auth; no session cookie required. Includes unit tests for the HTML parser and next-page extraction, and regenerates the .surface baseline for the new commands. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
sburgos9
force-pushed
the
add-collections-commands
branch
from
July 24, 2026 21:14
ce8ff99 to
d7363a6
Compare
Owner
Author
|
Superseded by basecamp#140, which targets the upstream repo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hey collections— lists all collections viaGET /collections.json(sorted by name;--limit/--all/--json)hey collection <id>— lists every thread in a collectionhey collectionwalks the full timeline via the "next page" pagination link, parsing bothcard__link(recent) andentry__collection-topic(older) anchors and de-duplicating across pagesTest plan
hey collectionslists every collection, sorted by namehey collection <id>returns all threads, not just the first page (85-thread collection fully enumerated; previously silently truncated to 50)make checkpasses (gofmt, goimports, vet, golangci-lint, unit tests, tidy)🤖 Generated with Claude Code