Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/vibe-coding-platform/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'tailwindcss';
@import 'tw-animate-css';
@source "../node_modules/streamdown/dist/*.js";

:root {
--background: rgb(255, 255, 255);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ReasoningUIPart } from 'ai'
import { MarkdownRenderer } from '@/components/markdown-renderer/markdown-renderer'
import { MessageSpinner } from '../message-spinner'
import { useReasoningContext } from '../message'
import { Streamdown } from 'streamdown'

export function Reasoning({
part,
Expand Down Expand Up @@ -37,7 +37,7 @@ export function Reasoning({
<div className="px-3 py-2">
<div className="text-secondary-foreground font-mono leading-normal">
{isExpanded || !hasMoreContent ? (
<MarkdownRenderer content={text} />
<Streamdown>{text}</Streamdown>
) : (
<div className="overflow-hidden">{firstLine}</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { DataPart } from '@/ai/messages/data-parts'
import { BugIcon } from 'lucide-react'
import { ToolHeader } from '../tool-header'
import { ToolMessage } from '../tool-message'
import Markdown from 'react-markdown'
import { Streamdown } from 'streamdown'

export function ReportErrors({
message,
Expand All @@ -16,7 +16,7 @@ export function ReportErrors({
<span>Auto-detected errors</span>
</ToolHeader>
<div className="relative min-h-5">
<Markdown>{message.summary}</Markdown>
<Streamdown>{message.summary}</Streamdown>
</div>
</ToolMessage>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CheckIcon, SquareChevronRightIcon, XIcon } from 'lucide-react'
import { Spinner } from './spinner'
import { ToolHeader } from '../tool-header'
import { ToolMessage } from '../tool-message'
import Markdown from 'react-markdown'
import { Streamdown } from 'streamdown'

export function RunCommand({ message }: { message: DataPart['run-command'] }) {
return (
Expand All @@ -29,9 +29,9 @@ export function RunCommand({ message }: { message: DataPart['run-command'] }) {
<CheckIcon className="w-4 h-4" />
)}
</Spinner>
<Markdown>{`\`${message.command} ${message.args.join(
<Streamdown>{`\`${message.command} ${message.args.join(
' '
)}\``}</Markdown>
)}\``}</Streamdown>
</div>
</ToolMessage>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { TextUIPart } from 'ai'
import { MarkdownRenderer } from '@/components/markdown-renderer/markdown-renderer'
import { Streamdown } from 'streamdown'

export function Text({ part }: { part: TextUIPart }) {
return (
<div className="text-sm px-3.5 py-3 border bg-secondary/90 text-secondary-foreground border-gray-300 rounded-md font-mono">
<MarkdownRenderer content={part.text} />
<Streamdown>{part.text}</Streamdown>
</div>
)
}

This file was deleted.

4 changes: 1 addition & 3 deletions apps/vibe-coding-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@
"nuqs": "2.4.3",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-markdown": "10.1.0",
"streamdown": "^1.6.6",
"react-resizable-panels": "3.0.4",
"react-spinners": "0.17.0",
"react-syntax-highlighter": "15.6.1",
"rehype-raw": "7.0.0",
"remark-gfm": "4.0.1",
"sonner": "^2.0.6",
"strip-ansi": "7.1.0",
"swr": "2.3.4",
Expand Down
Loading