{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chain-of-thought-svelte",
  "title": "Chain of Thought (Svelte)",
  "description": "A summary of the steps an agent took, which opens into each step's details.",
  "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/chain-of-thought/ChainOfThought.svelte",
      "content": "<!--\n  A summary of the steps an agent took, which expands into them. Any `children` replace the default trigger and\n  content.\n-->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import ChainOfThoughtList from \"./ChainOfThoughtList.svelte\";\n  import ChainOfThoughtMeta from \"./ChainOfThoughtMeta.svelte\";\n  import ChainOfThoughtTitle from \"./ChainOfThoughtTitle.svelte\";\n  import { parts } from \"./parts\";\n\n  let {\n    children: content,\n    open = $bindable(),\n    openSteps = $bindable(),\n    ...props\n  }: ComponentProps<typeof parts.Root> = $props();\n</script>\n\n<parts.Root {...props} bind:open bind:openSteps\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}<parts.Trigger\n        ><parts.Icon\n        /><ChainOfThoughtTitle\n        /><ChainOfThoughtMeta\n      /></parts.Trigger\n      ><parts.Content\n        ><ChainOfThoughtList\n      /></parts.Content\n    >{/if}{/snippet}</parts.Root>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThought.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/ChainOfThoughtItem.svelte",
      "content": "<!-- The step whose `id` is `value`. Without children, it shows the step's trigger. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import ChainOfThoughtItemTrigger from \"./ChainOfThoughtItemTrigger.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children: content, ...props }: ComponentProps<typeof parts.Item> = $props();\n</script>\n\n<parts.Item {...props}\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}<ChainOfThoughtItemTrigger />{/if}{/snippet}</parts.Item>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThoughtItem.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/ChainOfThoughtItemMeta.svelte",
      "content": "<!-- The step's `durationSeconds`, as \"N s\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children: content, ...props }: ComponentProps<typeof parts.ItemMeta> = $props();\n</script>\n\n<parts.ItemMeta {...props}\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}{state.duration}{/if}{/snippet}</parts.ItemMeta>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThoughtItemMeta.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/ChainOfThoughtItemTitle.svelte",
      "content": "<!-- The step's `title`, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children: content, ...props }: ComponentProps<typeof parts.ItemTitle> = $props();\n</script>\n\n<parts.ItemTitle {...props}\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}{state.title}{/if}{/snippet}</parts.ItemTitle>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThoughtItemTitle.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/ChainOfThoughtItemTrigger.svelte",
      "content": "<!-- Opens and closes the step's content. Without children, it shows the step's icon, title and duration. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import ChainOfThoughtItemMeta from \"./ChainOfThoughtItemMeta.svelte\";\n  import ChainOfThoughtItemTitle from \"./ChainOfThoughtItemTitle.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children: content, ...props }: ComponentProps<typeof parts.ItemTrigger> = $props();\n</script>\n\n<parts.ItemTrigger {...props}\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}<parts.ItemIcon\n      /><ChainOfThoughtItemTitle\n      /><ChainOfThoughtItemMeta\n    />{/if}{/snippet}</parts.ItemTrigger>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThoughtItemTrigger.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/ChainOfThoughtList.svelte",
      "content": "<!-- An item for each step, unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import ChainOfThoughtItem from \"./ChainOfThoughtItem.svelte\";\n  import { parts } from \"./parts\";\n\n  let { children: content, ...props }: ComponentProps<typeof parts.List> = $props();\n</script>\n\n<parts.List {...props}\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}{#each state.steps as step (step.id)}<ChainOfThoughtItem value={step.id}\n      />{/each}{/if}{/snippet}</parts.List>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThoughtList.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/ChainOfThoughtMeta.svelte",
      "content": "<!-- The `durationSeconds`, as \"N s\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children: content, ...props }: ComponentProps<typeof parts.Meta> = $props();\n</script>\n\n<parts.Meta {...props}\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}{state.duration}{/if}{/snippet}</parts.Meta>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThoughtMeta.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/ChainOfThoughtTitle.svelte",
      "content": "<!-- The `label`, else \"N steps\", unless you pass children. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children: content, ...props }: ComponentProps<typeof parts.Title> = $props();\n</script>\n\n<parts.Title {...props}\n  >{#snippet children(state)}{#if content}{@render content(state)}{:else}{state.title}{/if}{/snippet}</parts.Title>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/ChainOfThoughtTitle.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/index.ts",
      "content": "import type { ComponentProps } from \"svelte\";\nimport ChainOfThought from \"./ChainOfThought.svelte\";\nimport ChainOfThoughtItem from \"./ChainOfThoughtItem.svelte\";\nimport ChainOfThoughtItemMeta from \"./ChainOfThoughtItemMeta.svelte\";\nimport ChainOfThoughtItemTitle from \"./ChainOfThoughtItemTitle.svelte\";\nimport ChainOfThoughtItemTrigger from \"./ChainOfThoughtItemTrigger.svelte\";\nimport ChainOfThoughtList from \"./ChainOfThoughtList.svelte\";\nimport ChainOfThoughtMeta from \"./ChainOfThoughtMeta.svelte\";\nimport ChainOfThoughtTitle from \"./ChainOfThoughtTitle.svelte\";\nimport { parts } from \"./parts\";\n\nexport {\n  ChainOfThought,\n  ChainOfThoughtItem,\n  ChainOfThoughtItemMeta,\n  ChainOfThoughtItemTitle,\n  ChainOfThoughtItemTrigger,\n  ChainOfThoughtList,\n  ChainOfThoughtMeta,\n  ChainOfThoughtTitle,\n};\nexport const ChainOfThoughtTrigger = parts.Trigger;\nexport const ChainOfThoughtIcon = parts.Icon;\nexport const ChainOfThoughtContent = parts.Content;\nexport const ChainOfThoughtItemIcon = parts.ItemIcon;\nexport const ChainOfThoughtItemContent = parts.ItemContent;\n\nexport type ChainOfThoughtProps = ComponentProps<typeof ChainOfThought>;\nexport type ChainOfThoughtTitleProps = ComponentProps<typeof ChainOfThoughtTitle>;\nexport type ChainOfThoughtMetaProps = ComponentProps<typeof ChainOfThoughtMeta>;\nexport type ChainOfThoughtListProps = ComponentProps<typeof ChainOfThoughtList>;\nexport type ChainOfThoughtItemProps = ComponentProps<typeof ChainOfThoughtItem>;\nexport type ChainOfThoughtItemTriggerProps = ComponentProps<typeof ChainOfThoughtItemTrigger>;\nexport type ChainOfThoughtItemTitleProps = ComponentProps<typeof ChainOfThoughtItemTitle>;\nexport type ChainOfThoughtItemMetaProps = ComponentProps<typeof ChainOfThoughtItemMeta>;\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/index.ts"
    },
    {
      "path": "packages/agent-ui/src/svelte/chain-of-thought/parts.ts",
      "content": "import { chainOfThoughtPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/svelte/primitive\";\n\nexport const parts = createParts(chainOfThoughtPrimitive, {\n  root: \"div\",\n  trigger: \"button\",\n  icon: \"span\",\n  title: \"span\",\n  meta: \"span\",\n  content: \"div\",\n  list: \"ol\",\n  item: \"li\",\n  \"item-trigger\": \"button\",\n  \"item-icon\": \"span\",\n  \"item-title\": \"span\",\n  \"item-meta\": \"span\",\n  \"item-content\": \"div\",\n});\n",
      "type": "registry:ui",
      "target": "@ui/svelte/chain-of-thought/parts.ts"
    }
  ],
  "meta": {
    "layer": "svelte"
  },
  "type": "registry:ui"
}
