mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
The write/edit tools already declare card:'diff' with applied hunks on callView/resultView, but the Web client discarded it: a mutation landed on GenericToolCard and the details panel flattened the result to a <pre>. Add DiffBlock (ui-primitives), diff-card-model (the single callView/resultView derivation), and FileMutationRow (keyed under write and edit), and make the generic fallback row and the details panel diff-aware. The +/- block form, per-file path header, same-file gap, and footer mirror the TUI diff card; the chat row caps at CHAT_DIFF_MAX_LINES against the panel's full height.
34 lines
1.6 KiB
TypeScript
34 lines
1.6 KiB
TypeScript
/**
|
|
* Cordis-free React primitives styled only through `--dsw-*` tokens.
|
|
*/
|
|
|
|
export { StateDot } from './StateDot.tsx'
|
|
export type { StateDotState } from './StateDot.tsx'
|
|
export { Button } from './Button.tsx'
|
|
export type { ButtonVariant } from './Button.tsx'
|
|
export { Pill } from './Pill.tsx'
|
|
export { Input } from './Input.tsx'
|
|
export { Menu } from './Menu.tsx'
|
|
export type { MenuEntry, MenuItem, MenuSeparator, MenuLabel } from './Menu.tsx'
|
|
export { useAnchoredMaxHeight } from './useAnchoredMaxHeight.ts'
|
|
export { HoverCard } from './HoverCard.tsx'
|
|
export { Modal } from './Modal.tsx'
|
|
export { ConnectionBanner } from './ConnectionBanner.tsx'
|
|
export { FishLogo } from './FishLogo.tsx'
|
|
export { BrandWordmark } from './BrandWordmark.tsx'
|
|
export { Tooltip } from './Tooltip.tsx'
|
|
export type { TooltipSide } from './Tooltip.tsx'
|
|
export { JsonTree } from './JsonTree.tsx'
|
|
export type { JsonTreeProps } from './JsonTree.tsx'
|
|
export { TerminalBlock, DEFAULT_TERMINAL_MAX_LINES } from './TerminalBlock.tsx'
|
|
export type { TerminalBlockProps } from './TerminalBlock.tsx'
|
|
export { DiffBlock, DEFAULT_DIFF_MAX_LINES } from './DiffBlock.tsx'
|
|
export type { DiffBlockProps, DiffHunk } from './DiffBlock.tsx'
|
|
export { CodeBlock } from './markdown/CodeBlock.tsx'
|
|
export { JsonBlock } from './markdown/JsonBlock.tsx'
|
|
export { MarkdownText } from './markdown/MarkdownText.tsx'
|
|
export { MessageText } from './markdown/MessageText.tsx'
|
|
export { extractMarkdownPlainText } from './markdown/plain-text.ts'
|
|
export type { MarkdownPlainTextMode, MarkdownPlainTextOptions } from './markdown/plain-text.ts'
|
|
export * from './icons/index.tsx'
|