{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "diff-svelte",
  "title": "Diff (Svelte)",
  "description": "One file's changes or a run's, with Keep and Undo for each file and change, and Keep all and Undo all.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/svelte@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/svelte/diff/Counts.svelte",
      "content": "<!-- \"+4 −2\", read as \"4 additions, 2 deletions\". -->\n<script lang=\"ts\">\n  let { added, removed, name }: { added: string; removed: string; name: string } = $props();\n</script>\n\n<span aria-hidden=\"true\"\n  >{#if added}<span data-diff-added=\"\">{added}</span>{/if}{#if added && removed}{\" \"}{/if}{#if removed}<span\n      data-diff-removed=\"\">{removed}</span\n    >{/if}</span\n><span data-diff-hidden=\"\">{name}</span>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/Counts.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/Diff.svelte",
      "content": "<!--\n  One file's changes, or a run's: a summary with Keep all and Undo all, then each file's row with its own Keep and\n  Undo, opening to its lines. Any `children` replace the default parts.\n-->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import DiffKeepAll from \"./DiffKeepAll.svelte\";\n  import DiffList from \"./DiffList.svelte\";\n  import DiffSummaryCounts from \"./DiffSummaryCounts.svelte\";\n  import DiffSummaryError from \"./DiffSummaryError.svelte\";\n  import DiffSummaryOutcome from \"./DiffSummaryOutcome.svelte\";\n  import DiffSummaryProgress from \"./DiffSummaryProgress.svelte\";\n  import DiffSummaryTitle from \"./DiffSummaryTitle.svelte\";\n  import DiffUndoAll from \"./DiffUndoAll.svelte\";\n  import DiffUndoAllCancel from \"./DiffUndoAllCancel.svelte\";\n  import DiffUndoAllConfirm from \"./DiffUndoAllConfirm.svelte\";\n  import DiffUndoAllQuestion from \"./DiffUndoAllQuestion.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, open = $bindable(), ...props }: ComponentProps<typeof parts.Root> = $props();\n</script>\n\n{#snippet fallback()}<parts.Summary\n    ><div data-diff-heading=\"\"\n      ><DiffSummaryTitle /><DiffSummaryCounts /><DiffSummaryProgress /><DiffSummaryOutcome /></div\n    ><parts.SummaryMark /><parts.SummaryActions\n      ><DiffUndoAllQuestion /><DiffUndoAll /><DiffKeepAll /><DiffUndoAllCancel /><DiffUndoAllConfirm\n      /></parts.SummaryActions\n    ><DiffSummaryError /></parts.Summary\n  ><DiffList />{/snippet}\n\n<parts.Root {...props} bind:open children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/Diff.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffChange.svelte",
      "content": "<!-- A change's header row, \"Change 1 of 2 · line 19\" with its Keep and Undo, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import DiffChangeTitle from \"./DiffChangeTitle.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Change> = $props();\n</script>\n\n{#snippet fallback()}<DiffChangeTitle />{/snippet}\n\n<parts.Change {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffChange.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffChangeError.svelte",
      "content": "<!-- Why the change's decision failed, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.ChangeError> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.ChangeError {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffChangeError.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffChangeKeep.svelte",
      "content": "<!-- Keeps the change. \"Keep\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.ChangeKeep> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.ChangeKeep {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffChangeKeep.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffChangeOutcome.svelte",
      "content": "<!-- The change's \"Kept\", \"Undone\", \"Keeping…\" or \"Undoing…\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import Outcome from \"./Outcome.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.ChangeOutcome> = $props();\n</script>\n\n{#snippet fallback({ text, working }: { text: string; working: boolean })}<Outcome {text} {working} />{/snippet}\n\n<parts.ChangeOutcome {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffChangeOutcome.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffChangeTitle.svelte",
      "content": "<!-- The change's words, then its error, Undo, Keep and outcome, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import DiffChangeError from \"./DiffChangeError.svelte\";\n  import DiffChangeKeep from \"./DiffChangeKeep.svelte\";\n  import DiffChangeOutcome from \"./DiffChangeOutcome.svelte\";\n  import DiffChangeUndo from \"./DiffChangeUndo.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.ChangeTitle> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}<span data-diff-change-text=\"\">{text}</span><DiffChangeError\n  /><DiffChangeUndo /><DiffChangeKeep /><DiffChangeOutcome />{/snippet}\n\n<parts.ChangeTitle {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffChangeTitle.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffChangeUndo.svelte",
      "content": "<!-- Undoes the change. \"Undo\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.ChangeUndo> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.ChangeUndo {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffChangeUndo.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffCode.svelte",
      "content": "<!--\n  The line's code, in `ins` or `del` with its changed words marked and hidden words for screen readers, or a collapsed\n  run's `DiffCollapsed` and `DiffCollapsedText`, unless you pass children.\n-->\n<script lang=\"ts\">\n  import type { DiffLineView, DiffPiece } from \"@kind-ui/agent-ui/core\";\n  import type { ComponentProps } from \"svelte\";\n  import DiffCollapsed from \"./DiffCollapsed.svelte\";\n  import DiffCollapsedText from \"./DiffCollapsedText.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Code> = $props();\n</script>\n\n{#snippet run(pieces: readonly DiffPiece[])}{#each pieces as piece}<span\n      style:color={piece.color}\n      data-diff-changed={piece.changed ? \"\" : undefined}\n      data-italic={piece.fontStyle === \"italic\" ? \"\" : undefined}\n      data-bold={piece.fontStyle === \"bold\" ? \"\" : undefined}>{piece.text}</span\n    >{/each}{/snippet}\n\n{#snippet fallback({ line }: { line: DiffLineView | undefined })}{#if line?.kind === \"collapsed\"}<DiffCollapsed\n    /><DiffCollapsedText />{:else if line}{#if line.prefix}<span data-diff-hidden=\"\">{`${line.prefix} `}</span\n      >{/if}{#if line.kind === \"add\"}<ins>{@render run(line.pieces)}</ins>{:else if line.kind === \"remove\"}<del\n        >{@render run(line.pieces)}</del\n      >{:else}{@render run(line.pieces)}{/if}{/if}{/snippet}\n\n<parts.Code {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffCode.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffCollapsed.svelte",
      "content": "<!-- \"Show 12 lines\", unless you pass children. Its name says where they are. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Collapsed> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.Collapsed {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffCollapsed.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffCollapsedText.svelte",
      "content": "<!-- The collapsed lines, hidden until find in page matches one, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.CollapsedText> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.CollapsedText {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffCollapsedText.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffColumn.svelte",
      "content": "<!-- A column's name for screen readers, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Column> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.Column {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffColumn.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFile.svelte",
      "content": "<!-- The file whose path is `value`: its row and its lines, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import DiffFileCounts from \"./DiffFileCounts.svelte\";\n  import DiffFileError from \"./DiffFileError.svelte\";\n  import DiffFileKeep from \"./DiffFileKeep.svelte\";\n  import DiffFileNote from \"./DiffFileNote.svelte\";\n  import DiffFileOldPath from \"./DiffFileOldPath.svelte\";\n  import DiffFileOutcome from \"./DiffFileOutcome.svelte\";\n  import DiffFilePath from \"./DiffFilePath.svelte\";\n  import DiffFileStatus from \"./DiffFileStatus.svelte\";\n  import DiffFileUndo from \"./DiffFileUndo.svelte\";\n  import DiffShowAll from \"./DiffShowAll.svelte\";\n  import DiffTable from \"./DiffTable.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.File> = $props();\n</script>\n\n{#snippet fallback()}<parts.FileTrigger\n    ><span data-diff-name=\"\"><DiffFilePath /><DiffFileOldPath /></span><DiffFileStatus /><DiffFileCounts\n    /><parts.FileMark /></parts.FileTrigger\n  ><parts.FileActions><DiffFileError /><DiffFileUndo /><DiffFileKeep /><DiffFileOutcome /></parts.FileActions\n  ><parts.FileContent\n    ><DiffFileNote /><parts.Viewport><DiffTable /><DiffShowAll /></parts.Viewport></parts.FileContent\n  >{/snippet}\n\n<parts.File {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFile.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileCounts.svelte",
      "content": "<!-- \"+4 −2\", read as \"4 additions, 2 deletions\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import Counts from \"./Counts.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileCounts> = $props();\n</script>\n\n{#snippet fallback({ added, removed, name }: { added: string; removed: string; name: string })}<Counts\n    {added}\n    {removed}\n    {name}\n  />{/snippet}\n\n<parts.FileCounts {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileCounts.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileError.svelte",
      "content": "<!-- \"Couldn't undo `auth.ts`\", with its backticks as `code`, unless you pass children. -->\n<script lang=\"ts\">\n  import { codeSpans } from \"@kind-ui/agent-ui/core\";\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileError> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{#each codeSpans(text) as piece, index}{#if index % 2}<code\n        >{piece}</code\n      >{:else}{piece}{/if}{/each}{/snippet}\n\n<parts.FileError {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileError.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileKeep.svelte",
      "content": "<!-- \"Keep\", named with the path, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileKeep> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.FileKeep {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileKeep.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileNote.svelte",
      "content": "<!-- \"Binary file, not shown\" or \"Renamed, no changes\" in place of lines, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileNote> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.FileNote {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileNote.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileOldPath.svelte",
      "content": "<!-- \"from old/path.ts\" for a rename, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileOldPath> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}<bdi>{text}</bdi>{/snippet}\n\n<parts.FileOldPath {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileOldPath.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileOutcome.svelte",
      "content": "<!-- \"Kept\", \"Undone\", \"Keeping…\" or \"Undoing…\" in the buttons' place, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import Outcome from \"./Outcome.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileOutcome> = $props();\n</script>\n\n{#snippet fallback({ text, working }: { text: string; working: boolean })}<Outcome {text} {working} />{/snippet}\n\n<parts.FileOutcome {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileOutcome.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFilePath.svelte",
      "content": "<!-- The path, cut at its start when it's long so the file name stays, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FilePath> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}<bdi>{text}</bdi>{/snippet}\n\n<parts.FilePath {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFilePath.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileStatus.svelte",
      "content": "<!-- \"Added\", \"Deleted\" or \"Renamed\", unless you pass children. Absent for a modified file. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileStatus> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.FileStatus {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileStatus.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffFileUndo.svelte",
      "content": "<!-- \"Undo\", named with the path, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.FileUndo> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.FileUndo {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffFileUndo.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffKeepAll.svelte",
      "content": "<!-- \"Keep all\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.KeepAll> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}<span\n    data-kind-pending-mark=\"\"\n    data-status-mark=\"\"\n    data-status=\"running\"\n    aria-hidden=\"true\"\n  ></span>{text}{/snippet}\n\n<parts.KeepAll {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffKeepAll.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffLine.svelte",
      "content": "<!-- A line: its numbers, its sign and its code, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import DiffCode from \"./DiffCode.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Line> = $props();\n</script>\n\n{#snippet fallback()}<parts.OldNumber /><parts.NewNumber /><parts.Sign /><DiffCode />{/snippet}\n\n<parts.Line {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffLine.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffList.svelte",
      "content": "<!-- A `DiffFile` for each file, keyed by its path, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import DiffFile from \"./DiffFile.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.List> = $props();\n</script>\n\n{#snippet fallback({ paths }: { paths: readonly string[] })}{#each paths as path (path)}<DiffFile\n      value={path}\n    />{/each}{/snippet}\n\n<parts.List {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffList.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffShowAll.svelte",
      "content": "<!-- \"Show full diff (6,400 lines)\" for a file cut off at 2,000 rows, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.ShowAll> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.ShowAll {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffShowAll.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffSummaryCounts.svelte",
      "content": "<!-- \"+120 −8\", read as \"120 additions, 8 deletions\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import Counts from \"./Counts.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.SummaryCounts> = $props();\n</script>\n\n{#snippet fallback({ added, removed, name }: { added: string; removed: string; name: string })}<Counts\n    {added}\n    {removed}\n    {name}\n  />{/snippet}\n\n<parts.SummaryCounts {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffSummaryCounts.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffSummaryError.svelte",
      "content": "<!-- \"Couldn't undo all changes\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.SummaryError> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.SummaryError {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffSummaryError.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffSummaryOutcome.svelte",
      "content": "<!-- \"3 kept, 1 undone\" once every change is reviewed, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.SummaryOutcome> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.SummaryOutcome {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffSummaryOutcome.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffSummaryProgress.svelte",
      "content": "<!-- \"2 of 4 reviewed\", then \"3 kept, 1 undone\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.SummaryProgress> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.SummaryProgress {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffSummaryProgress.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffSummaryTitle.svelte",
      "content": "<!-- \"4 files changed\", \"Editing 2 files\" or \"All changes reviewed\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.SummaryTitle> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.SummaryTitle {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffSummaryTitle.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffTable.svelte",
      "content": "<!-- The column headers, then a `DiffChange` or `DiffLine` for each row, keyed by its key, unless you pass children. -->\n<script lang=\"ts\">\n  import type { DiffTableRow } from \"@kind-ui/agent-ui/core\";\n  import type { ComponentProps } from \"svelte\";\n  import DiffChange from \"./DiffChange.svelte\";\n  import DiffColumn from \"./DiffColumn.svelte\";\n  import DiffLine from \"./DiffLine.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Table> = $props();\n</script>\n\n{#snippet fallback({ rows, columns }: { rows: readonly DiffTableRow[]; columns: readonly string[] })}<parts.Head\n    >{#each columns as column (column)}<DiffColumn value={column} />{/each}</parts.Head\n  >{#each rows as row (row.key)}{#if row.change}<DiffChange value={row.key} />{:else}<DiffLine\n        value={row.key}\n      />{/if}{/each}{/snippet}\n\n<parts.Table {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffTable.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffUndoAll.svelte",
      "content": "<!-- Asks before undoing every undecided file. \"Undo all\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.UndoAll> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.UndoAll {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffUndoAll.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffUndoAllCancel.svelte",
      "content": "<!-- \"Cancel\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.UndoAllCancel> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}{text}{/snippet}\n\n<parts.UndoAllCancel {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffUndoAllCancel.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffUndoAllConfirm.svelte",
      "content": "<!-- Undoes every undecided file. \"Undo all\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.UndoAllConfirm> = $props();\n</script>\n\n{#snippet fallback({ text }: { text: string })}<span\n    data-kind-pending-mark=\"\"\n    data-status-mark=\"\"\n    data-status=\"running\"\n    aria-hidden=\"true\"\n  ></span>{text}{/snippet}\n\n<parts.UndoAllConfirm {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffUndoAllConfirm.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/DiffUndoAllQuestion.svelte",
      "content": "<!-- \"Undo all 4 files? This can't be undone.\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.UndoAllQuestion> = $props();\n</script>\n\n{#snippet fallback({ text, warning }: { text: string; warning: string })}{text}{\" \"}<span data-diff-warning=\"\"\n    >{warning}</span\n  >{/snippet}\n\n<parts.UndoAllQuestion {...props} children={children ?? fallback} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/DiffUndoAllQuestion.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/Outcome.svelte",
      "content": "<!-- A decision's words, after a running mark while it's sent. -->\n<script lang=\"ts\">\n  let { text, working }: { text: string; working: boolean } = $props();\n</script>\n\n{#if working}<span data-status-mark=\"\" data-status=\"running\" aria-hidden=\"true\"></span>{/if}{text}\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/Outcome.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/index.ts",
      "content": "import type { ComponentProps } from \"svelte\";\nimport Diff from \"./Diff.svelte\";\nimport DiffChange from \"./DiffChange.svelte\";\nimport DiffChangeError from \"./DiffChangeError.svelte\";\nimport DiffChangeKeep from \"./DiffChangeKeep.svelte\";\nimport DiffChangeOutcome from \"./DiffChangeOutcome.svelte\";\nimport DiffChangeTitle from \"./DiffChangeTitle.svelte\";\nimport DiffChangeUndo from \"./DiffChangeUndo.svelte\";\nimport DiffCode from \"./DiffCode.svelte\";\nimport DiffCollapsed from \"./DiffCollapsed.svelte\";\nimport DiffCollapsedText from \"./DiffCollapsedText.svelte\";\nimport DiffColumn from \"./DiffColumn.svelte\";\nimport DiffFile from \"./DiffFile.svelte\";\nimport DiffFileCounts from \"./DiffFileCounts.svelte\";\nimport DiffFileError from \"./DiffFileError.svelte\";\nimport DiffFileKeep from \"./DiffFileKeep.svelte\";\nimport DiffFileNote from \"./DiffFileNote.svelte\";\nimport DiffFileOldPath from \"./DiffFileOldPath.svelte\";\nimport DiffFileOutcome from \"./DiffFileOutcome.svelte\";\nimport DiffFilePath from \"./DiffFilePath.svelte\";\nimport DiffFileStatus from \"./DiffFileStatus.svelte\";\nimport DiffFileUndo from \"./DiffFileUndo.svelte\";\nimport DiffKeepAll from \"./DiffKeepAll.svelte\";\nimport DiffLine from \"./DiffLine.svelte\";\nimport DiffList from \"./DiffList.svelte\";\nimport DiffShowAll from \"./DiffShowAll.svelte\";\nimport DiffSummaryCounts from \"./DiffSummaryCounts.svelte\";\nimport DiffSummaryError from \"./DiffSummaryError.svelte\";\nimport DiffSummaryOutcome from \"./DiffSummaryOutcome.svelte\";\nimport DiffSummaryProgress from \"./DiffSummaryProgress.svelte\";\nimport DiffSummaryTitle from \"./DiffSummaryTitle.svelte\";\nimport DiffTable from \"./DiffTable.svelte\";\nimport DiffUndoAll from \"./DiffUndoAll.svelte\";\nimport DiffUndoAllCancel from \"./DiffUndoAllCancel.svelte\";\nimport DiffUndoAllConfirm from \"./DiffUndoAllConfirm.svelte\";\nimport DiffUndoAllQuestion from \"./DiffUndoAllQuestion.svelte\";\nimport { parts } from \"./parts\";\n\n/** The title, counts, progress and Keep all and Undo all, above several files. */\nexport const DiffSummary = parts.Summary;\n/** The running mark while a patch streams. */\nexport const DiffSummaryMark = parts.SummaryMark;\n/** Holds Undo all and Keep all, or Undo all's question. */\nexport const DiffSummaryActions = parts.SummaryActions;\n/** Holds a file's Keep, Undo, outcome and error, at one width. */\nexport const DiffFileActions = parts.FileActions;\n/** The running mark in place of a file's counts while its patch streams. */\nexport const DiffFileMark = parts.FileMark;\n/** A file's lines, opened by its row. */\nexport const DiffFileContent = parts.FileContent;\n/** Scrolls a file's lines. Holds a `DiffTable`. */\nexport const DiffViewport = parts.Viewport;\n/** The screen-reader column headers. */\nexport const DiffHead = parts.Head;\n/** Opens and closes the file's lines. Holds its path, status and counts. */\nexport const DiffFileTrigger = parts.FileTrigger;\n/** The line's number in the old file, drawn from `data-line`, so a copy holds only code. */\nexport const DiffOldNumber = parts.OldNumber;\n/** The line's number in the new file, drawn from `data-line`. */\nexport const DiffNewNumber = parts.NewNumber;\n/** `+` or `−`, drawn from `data-sign`. */\nexport const DiffSign = parts.Sign;\n\nexport {\n  Diff,\n  DiffChange,\n  DiffChangeError,\n  DiffChangeKeep,\n  DiffChangeOutcome,\n  DiffChangeTitle,\n  DiffChangeUndo,\n  DiffCode,\n  DiffCollapsed,\n  DiffCollapsedText,\n  DiffColumn,\n  DiffFile,\n  DiffFileCounts,\n  DiffFileError,\n  DiffFileKeep,\n  DiffFileNote,\n  DiffFileOldPath,\n  DiffFileOutcome,\n  DiffFilePath,\n  DiffFileStatus,\n  DiffFileUndo,\n  DiffKeepAll,\n  DiffLine,\n  DiffList,\n  DiffShowAll,\n  DiffSummaryCounts,\n  DiffSummaryError,\n  DiffSummaryOutcome,\n  DiffSummaryProgress,\n  DiffSummaryTitle,\n  DiffTable,\n  DiffUndoAll,\n  DiffUndoAllCancel,\n  DiffUndoAllConfirm,\n  DiffUndoAllQuestion,\n};\n\nexport type DiffProps = ComponentProps<typeof Diff>;\nexport type DiffSummaryTitleProps = ComponentProps<typeof DiffSummaryTitle>;\nexport type DiffSummaryCountsProps = ComponentProps<typeof DiffSummaryCounts>;\nexport type DiffSummaryProgressProps = ComponentProps<typeof DiffSummaryProgress>;\nexport type DiffSummaryOutcomeProps = ComponentProps<typeof DiffSummaryOutcome>;\nexport type DiffUndoAllProps = ComponentProps<typeof DiffUndoAll>;\nexport type DiffKeepAllProps = ComponentProps<typeof DiffKeepAll>;\nexport type DiffUndoAllQuestionProps = ComponentProps<typeof DiffUndoAllQuestion>;\nexport type DiffUndoAllCancelProps = ComponentProps<typeof DiffUndoAllCancel>;\nexport type DiffUndoAllConfirmProps = ComponentProps<typeof DiffUndoAllConfirm>;\nexport type DiffSummaryErrorProps = ComponentProps<typeof DiffSummaryError>;\nexport type DiffListProps = ComponentProps<typeof DiffList>;\nexport type DiffFileProps = ComponentProps<typeof DiffFile>;\nexport type DiffFilePathProps = ComponentProps<typeof DiffFilePath>;\nexport type DiffFileOldPathProps = ComponentProps<typeof DiffFileOldPath>;\nexport type DiffFileStatusProps = ComponentProps<typeof DiffFileStatus>;\nexport type DiffFileCountsProps = ComponentProps<typeof DiffFileCounts>;\nexport type DiffFileUndoProps = ComponentProps<typeof DiffFileUndo>;\nexport type DiffFileKeepProps = ComponentProps<typeof DiffFileKeep>;\nexport type DiffFileOutcomeProps = ComponentProps<typeof DiffFileOutcome>;\nexport type DiffFileErrorProps = ComponentProps<typeof DiffFileError>;\nexport type DiffFileNoteProps = ComponentProps<typeof DiffFileNote>;\nexport type DiffColumnProps = ComponentProps<typeof DiffColumn>;\nexport type DiffTableProps = ComponentProps<typeof DiffTable>;\nexport type DiffChangeProps = ComponentProps<typeof DiffChange>;\nexport type DiffChangeTitleProps = ComponentProps<typeof DiffChangeTitle>;\nexport type DiffChangeUndoProps = ComponentProps<typeof DiffChangeUndo>;\nexport type DiffChangeKeepProps = ComponentProps<typeof DiffChangeKeep>;\nexport type DiffChangeOutcomeProps = ComponentProps<typeof DiffChangeOutcome>;\nexport type DiffChangeErrorProps = ComponentProps<typeof DiffChangeError>;\nexport type DiffLineProps = ComponentProps<typeof DiffLine>;\nexport type DiffCodeProps = ComponentProps<typeof DiffCode>;\nexport type DiffCollapsedProps = ComponentProps<typeof DiffCollapsed>;\nexport type DiffCollapsedTextProps = ComponentProps<typeof DiffCollapsedText>;\nexport type DiffShowAllProps = ComponentProps<typeof DiffShowAll>;\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/index.ts"
    },
    {
      "path": "packages/agent-ui/src/svelte/diff/parts.ts",
      "content": "import { diffPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/svelte/primitive\";\n\nexport const parts = createParts(diffPrimitive, {\n  root: \"div\",\n  summary: \"div\",\n  \"summary-title\": \"div\",\n  \"summary-counts\": \"span\",\n  \"summary-mark\": \"span\",\n  \"summary-progress\": \"div\",\n  \"summary-outcome\": \"div\",\n  \"summary-actions\": \"div\",\n  \"undo-all\": \"button\",\n  \"keep-all\": \"button\",\n  \"undo-all-question\": \"span\",\n  \"undo-all-cancel\": \"button\",\n  \"undo-all-confirm\": \"button\",\n  \"summary-error\": \"div\",\n  list: \"div\",\n  file: \"div\",\n  \"file-trigger\": \"button\",\n  \"file-path\": \"span\",\n  \"file-old-path\": \"span\",\n  \"file-status\": \"span\",\n  \"file-counts\": \"span\",\n  \"file-mark\": \"span\",\n  \"file-actions\": \"div\",\n  \"file-undo\": \"button\",\n  \"file-keep\": \"button\",\n  \"file-outcome\": \"span\",\n  \"file-error\": \"span\",\n  \"file-content\": \"div\",\n  \"file-note\": \"div\",\n  viewport: \"div\",\n  table: \"div\",\n  head: \"div\",\n  column: \"span\",\n  change: \"div\",\n  \"change-title\": \"div\",\n  \"change-undo\": \"button\",\n  \"change-keep\": \"button\",\n  \"change-outcome\": \"span\",\n  \"change-error\": \"span\",\n  line: \"div\",\n  \"old-number\": \"span\",\n  \"new-number\": \"span\",\n  sign: \"span\",\n  code: \"span\",\n  collapsed: \"button\",\n  \"collapsed-text\": \"span\",\n  \"show-all\": \"button\",\n});\n",
      "type": "registry:ui",
      "target": "@ui/svelte/diff/parts.ts"
    }
  ],
  "meta": {
    "layer": "svelte"
  },
  "type": "registry:ui"
}
