Add Handball Planet and IHF feeds so the topic filter finds real
handball content instead of falling back to NBA/football. Also add
handball keywords and trusted domains.
Fixes off-topic content published to andebol.net (BIT-25828).
Co-Authored-By: Paperclip <[email protected]>
- Exclude *.example.json files from loadSiteConfigs (previously only
example.json was excluded, so andebol.net.example.json was loaded as
a live config with placeholder credentials)
- Correct wp_url from https://andebol.net/wp-json to https://andebol.net
(publisher appends /wp-json/wp/v2 itself; the old value caused a doubled
path and 404 on every REST call)
- Add credential injection in loadSiteConfigs: when user/password are
absent from the JSON, merge from ANDEBOL_NET_WP_USER/WP_PASSWORD env
vars (or generic WP_USER/WP_PASSWORD fallback)
With these fixes wp:test now reaches the correct endpoint and returns 401
instead of 404. Remaining blocker: WP_USER in .env is still a placeholder.
Paperclip-Task-Id: BIT-25761
Non-sensitive config (no credentials) with correct WP category IDs
for the backfill tool. Credentials are sourced from the LXC vault env.
Paperclip-Task-Id: BIT-25575
Real WordPress category IDs on andebol.net are 8-13, not placeholder 1-6.
Using wrong IDs caused backfill to silently assign non-existent categories.
Paperclip-Task-Id: BIT-25575
Drop hallucinated athlete/team tags and derive Yoast fields only from
published article content. Adds backfill tool for live andebol.net posts.
Co-authored-by: Cursor <[email protected]>
Add category-infer.js with rule-based slug detection for andebol.net
(selecao, clubes, competicoes, internacional, resultados, nacional).
Add wp-categories.js to resolve WP category IDs via API or category_map.
Wire resolvePostCategoryIds into both REST and XML-RPC publish paths.
Add tools/backfill-wp-categories.js for one-shot backfill of uncategorized posts.
Add config/sites/andebol.net.example.json as reference site config template.
Persist article tags and category in persist-generated-article.js.
Paperclip-Issue: BIT-25575
Paperclip-Agent: Tiago Neves (id 5d084b36-f38f-42a5-a92a-520005afda4f)
- Add config/sources.example.json for new installs; document in ops README
- Extend .env.example with WP_CATEGORY, QUEUE_MAX_DEPTH, and optional analytics/pipeline/writing-style vars
- Fix secrets.js merge-order comment to match implementation
- Validate sources.domain_filter_mode (strict|warn|log) at startup
- Fix status-server test cleanup var HTTP_BODY_READ_TIMEOUT_MS
- Replace nonexistent OPENAI_TIMEOUT_MS hint in incident runbook
Paperclip-Agent: David Santos (id 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376)
Paperclip-Issue: BIT-4294
Paperclip-Run: bc46f5b4-65d4-462a-8b56-e991c4aca0c1
Add config/writing-style.json (UI /ui/writing-style), resolveWritingParams,
and wire generateArticle for write and listen modes. Document optional
site JSON keys in config/sites/example.json.
Paperclip-Issue: BIT-3599
Paperclip-Run: 8e0126ab-909d-4548-b1ca-fbf1d660134c
- Update example config/sources.json with domain_filter_mode: strict
- Demonstrates the trusted domain whitelist enforcement feature
- Ready for production use with domain filtering
Phase 5/5 complete: Feature implementation finished and tested.
Co-Authored-By: Paperclip <[email protected]>
- Append generated article metadata to data/article-index.jsonl for listing
- HTML UI: /ui, /ui/sources, /ui/social, /ui/publishers, /ui/theme
- Saves require ADMIN_TOKEN; optional Bearer for future API use
- GET /api/ui/articles JSON; config/ui-theme.example.json for accents
- README and .env.example document access control expectations
Made-with: Cursor
Reuters (deprecated host), A Bola 404, and malformed UEFA XML broke
rss:test and reduced crawler yield. Use Guardian + RTP Notícias feeds
verified with rss-parser; refresh trusted_domains.
Made-with: Cursor