* fix(route/taptap/topic): add extra check to make sure the existance of topic.id_str
* fix(route/taptap/topic): return valid content instead of filter
* fix(route/anthropic): ensure news route includes article content
* refactor: change order of maintainers array
* refactor: simplify selector for redundant elements that should be removed
* refactor: remove redundant codeblock control elements
* Adding a route of zju/cse
* Change route path to include '/zju/' prefix
* Fix the route of zju/cse
* Fix the route of zju/cse
* Response to the reviewer
* Update comment for content extraction in index.ts
Removed comment about removing images from content extraction.
* fix: update zhihu daily API call
Updated story URL to use the API endpoint and adjusted data extraction
accordingly.
* fix: remove useless cache
* fix: use data from json instead
---------
- Fix Redis cache async handling by adding await to cache.get() calls
- Refactor request_key management into separate ensureRequestKey function
- Simplify main data fetching flow by removing complex retry logic
- Add proper error type guards and logging for better debugging
- Improve code readability and maintainability
Fixes issue where Skeb works route failed with Redis cache due to
cache.get() returning Promise object instead of string value, causing
invalid request_key in API calls.
* feat(route): add Wikipedia current events
Add RSS feed for Wikipedia Portal:Current events providing the past 7 days of current events. Parses MediaWiki templates and converts wiki markup to HTML.
- Hierarchical bullet point structures with nested <ul>/<li> tags
- Proper paragraph breaks between sections
- Correct nesting depth for multi-level lists
- Clean separation of content sections
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor(route/wikipedia): break down complex wikiToHtml function
- Split 123-line wikiToHtml function into 6 smaller, focused methods
- Each function now has a single responsibility (links, formatting, lists, etc.)
- Improved code readability and maintainability
- End-to-end tested: route produces identical RSS output with proper HTML formatting
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(route/wikipedia): use config.trueUA instead of hardcoded User-Agent
Replace hardcoded User-Agent string with config.trueUA to follow
project conventions for HTTP requests.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(route/wikipedia): use config.cache.contentExpire for cache duration
Replace hardcoded 6-hour cache duration with configurable contentExpire
setting to follow project caching conventions.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat(route/wikipedia): implement efficient current events RSS with single API request
- Switch from web scraping to MediaWiki API for better reliability
- Implement single batch API request with continuation support for multiple pages
- Add current-day inclusion parameter with time-based logic (auto/always/never/hour)
- Add proper error handling and ESLint compliance
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor(route/wikipedia): consolidate list processing and add API documentation
- Move wrapListItems and processNestedLists calls inside (renamed) processListsAndLines to eliminate non-obvious coupling
- Remove newlines from processNestedLists output for more compact HTML
- Add documentation about Wikipedia API endpoints and query options
---------
Co-authored-by: Claude <noreply@anthropic.com>