9 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
Bingxi Zhao (Frank)
2cc3c4ae27 Merge #2317 from rudycelekli 2026-11-06 01:56:40 +08:00
Bortlesboat
f8540eb5c7 fix(cli): print session and notebook JSON without Rich markup or wrapping
`session show --format json`, `notebook show --format json` and
`notebook create` passed json.dumps() output to console.print(), which
treats a plain string as Rich text: long lines were wrapped inside JSON
strings (invalid JSON), [bracketed] text was dropped, a stray closing
tag such as [/INST] raised MarkupError, and :name: codes became emoji.

Use console.print_json() as the kb, config and doctor commands already
do, and turn off emoji codes in the `run --format json` NDJSON stream,
which already disabled markup and wrapping.
2026-11-05 00:37:16 -05:00
Rudy Celekli
bbdf745f42 fix(cli): decode non-UTF-8 markdown in notebook add-md/replace-md
`notebook add-md` and `replace-md` read the file with read_text(encoding="utf-8"),
so a markdown file in another encoding (e.g. a Windows-authored cp1252/latin-1
file) aborted the command with an uncaught UnicodeDecodeError traceback instead
of the clean CLI errors these commands raise for other problems.

Read the bytes and decode through FileTypeRouter.decode_bytes, the shared
fallback-encoding chain the rest of the app already uses for text input (as in
`deeptutor notebook`'s sibling `kb` command).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 09:34:39 -05:00
Bingxi Zhao (Frank)
7c6bcfaef7 release: v1.5.14
Immersive Reading, self-configuration, and a two-way IMA library.

- Immersive Reading: a new capability that opens a document beside the
  thread. New reading engine (PDF pages / slides / page-sized sections),
  five reading tools, a deterministic locate pre-pass that grounds the
  turn without a second LLM call, /api/v1/reading, and a reader pane with
  selection, highlights, notes, and export to an annotated PDF or Markdown.
- Setup capability: inspect the install, apply a setting, install a
  parsing engine, or request a credential from a chat turn. New settings
  spec table; a candidate value is probed before it is committed, and API
  keys never enter the model's context.
- Tencent IMA: pipeline split into transport/envelope/models/sources/
  notes/media/inventory, an additive capability with five tools, and
  connected libraries that can finally be enumerated (bounded listings
  are reported as a lower bound).
- Retrieval: supports_rag_retrieval() replaces is_connected_kb() for the
  "can I sweep this?" question, so linked / lightrag_server / ima sources
  stop being silently dropped from every book.
- Notebooks: their own console at /notebook, per-notebook locks and atomic
  writes, copy / move / export routes, damaged files surfaced instead of
  dropped, and renaming a record no longer clears its knowledge-base link.
- Settings persistence: one lock and one atomic replace shared by every
  writer of interface.json; the PUT endpoints stop writing the
  defaults-merged view back to disk.

Release notes: assets/releases/ver1-5-14.md
2026-08-19 17:34:52 +08:00
Bingxi Zhao (Frank)
824bf778df fix: lint & logging system 2026-05-01 01:39:08 +08:00
Albert Zheng
ecb1a9349a feat(cli): add add-md and replace-md commands to notebook group
deeptutor notebook add-md <notebook_id> <file> [--title T] [--type TYPE]
  Read a markdown file and add it as a record to a notebook.

deeptutor notebook replace-md <notebook_id> <record_id> <file>
  Replace an existing record's output with content from a markdown file.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-24 20:23:53 +08:00
Bingxi Zhao (Frank)
593ddba3fb feat(co-writer): add multi-doc co-writer workspace with backend storage
- Add co-writer storage module and API router for document persistence
- Restructure co-writer page to per-doc routing ([docId]) with sidebar recent list
- Wire CoWriterRecent into sidebar shell and AppShellContext
- Tidy notebook prompts, facade, path service, and builtin tools wiring
- Refresh tests (add missing __init__.py, drop obsolete app_facade test)
- Add favicon/apple-touch-icon assets and minor i18n cleanup

Made-with: Cursor
2026-04-20 19:46:41 +08:00
Bingxi Zhao (Frank)
9c18bf0705 codebase cleanup and decoupled, introduce cli operation 2026-03-13 20:42:16 +08:00