Adds a minimal fire-and-forget client (POST /v1/ingest/events, Bearer
token) and wires it into installProcessDiagnostics() so uncaught
exceptions and unhandled rejections also reach the hub, not just the
local winston logs. No-op when ERROR_REPORTING_TOKEN is unset.
Paperclip-Issue: BIT-31162
- 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
**Phase 5: Documentation Updates**
- Update .env.example with unified HTTP_* vars and deprecation notice
- Update README.md environment vars table (mark legacy vars deprecated)
- Update textual references in README to new unified configuration
**Phase 6: Deprecation Warnings**
- Add deprecationWarningFor() helper in HttpRetryConfig
- Log warnings when legacy component-specific env vars are used
- Provide migration path in warning messages
**Phase 7: Observability**
- Add toObservability() method to expose config state for metrics
- Enable debugging of which env vars took precedence
- Add 3 new unit tests for observability functionality
All 35 HttpRetryConfig tests passing, 213 total tests passing.
Paperclip-Issue: BIT-4296
Co-Authored-By: Paperclip <[email protected]>
Parse PUBLISH_HOURS in the config loader, resolve post status against
CRON_TIMEZONE and the half-open hour window, and thread the result through
REST and XML-RPC publish paths. Expose publish_hours fields on GET /health,
document env vars, and add unit tests.
Paperclip-Agent: Miguel Teixeira (urlKey miguel-teixeira; id 0f722e1a-bc3e-4381-8d98-76fa3c7aea10)
Paperclip-Issue: BIT-1940
Paperclip-Run: 04613601-88af-4aaf-8a81-770dd9ff3c91
Made-with: Cursor
Add xmlrpc-client with serializer/parser (fast-xml-parser), local stub tests,
and npm run wp:probe-xmlrpc for each configured site wp_url. Reuses WP retry
env and exports wpRetryOpts from wordpress.js. Optional OPS_CHECK_XMLRPC=1 in
ops-check.sh after wp:test. Publish path remains REST-only; probe validates
BIT-353 XML-RPC surface for hosts that disable or restrict REST.
Made-with: Cursor
When DEPLOY_REVISION/GIT_REVISION are unset, ecosystem.config.cjs runs
git rev-parse --short HEAD at pm2 start so /health deploy_revision matches
the checkout. Documented in README and .env.example.
Made-with: Cursor
X API v2 search uses axiosGetWithRetry (429, 502–504, transient network).
New env: X_HTTP_MAX_ATTEMPTS (default 3), X_RETRY_BASE_MS (default 1000ms).
Add .gitea/workflows/test.yml to run npm ci && npm test on push/PR.
Made-with: Cursor
Align with WP/OpenAI: 429 and 5xx gateway, common socket errors, timeout
message. Env SCRAPER_HTTP_MAX_ATTEMPTS and SCRAPER_RETRY_BASE_MS.
Made-with: Cursor
- 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
Add axiosGetWithRetry; use for tag search, tag create, and users/me.
WP_HTTP_MAX_ATTEMPTS and WP_RETRY_BASE_MS env vars (documented).
Guard tag search when response body is not an array.
Made-with: Cursor
fetchAllFeeds processes feeds in chunks (RSS_FETCH_CONCURRENCY, default 3).
RSS timeout and User-Agent from env; scraper shares HTTP_USER_AGENT and
SCRAPER_TIMEOUT_MS. Document in .env.example and README.
Made-with: Cursor
The domain pointed at :3200 had no listener: the app was CLI-only and
default PM2 start ran write mode (exits). Listen mode now starts a small
HTTP server on HOST:PORT (defaults 0.0.0.0:3200) with / and /health.
README and Proxmox script document pm2 "listen" and LXC verification.
Ref: BIT-353 board feedback on ainews.bitreport.pt.
Made-with: Cursor