feat(linux-do): add linux.do adapter with 6 commands#56
Merged
jackwener merged 1 commit intojackwener:mainfrom Mar 18, 2026
Merged
feat(linux-do): add linux.do adapter with 6 commands#56jackwener merged 1 commit intojackwener:mainfrom
jackwener merged 1 commit intojackwener:mainfrom
Conversation
Add linux.do (Discourse-based forum) support with 6 YAML pipeline commands: - hot: trending topics with period filter (all/daily/weekly/monthly/yearly) - latest: newest topics - categories: list all categories with slug/id for further queries - category: browse topics within a specific category - topic: post details with replies (first page) - search: search topics by keyword All commands use navigate+evaluate pattern with cookie auth (linux.do enforces login_required on all endpoints). Security: user inputs sanitized via | json filter + encodeURIComponent. HTML content stripped with block-tag spacing and full entity decoding.
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
Closes #43. Adds linux.do (Discourse-based Chinese tech forum) support with 6 YAML pipeline commands:
categorycommand)All commands use
navigate+evaluatepattern with cookie auth (browser: true), since linux.do enforceslogin_requiredon all API endpoints.Security
keyword,slug,period) sanitized via| jsontemplate filter +encodeURIComponentid,limit) type-enforced by framework before template expansionHTML handling (topic command)
<p>,<br>,<div>, etc.) converted to spaces&,<, etc.) decoded'and hex') decoded viaString.fromCodePointwith try-catch guardFiles changed
src/clis/linux-do/- 6 YAML adapter filestests/e2e/browser-auth.test.ts- 6 graceful-failure test casesTest plan
npm run build- 110 entries (30 YAML, 80 TS), includes 6 new linux-do commandsnpm run typecheck- passesnpx vitest run src/- 200 unit tests passopencli linux-do --help- all 6 subcommands registered