Feat: Add on-wiki attestation helpers for creation verification (T433369 phase 2)

The create-essential-article verifier (later phase) needs to prove a caller CREATED a page, not merely edited it, using only public/OAuth-free reads. Add the missing MediaWiki helpers, following the existing formatversion:2 + USER_AGENT axios pattern:

  • getPageCreator(wikiUrl, title): the page's oldest revision (rvdir=newer, rvlimit=1) → {revId, timestamp, user, namespace, isRedirect} | null. The creating-revision author, which no existing helper returned.
  • resolveLanglinkTarget(sourceTitle, wikiCode): English source → target-wiki title via langlink (null for dev/test). checkIfArticleExistsByLanglink is now a thin !!(await resolveLanglinkTarget(...)) wrapper, so its callers are unchanged.
  • articleExistsOnWiki(wikiUrl, title): boolean existence (fv2 pages[0].missing) for the target-title-must-be-missing validation and exists-in-the-meanwhile.
  • getUserNewPages(wikiUrl, username, {start,end,namespace}): usercontribs ucshow=new, for the backfill fallback.
  • getCtTranslationStatus now delegates to a new underlying method that also returns the CX targetTitle; the public getCtTranslationStatus keeps returning the status string, so its existing caller is unaffected.

Pure additions/refactor; no behavior change to existing callers.

Co-Authored-By: Claude Opus 4.8

Bug: T433369

Edited by Nik Gkountas

Merge request reports

Loading