1422 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
857a82e74a feat(notes): add block notebooks with inline reviews and linked favorites
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions.

Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo.

Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
2026-10-17 23:15:23 +08:00
Bingxi Zhao (Frank)
d70ab8609a Merge branch 'dev' into dt-exp-idp 2026-10-16 17:25:36 +08:00
Bingxi Zhao
a63851df5b Merge pull request #1942 from lorenzozanee/fix/epub-folder-drag-zip
fix(reading): accept browser-zipped EPUB folder uploads
2026-10-15 03:25:10 +08:00
Bingxi Zhao
0e784d5080 Merge pull request #1910 from YizukiAme/codex/fix-1909-image-compaction
fix(session): budget projected image replay before compaction
2026-10-15 03:23:49 +08:00
Bingxi Zhao
8d1f21b7f6 Merge pull request #1924 from Fancie-Personal/fix/agent-loop-preserve-multimodal-instruction
fix(agent-loop): keep content parts when appending a loop directive
2026-10-15 03:23:33 +08:00
Bingxi Zhao
63621137a4 Merge pull request #1911 from Owaid0723666/feat/add-onomeo-provider
feat(providers): add onomeo as an OpenAI-compatible gateway
2026-10-15 03:23:16 +08:00
Bingxi Zhao
a4d46ca76f Merge pull request #1950 from Lamber-maybe/fix/close-background-sqlite-connections
fix: close cron and web-source SQLite connections
2026-10-15 03:22:59 +08:00
Bingxi Zhao
5ed0f63705 Merge pull request #1931 from evan188199-tech/fix/rag-selector-contract-1928
fix(rag): align tool selector contract with execution (#1928)
2026-10-15 03:17:47 +08:00
Bingxi Zhao
9e0168430f Merge pull request #1948 from yepyhun/contrib/nullable-required-arguments
fix(agentic): accept explicitly supplied schema-valid null arguments
2026-10-15 03:17:28 +08:00
Bingxi Zhao
100b837886 Merge pull request #1805 from lorenzozanee/fix/qualitative-repair-persistence
test(learning): cover persisted qualitative repair turns
2026-10-15 03:16:09 +08:00
Bingxi Zhao
20e7ce76bc Merge pull request #1921 from cxn07/fix/reading-viewport-time-seconds
fix(reading): accept video playback time in the reading viewport
2026-10-15 03:12:02 +08:00
Bingxi Zhao
fd3124d11a Merge pull request #1959 from WLH55/fix/gemini-native-tts
fix(voice): add native Gemini TTS adapter for generateContent speech
2026-10-15 03:10:30 +08:00
Bingxi Zhao
abb34c3894 Merge pull request #1932 from evan188199-tech/fix/mastery-outline-atomic-revision-1929
fix(mastery): revise multiple outline modules atomically (#1929)
2026-10-15 03:03:27 +08:00
Bingxi Zhao
1dc71990f9 Merge pull request #1803 from georgelichen/fix/workspace-kb-file-delete-not-found
fix(knowledge): resolve workspace-scoped knowledge base files during deletion
2026-10-15 03:02:58 +08:00
Bingxi Zhao
20a0af660b Merge branch 'dev' into fix/qualitative-repair-persistence 2026-10-15 02:05:01 +08:00
Bingxi Zhao
cbee8e0b0d Merge branch 'dev' into fix/mastery-outline-atomic-revision-1929 2026-10-15 02:04:46 +08:00
Bingxi Zhao
d348b42336 Merge branch 'dev' into codex/fix-1909-image-compaction 2026-10-15 02:04:18 +08:00
Bingxi Zhao
8b2e62accd Merge branch 'dev' into fix/agent-loop-preserve-multimodal-instruction 2026-10-15 02:04:12 +08:00
Bingxi Zhao
cedd060ac1 Merge branch 'dev' into feat/add-onomeo-provider 2026-10-15 02:03:57 +08:00
Bingxi Zhao
8bc0b762c9 Merge branch 'dev' into fix/rag-selector-contract-1928 2026-10-15 02:03:52 +08:00
Bingxi Zhao
b9397ae6e8 Merge branch 'dev' into fix/workspace-kb-file-delete-not-found 2026-10-15 02:03:46 +08:00
Bingxi Zhao
be0bd5d2e1 Merge branch 'dev' into fix/reading-viewport-time-seconds 2026-10-15 02:03:40 +08:00
Bingxi Zhao
ac80264d7f Merge branch 'dev' into fix/indexing-journal-read-retry 2026-10-15 02:03:26 +08:00
Bingxi Zhao
3993c1998c Merge branch 'dev' into contrib/nullable-required-arguments 2026-10-15 02:03:20 +08:00
你的名字
1cf108e07b fix(voice): add native Gemini TTS adapter for generateContent speech
Gemini connections offered under Settings > Voice fell back to the
OpenAI-compatible 'custom' binding because TTS_PROVIDERS had no gemini
entry, so synthesis failed with 'No endpoint URL configured for TTS.'
and previews returned 502. Gemini TTS only speaks the native
generateContent API, so register a gemini provider spec plus a
GeminiTTSAdapter that posts responseModalities AUDIO with a prebuilt
voice, decodes each returned PCM16 24 kHz inlineData part, and wraps
the audio in WAV. Issue #1951.
2026-10-13 21:55:28 +08:00
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
yepyhun
e648442a87 fix(agentic): accept explicitly supplied schema-valid nulls 2026-10-13 00:34:55 +02:00
lorenzozanee
981bd0e17f fix(reading): accept browser-zipped EPUB folder uploads 2026-10-13 02:40:11 +08:00
Bingxi Zhao (Frank)
90c070d77b feat: integrate Dito navigation with existing learning and partner workflows 2026-10-12 19:58:02 +08:00
Bingxi Zhao (Frank)
3cbecb2479 feat(workspaces): add scoped instructions and refine learning UI 2026-10-12 19:29:47 +08:00
XZH
cf37be0f5e fix(mastery): apply coordinated multi-module revisions atomically (#1929)
mastery_revise accepted one module per call, so a coordinated outline
adjustment across several modules cost one call, one transaction and one
full-outline snapshot echo per module. Add a modules=[{module_id,
rewrite, add, remove}, ...] form that validates every entry against a
shared id space, refuses the whole request on any rejection (unknown
ids, mastered waypoints, cross-module cycles), and commits all modules
in a single revision with one result payload. The single-module form
keeps its exact contract and payload shape.
2026-10-11 16:38:54 -07:00
XZH
43ad667a35 fix(rag): align tool selector contract with execution (#1928)
Optional selectors are now advertised as nullable, page is one-based with
minimum 1, and region is four coordinates bounded to 0..1 with omitted/null
meaning the full page. At the tool boundary a legacy empty region counts as
omission instead of switching to visual routing, and malformed page/region
selectors fail visibly with a correctable message instead of being clamped
or rerouted to replacement evidence.
2026-10-11 14:09:11 -07:00
Fancie-Personal
4826ae980a fix(agent-loop): keep content parts when appending a loop directive
`_append_loop_instruction` appended a recovery directive by rebuilding the
trailing user message as a string. A user message can carry content parts —
chat PDF attachments add image blocks beside the text — and `str()` on that
list folds every `data:...;base64,` URL into prompt text, so the next round
sends image bytes to the provider as language tokens instead of images.

A scanned 7-page PDF (whole-page JPEGs harvested as embedded figures) turned
into a ~5.9 MB prompt string: the image-aware context counter reported
4,014,309 tokens for the round against a 1M window, the provider answered
400 InvalidParameter, and the turn ended on the empty-response fallback.

The directive now extends the message's own text part, or appends a text part
when the message holds only images. Image parts, their order and the durable
model turn are unchanged; only the text grows.

Reached whenever a round ends with nothing to replay: an empty finish, or one
whose stream carried no text, reasoning or tool call.
2026-10-11 20:12:57 +08:00
jiangbianshu
07cf021d34 fix(reading): accept video playback time in the reading viewport
Since Watching converged into Reading (#1378), the reader reports
`reading_viewport.time_seconds` with every turn on a video material, but
`ReadingViewport` forbids extra fields and only declared `locator` and
`selection`. The WebSocket rejected each such turn with `invalid_command`,
so every question asked beside a YouTube/Bilibili video stayed "Not sent".

- Declare `time_seconds` (optional, >= 0) on `ReadingViewport`.
- Keep it in `_reading_viewport` (finite, non-negative, capped at 24h) so
  the reading capability's existing "Current media time" grounding
  actually receives it instead of silently dropping it.
- Regenerate the frontend contracts.
- Cover protocol acceptance and normalisation in tests/reading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 18:43:20 +08:00
Mohammad Hijjawi
b273dc584a fix: retry transient locks and decode UTF-8 when reading the indexing journal
load_run() read .indexing-run.json and .indexing-cancel.json with a bare
Path.read_text(), so a brief Windows sharing lock (antivirus, indexer, a
concurrent reader) failed the safety check at once with "Indexing journal
is unreadable", and the locale default encoding garbled or rejected the
UTF-8 that atomic_write_json writes (a document named "ÁLGEBRA.pdf" makes
every check fail under cp1252).

Add file_io.read_text(), which reads UTF-8 and shares the bounded
PermissionError backoff already used by _atomic_replace(). Missing files,
corrupt JSON and locks that outlast the backoff keep their existing
behaviour.

Closes #1912
2026-10-11 01:23:40 +01:00
Owaid0723666
bfdfb18e48 feat(providers): add onomeo as an OpenAI-compatible gateway
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 15:54:36 +09:00
YizukiAme
e747f28705 fix(session): budget projected image replay before compaction 2026-10-10 00:33:40 +08:00
李晨
7948cd0f2e fix(knowledge): resolve workspace-scoped knowledge base files during deletion 2026-10-08 21:18:06 +08:00
Bingxi Zhao (Frank)
6cf793bd86 release: v1.6.14
Ship original-source visual practice, recoverable indexing, unified video
Reading, scientific research tools, managed plugins, and a learning journal
as summarized in assets/releases/ver1-6-14.md.

Improve provider setup and protocol-aware endpoints. Restore missing
localized setup and Ukrainian UI text, keep plugin loading in the plugin
layer, harden research XML parsing, and repair isolated test fixtures and
type-checking errors found by the release gate.

Sync README prose and all eleven translations, bump the package version,
and update the stable release announcement.

Validation: 10180 Python tests and 8 subtests passed (28 skipped); 1303
Node tests passed on Node 22; 24 provider UI tests passed. All pre-commit
hooks, ruff, translation checks, documentation checks, and docs build passed.
2026-10-08 11:34:42 +08:00
Bingxi Zhao (Frank)
1e7eef0e9a feat(research): add grounded scientific primitives and scoped private MCP origins (#1629) 2026-10-08 10:05:38 +08:00
Bingxi Zhao (Frank)
7885daa98a feat(plugins): add reviewed managed lifecycle and revocable runtime gates (#1307)
Adapt the Phase 1 foundation from PR #1309 and complete scoped API lifecycle, pre-import approval, artifact-bound revocation, recovery, bounded workers and frontend isolation. Keep the stronger ecosystem roadmap explicit in the RFC.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-08 08:50:05 +08:00
Bingxi Zhao (Frank)
e79e1b0ad2 fix(knowledge): make long-document indexing recoverable and publication verified (#1612) 2026-10-08 08:10:40 +08:00
lorenzozanee
6dd1cb4dcb test(learning): cover persisted qualitative repair turns 2026-10-08 05:33:21 +08:00
Bingxi Zhao (Frank)
2350ea2dba feat(mastery): complete source-grounded visual practice and evidence (#1611)
Bind original visual sources and keys to supported tasks; verify accepted model pixels, preserve cues/assistance and canonical attempts, keep uncertainty ungraded, expose challenge/repair, and separate required visual evidence from generic text mastery.
2026-10-08 05:25:05 +08:00
Bingxi Zhao (Frank)
de64a9aa0f feat(rag): complete exact source visual and PDF page grounding (#1610)
Expose inspectable extraction coverage, retain structured provenance, resolve bilingual figure and table references without similarity substitution, and provide bounded local page/region fallback with source identity checks.
2026-10-08 03:44:56 +08:00
Bingxi Zhao (Frank)
64bc0d8e7c feat(learning): expose a durable workspace journal overview (#1407)
Adapt the journal foundation from PR #1226 and add a read-only mission, handoff and confirmed-record panel. Share its snapshot with turn injection, preserve corrupt files, and serialize worker writes.

Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
2026-10-08 03:11:15 +08:00
Bingxi Zhao (Frank)
8986c31580 feat(reading): complete Watching convergence with safe legacy migration (#1378)
Adapted the migration foundation from PR #1384 while preserving current workspace, caption and turn-admission safeguards.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-08 02:48:50 +08:00
Bingxi Zhao (Frank)
d15e35a378 fix(turns): make lost-ack resends reuse the original conversation (#1793) 2026-10-08 01:20:23 +08:00
Bingxi Zhao (Frank)
bac2c39875 fix(ima): distinguish retrieval failures and expose incomplete source evidence (#1500) 2026-10-08 00:27:29 +08:00