Commit Graph

17 Commits

Author SHA1 Message Date
Lamber
56cf5b4414 fix: close SQLite connections in background repositories
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.
2026-10-13 10:56:17 +08:00
Jinguang Gu
faf0096c4b fix(crawler): ignore absurd robots.txt crawl-delay values (#1787)
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).
2026-10-07 20:20:48 +08:00
Bingxi Zhao
86aea7b4c5 Merge pull request #1635 from evan188199-tech/codex/feat/bilingual-source-pairing
feat(web-source): add bilingual source pairing (#902)
2026-10-04 14:00:11 +08: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
XZH
482d62a0f6 fix(web-source): scope crawl seeds to their parent directory
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>
2026-09-28 14:45:39 -07:00
Bingxi Zhao (Frank)
a053fecf6e release: v1.6.11
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.
2026-09-24 09:59:56 +08:00
Bingxi Zhao (Frank)
46c9c885f7 Preserve failed web source scans and renew fenced sync leases after #1385 2026-09-23 10:47:52 +08:00
Bingxi Zhao (Frank)
1dff2a2424 Merge commit 'refs/pr/1385' into codex/evan-backend-prs-20260923 2026-09-23 10:28:46 +08:00
Bingxi Zhao (Frank)
c547a5a31c fix: resolve verified learning, ingestion and delivery regressions
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 #1461
Fixes #1458
Fixes #1451
Fixes #1448
Fixes #1392
Fixes #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>
2026-09-15 20:06:57 +08:00
XZH
90b99187d1 feat(web-source): add durable sync scheduling 2026-09-10 17:31:03 -07:00
Bingxi Zhao (Frank)
fc39543bc0 feat: integrate frontend backend and canonical routes 2026-09-01 22:24:29 +08:00
Bingxi Zhao (Frank)
3f3bf0b841 feat(reading): render safe versioned web snapshots 2026-08-30 16:01:40 +08:00
Bingxi Zhao (Frank)
fc0be68d6f wip: course / partner groups in progress 2026-08-29 22:29:53 +08:00
Bingxi Zhao (Frank)
bd9f6a7625 release: v1.6.0 — connected learning workspaces
Release notes: assets/releases/ver1-6-0.md

Ship source-faithful reading, Courses and Little Tutor, Ask Questions,
bounded web-source sync, and shared Books with private reader state.
2026-08-27 22:03:09 +08:00
Bingxi Zhao (Frank)
5684e6eab4 fix(knowledge): secure and reconcile web source sync 2026-08-26 02:26:58 +08:00
XZH
e12d97b58f fix(knowledge): enforce web source sync bounds 2026-08-26 02:26:58 +08:00
XZH
0d8b734a76 feat(knowledge): add web source sync 2026-08-26 02:26:58 +08:00