Skip to content

refactor(mime.view.markdown): own the Markdown renderer#1

Merged
mkotelnikov merged 1 commit into
mainfrom
refactor/markdown-to-mime-view
Jul 14, 2026
Merged

refactor(mime.view.markdown): own the Markdown renderer#1
mkotelnikov merged 1 commit into
mainfrom
refactor/markdown-to-mime-view

Conversation

@mkotelnikov

Copy link
Copy Markdown
Contributor

What

Relocate the Markdown renderer and its CodeBlock dependency out of the @repo/chat-mini.chat-react fragment (in statewalker-apps) into @statewalker/mime.view.markdown — the markdown viewer's proper home — and export them from its public barrel.

mime.view.markdown and wiki.view.react now import Markdown from @statewalker/mime.view.markdown instead of @repo/chat-mini.chat-react.

Why

Removes a reverse dependency where workbench (a lower layer) imported from a chat-app fragment (an upper layer) — a layering inversion and a cross-repo cycle. This unblocks extracting the chat-mini fragments into a standalone public apps repo as a clean leaf.

Verification

  • pnpm i relinks; no @repo/chat-mini reference remains anywhere in workbench.
  • Touched files typecheck clean (only pre-existing baseline errors remain).

Paired with @repo/chat-mini.chat-react consuming the relocated renderer (statewalker-apps PR).

🤖 Generated with Claude Code

Relocate the Markdown renderer and its CodeBlock dependency out of the
chat-mini.chat-react fragment into mime.view.markdown (the markdown viewer's
proper home) and export them from its public barrel. wiki.view.react and
mime.view.markdown now import Markdown from @statewalker/mime.view.markdown
instead of @repo/chat-mini.chat-react, removing the workbench->apps reverse
dependency so the chat-mini fragments become a cleanly extractable leaf.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mkotelnikov
mkotelnikov merged commit 28d4d25 into main Jul 14, 2026
1 check failed
@mkotelnikov
mkotelnikov deleted the refactor/markdown-to-mime-view branch July 14, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant