17 Commits

Author SHA1 Message Date
evan188199-tech
61a2cad184 feat(visualize): add Mermaid mindmap visualizer (#1295)
Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:24:02 +08:00
Bingxi Zhao (Frank)
a46439632e fix(web): expose remaining partner and coworker action hints on touch 2026-09-27 10:21:30 +08:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00
Bingxi Zhao (Frank)
3dc372f551 release: v1.6.2 — immersive watching and extensible visualizers
Add synchronized YouTube learning, a plugin-driven visualizer catalog, and Hermes, OpenClaw, and DeepSeek agent harnesses. Refresh Reading, Knowledge, Partner status, guided updates, documentation, translations, and release notes for v1.6.2.
2026-08-31 01:13:07 +08:00
Bingxi Zhao (Frank)
7009f7a988 fix 2026-08-09 22:18:22 +08:00
Bingxi Zhao (Frank)
452de66729 release: v1.4.3 — TutorBot→Partners, single-loop Chat, real multi-user isolation
The biggest cut since v1.4.0:

- Partners: TutorBot renamed and rebuilt on the product chat agent loop —
  production IM pipeline (retry/dedup/coalescing, per-channel delivery),
  live streaming on Telegram/Discord/Feishu, new WeCom AI Bot channel
  (15 connectors), web-chat attachments, soul template library + editor.
  Automatic non-destructive migration from data/tutorbot/; HTTP API moved
  to /api/v1/partners.
- Chat: single exploring agent loop with native tool calling; Activity
  header with collapsible thinking/tool trace.
- Multi-user: per-user grants v2 (tools/MCP/exec), data/users + data/system
  layout with automatic migration, runner mounts only the user workspace.
- Visualize: inline themed SVG, structured prompts, local validate+repair
  replacing the LLM review round.
- Co-writer Mermaid diagrams + selection RAG/web; file viewer docx/xlsx
  previews; MinerU cloud parsing backend; office skills on by default;
  CLI chat renderer rewrite.
- Docs rebuilt at deeptutor.info: per-channel setup guides (en+zh),
  refreshed screenshots.
- Pre-commit clean sweep: defusedxml for SVG validation, usedforsecurity
  flags on content hashes, mypy fixes, types-croniter stub.

Release notes: assets/releases/ver1-4-3.md

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 17:17:43 +08:00
Bingxi Zhao (Frank)
46ea5cf33e fix(visualize): fullscreen overlay — portal to body + viewport-fit all types
Fullscreen was broken for every render type, two root causes stacked:

- The overlay used position:fixed but rendered inside the message bubble,
  whose ancestors (streaming animation transforms, chat scroll root) break
  fixed positioning — inset-0 resolved against the bubble and the composer
  stacked above the overlay. Render via createPortal(document.body).
- Content was fit to width only, so figures outgrew the viewport
  vertically, and items-center + overflow made the top edge unreachable.
  Now: m-auto centering (small content centers, oversized content scrolls
  from its start edge); svg (ours + mermaid) clamps max-height and
  letterboxes via the default preserveAspectRatio; Chart.js caps the
  wrapper WIDTH so its own 2:1 aspect scaling lands within the viewport
  (CSS-clamping the canvas would squish the bitmap). The chart wrapper's
  inline maxHeight moved to .dt-chart-wrap so fullscreen can override it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 01:41:24 +08:00
Bingxi Zhao (Frank)
b499ba7aaf feat(visualize): inline + themed SVG rendering, html sendPrompt bridge
- SvgRenderer: <img> data-URI -> sanitized inline DOM. Dependency-free
  sanitizeSvg strips script/foreignObject/on*/js-urls and scopes element ids +
  url()/href/aria refs so multiple inlined svgs don't collide. Multi-<svg>
  content is split into independent figures.
- svg-theme.css: themed class system (t/ts/th, box/node/arr, c-* 9-ramp)
  following light/dark via CSS vars and the app Geist font; svg sized width:100%
  by viewBox to avoid the 300x150 inline collapse.
- HtmlRenderer: iframe height auto-fit + receives the widget's sendPrompt.
- iframe-html.ts: inject the sendPrompt bridge + a ResizeObserver height report.

Frontend visualize only — the chat page.tsx composer-prefill listener is left in
the working tree alongside the unrelated chat changes there.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 22:33:16 +08:00
Bingxi Zhao (Frank)
acd0d9329d feat(capabilities): unify infra, merge Animator into Visualize, split settings UI
Capability infrastructure:
- New capabilities/_shared.emit_capability_result helper fills the
  result envelope (label, summary, payload, render hints, UsageTracker
  totals) consistently across modes.
- StatusI18n loads capability status copy from
  capabilities/prompts/{en,zh}/<name>.yaml; legacy main.yaml strings
  removed.
- New capabilities_settings router + service-config module power the
  /settings/capabilities admin page (live capability list, defaults,
  per-capability overrides).

Visualize + Animator merge:
- Visualize's AnalysisAgent now picks one of six render_types:
  svg / chartjs / mermaid / html (text pipeline) or manim_video /
  manim_image (Manim subprocess). The result envelope carries
  render_type so the frontend delegates to the right viewer.
- math_animator capability is folded behind Visualize; the standalone
  MathAnimatorConfigPanel.tsx is removed. The Animator sidebar entry
  is gone, but Manim outputs and existing records remain unaffected.

Settings UI:
- /settings page split into appearance / capabilities / embedding /
  llm / mcp / memory / search / status / tools tabs with a shared
  layout and items index.
- New /settings/tools page lists chat-mountable tools and surfaces
  availability (e.g. gh for github_query) via a new tools router.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 18:06:14 +08:00
Bingxi Zhao (Frank)
1596807242 refactor chat capability & RAG pipeline(llamaindex) 2026-05-13 21:36:07 +08:00
Bingxi Zhao (Frank)
77f29cbcc7 fix lint 2026-04-23 19:29:16 +08:00
Bingxi Zhao (Frank)
cb7deebc78 fix: readme, kb-management, book management 2026-04-21 01:20:53 +08:00
Bingxi Zhao (Frank)
72a9dc9f3a Merge branch 'guide2.0' into dev: book capability + restructure
Resolved conflicts in:
- deeptutor/agents/notebook/summarize_agent.py
  Kept the YAML-driven record_hints lookup from dev (covers chat,
  co_writer, guided_learning, default), instead of the inline
  dict from guide2.0 which only had chat + co_writer.
- deeptutor/capabilities/visualize.py
  Kept dev's load_answer_now_prompts(...) path so the answer-now
  fast path stays prompt-externalised under
  deeptutor/agents/visualize/prompts/{en,zh}/answer_now.yaml.
- deeptutor/services/prompt/manager.py
  Merged the MODULES list: dropped 'guide' (deleted by guide2.0),
  added 'book' from guide2.0, and kept dev's 'notebook',
  'visualize', 'chat' modules.

Made-with: Cursor
2026-04-20 17:36:43 +08:00
Bingxi Zhao (Frank)
5f29b508e0 refactor(prompts): externalize answer_now/notebook prompts to YAML and tidy capability/UI configs
- Move inline LLM prompts out of capabilities/agents into versioned
  prompt YAMLs under each agent's prompts/{en,zh}/:
  - notebook: analysis_agent, summarize_agent
  - question/research/solve/visualize: answer_now
- Slim down capability modules (_answer_now, deep_question,
  deep_research, deep_solve, visualize) to load prompts via the
  prompt manager instead of hard-coding strings
- Update services/prompt/manager.py to support the new prompt paths
- Refresh web config panels (quiz, research, visualize, math-animator)
  and shared types to align with the new capability options
- Update Mermaid, ChatMessages, TracePanels and settings page,
  plus en/zh locales for the new copy

Made-with: Cursor
2026-04-20 17:34:33 +08:00
Bingxi Zhao (Frank)
2745e8bde9 feat(book): introduce book capability and restructure guide/co_writer modules
- Add new `deeptutor/book/` module with multi-agent pipeline
  (ideation, spine, page planner, source explorer, synthesizer)
  and rich block system (text, code, figure, quiz, flash cards,
  callout, deep dive, timeline, animation, concept graph, etc.)
- Add `/api/routers/book.py` and `deeptutor_cli/book.py` entry points
- Add web UI under `web/app/(workspace)/book/` with sidebar,
  chat panel, page reader, spine editor, progress timeline, and
  block renderers
- Move `deeptutor/agents/co_writer` -> `deeptutor/co_writer` and
  `deeptutor/agents/guide` -> `deeptutor/guide` (then remove guide
  entirely now superseded by book)
- Remove legacy guide UI, hooks, types, and API router
- Update visualize agents/prompts, notebook service, prompt manager,
  session turn runtime, and shared services to support new flows
- Refresh chat composer, sidebar, notebook selector, and locales

Made-with: Cursor
2026-04-20 00:33:33 +08:00
Bingxi Zhao (Frank)
8659d996f5 v1.0.3
Question Notebook with bookmarks & categories, Mermaid diagram support
in Visualize, embedding mismatch detection refinement, system message
merging for Qwen/vLLM, LM Studio & llama.cpp providers, Glass theme,
reporting agent retry resilience, and docs migration.

Made-with: Cursor
2026-04-13 03:18:26 +08:00
Bingxi Zhao (Frank)
df844b8216 feat: add visualize capability with Chart.js/SVG rendering pipeline
- Add visualize agent pipeline (analysis → code generation → review)
- Add VisualizeCapability with request config and registry wiring
- Add frontend VisualizeConfigPanel, VisualizationViewer components
- Add chart.js and react-chartjs-2 dependencies
- Improve math_animator YON_IMAGE anchor block prompts (en/zh)
- Add minimax model override (supports_response_format: false)
- Suppress noisy uvicorn WebSocket connection logs
- Add selective HTTP access logging middleware (non-200 only)

Made-with: Cursor
2026-04-10 20:09:36 +08:00