Commit Graph

4 Commits

Author SHA1 Message Date
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)
e8f0e77f83 refactor(visualize): migrate Book blocks to validate+repair, drop LLM review
Finishes the visualize overhaul (517c90b backend + b499ba7 frontend).

- Book figure/interactive now share the chat path: deterministic local
  validate_visualization, one targeted repair on failure (figure), and
  GenerationFailure on residual invalidity so the book engine retries
  instead of baking a broken figure/placeholder into the book.
- Delete the now-dead open-ended LLM review: pipeline.run_review and the
  review prompts (review_agent.yaml keeps only repair_system/
  repair_user_template). ReviewAgent's process() IS the repair pass now
  (BaseAgent.process is abstract, so repair was renamed, not stubbed).
- Prompts: drop the 'split into an overview plus a detail figure' wording
  that contradicted the single-<svg> policy; add a text vertical-centering
  rule (y = box center, host centers via CSS) and a visual_genre fallback
  line. en + zh kept in sync.
- svg-theme.css: dominant-baseline: central on .dt-svg-root text — the
  host guarantees vertical centering so the model never has to emit (or
  misspell) dominant-baseline itself.
- tests: replace the stale FakeReview/run_review fake with a valid-svg
  no-repair path in test_capabilities_runtime.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 00:15:58 +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