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>
Preserve transaction handling while closing cron and web-source SQLite
connections deterministically, including failures during PRAGMA setup.
Add regression coverage for polling, exceptions, and commit/rollback.
A hostile robots.txt could park every request to a host (and the shared
per-host pace lock) on one unbounded sleep; delays beyond 60s are now
treated as "no directive" and the default interval applies instead
(RFC 9309 lets crawlers cap unreasonable values).
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>
Sibling pages of a page seed now count as internal: /intro/home seeds
/intro/*, so nav-relative links on docs sites are no longer dropped.
A root URL still scopes the whole host, and a trailing-slash seed stays
scoped to its own directory.
Derived with pure URL-path rules instead of pathlib: Path("/intro/")
.parent is "/", which would silently widen a section seed to the entire
host, and WindowsPath renders "\" separators that break prefix matching.
Adds regression tests for sibling scope, root scope, cross-directory
rejection, and directory-index scope.
Co-authored-by: multica-agent <github@multica.ai>
The interface ships in French and Ukrainian alongside English and
Chinese, and /language pins a reply language for one conversation.
Immersive reading organizes collections as colored folders, adds a
fullscreen learning mode, and turns Explain / Translate / Guide me on a
selection into ordinary messages in the reading chat; "Quiz me on this
page" runs one quiz turn without changing the conversation's mode, which
retires the reading-openers endpoint and its task model. Images embedded
in DOCX, PPTX and PDF are extracted in place and reach vision models.
Office files preview as paged PDFs through LibreOffice (now in the Docker
image), falling back to the in-browser renderers without it. Web sources
re-sync on a durable schedule, linked folders sync on demand, .bib files
index, and a zotero_search tool queries Zotero. Settings gains Learning
progress and credential-free presets; admins import users from CSV;
split deployments can hand a session to a public device. Grok CLI joins
the subagents, Unifically the providers, ChatGPT exports the importers.
Gate cleanup: mypy/bandit findings in the new launcher, audio-overview,
web-source, reading-store and textbook modules; the task-model copy test
follows the retired reading_openers kind.
See assets/releases/ver1-6-11.md for the full notes, and the README
Releases row plus its eleven translations.
Bind mastery drafts before their opening turn and preserve stored session modes.
Track chat duration from submission through terminal completion. Run async reading
extensions on their event loop and allow retries after cancellable timeouts.
Allow first uploads into empty LlamaIndex knowledge bases, preserve Telegram
thread routing, parse embedding Retry-After dates, and enforce robots rules and
host pacing during documentation crawls, including redirects.
Fixes#1461Fixes#1458Fixes#1451Fixes#1448Fixes#1392Fixes#1429
Refs #1435, #1412
Reuses contributions from PRs #1462, #1452 and #1403.
Co-authored-by: sjagadee <srini.jagadeesh@gmail.com>
Co-authored-by: AoHanBei <dongaohan21@gmail.com>
Co-authored-by: Gao-Chenkai <DevChenkai@outlook.com>