3 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
ebcebd4723 Unify migration locks and plugin environments, and cover compatibility boundaries 2026-11-06 02:04:52 +08:00
Rudy Celekli
fd7ef5e4c5 fix(web_source): recognize unlisted regional locales in URL language prefix
extract_url_language_and_stem tested the normalized language string with
'first_norm in SUPPORTED_LANGUAGE_PAIRS', but that constant is a set of
frozensets, so the clause was always False. A regional variant not listed
in _CANONICAL_LANGUAGES (e.g. /fr-be/, /en_US/) was therefore not treated
as a language and bilingual pairings were missed. Test the normalized
language against a flattened set of supported languages instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 00:36:55 -05:00
XZH
0e260130be feat(web-source): add bilingual source pairing (#902)
Add bilingual page pairing and language variant alignment for web sources:
- Detect page language variants via hreflang alternate links and URL language prefix patterns.
- Record pairing relations in durable SQLite repository and KB web-source metadata.
- Expose pairing relations via GET /api/knowledge-bases/{kb_name}/web-source/{source_id}/pairings and WebSourceInfo.
- Display bilingual pairing indicator in the KB web sources section with localization across en, zh, de, fr, uk.
- Add targeted tests for pairing detection, repository persistence, and API exposure.

Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 14:58:51 -07:00