4 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
31bf66b5e1 release: v1.5.15
Self-hostable PageIndex, a fileable question bank, and third-party plugins.

- PageIndex: adds PageIndex OSS as its own knowledge-base type, bound to
  the base's local library and driven by the configured LLM rather than a
  PageIndex API key. Retrieval moves off the built-in MCP server (removed)
  onto a workflow-owned reading loop that walks the document tree.
- Question bank: addEntryToCategory shipped in v1.3.6 and was never called
  from the frontend, so categories could be created but never filled. The
  quiz card now uses the shared CategoryMenu, the page is rebuilt around
  search / batch selection / an unfiled inbox, and a new question_bank tool
  lets the tutor file questions instead of misrouting them to write_note.
- Plugins: deeptutor.plugins was imported behind a try/except but the
  module never existed — implemented, plus a deeptutor.loop_capabilities
  group so third-party packages can register chat-loop capabilities.
  Builtins win on name collisions; broken entry points are skipped.
- Parsing: remote Apache Tika engine (TIKA_SERVER_URL), with no local
  package and no model download.
- LightRAG: the three indexing knobs from #877 get inputs under their own
  Indexing divider; unsupported keywords are dropped with a warning.
- Knowledge bases: uploads take a destination folder, same-named documents
  from different subtrees stop dropping one another, and linked folders
  keep their source-relative structure — closing #866.
- Book: a learning-capture inbox with an explicit status lifecycle, and
  drift warnings scoped to the KB documents that actually changed.
- Whisper: /whisper moves out of the primary nav into Learning Space →
  More Projects, credited to its contributor; the room needs its own
  capability package. The reusable half is CAPABILITY_COMPLETE forwarding
  of a capability-declared body and its declared extras.
- README: a Collaborate badge beside the Docs badge, in all twelve
  languages.
- Lint: nosec B608 on four false-positive question-bank queries (literal
  fragments only, every value bound), and three mypy fixes.

Release notes: assets/releases/ver1-5-15.md
2026-08-20 14:15:53 +08:00
Bingxi Zhao (Frank)
1f4de01e70 fix(whisper): make the page's copy translatable
The /whisper surface shipped with 23 hardcoded strings — 22 English plus one
literal 结束 on the End-session button — so it rendered the same words whatever
language the user had chosen. A Chinese user got an English page with one
Chinese button; an English user got "结束". None of the four files even imported
useTranslation.

Route all of it through t() and add both locales. Two details worth naming:

* The session-id label reuses no generic key. `session` already exists as the
  Chinese counter suffix ("3 个会话"), so a bare t("session") would have rendered
  "个会话 abc12345…". It is now an interpolated "Session {{id}}".
* "Whisper" was already translated as 密语 for the sidebar, so the new strings
  use that term rather than introducing 耳语 beside it.

The Chinese literals left in page.tsx are protocol, not copy: it sends 结束 as
psych-academy's is_end_command and matches the room-ended text the capability
streams back. The new test says so, and checks the rest — every t() key present
in both locales, the zh side not echoing English, no CJK copy in the components.
2026-08-20 01:46:19 +08:00
Bingxi Zhao (Frank)
a428264c44 fix(web): clear the two React rule violations the whisper page landed with
eslint is not one of CI's gates, so #921 merged with three errors in it. Two
were real:

* ``useMarkdown`` is a pure predicate, but the ``use`` prefix made it read as a
  hook and calling it inside the message map tripped
  react-hooks/rules-of-hooks. Renamed to ``rendersMarkdown``.
* The connect effect called ``setConnected(false)`` synchronously. It runs once
  on mount, ``connected`` already starts false, and the client's own onClose
  clears it — so the call did nothing but cascade a render.

`npx eslint .` is now clean of errors (79 pre-existing i18n literal warnings
remain).
2026-08-20 00:45:49 +08:00
alanguan73
e82cdc5641 feat: /whisper dual-seat page and capability-complete forwarding (#921)
Adds a /whisper workspace page (seat switch, room_id from the stream, trainee-only whisper/debrief) over the existing unified-ws with capability + config.room_id, and lets a capability publish a body and declared extras on CAPABILITY_COMPLETE via context.metadata['agent_output'] / ['event_metadata'] — capability, session_id and turn_id stay unspoofable.
2026-08-20 00:29:48 +08:00