{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-terminal",
  "type": "registry:block",
  "title": "Features, terminal",
  "description": "Section heading and a link beside a terminal command and a prompt box. The section version of hero-terminal (h2).",
  "categories": [
    "features"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/button.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-b-directory.json"
  ],
  "files": [
    {
      "path": "src/blocks/features-terminal/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/features-terminal/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  link,\n  terminal: z.object({ command: t(120), output: t(1200) // KB-178: raised from 160 so a real multi-line command output fits\n }),\n  prompt: z.object({ label: t(20), text: t(400) }),\n});\n\nexport const spec = defineSpec({\n  type: 'features-terminal',\n  aliases: ['features/terminal'],\n  name: 'Features, terminal',\n  category: 'features',\n  role: 'body',\n  description: 'Section heading and a link beside a terminal command and a prompt box. The section version of hero-terminal (h2).',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say what the reader hands over',\n    description: 'Say what the reader installs, what it lets their tool do, and what the reader asks for next. Add which pages or full-page recipes it covers.',\n    link: { label: 'Read more about it', href: '#agent' },\n    terminal: { command: 'npx your-app add first-step', output: '✓ Added .your-tool/skills/your-app/SKILL.md' },\n    prompt: { label: 'Prompt', text: 'Say what to ask for, with {product} and {plans} as the slots, which skill to use and what to lead with.' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/features-terminal/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/features-terminal/index.tsx",
      "content": "import { useId } from 'react';\nimport { ArrowRight } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { useEditing, Container, Eyebrow, Section } from '../_shared/kit';\nimport { TerminalPanels } from '../_shared/b-directory-kit';\nimport { ButtonLink } from '../../ui/button';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nfunction FeaturesTerminal({ props }: BlockProps<Props>) {\n  const id = useId();\n  const editing = useEditing();\n  return (\n    <Section labelledBy={id}>\n      <Container className=\"grid grid-cols-1 items-center gap-12 @4xl:grid-cols-[1fr_1.05fr] @4xl:gap-16\">\n        <div>\n          <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n          <div id={id}>\n            <Text path={['title']} value={props.title} as=\"h2\" className=\"text-kh-title font-semibold\" />\n          </div>\n          <Text path={['description']} value={props.description} as=\"p\" multiline className=\"mt-4 max-w-kh-lead text-kh-lead text-kh-muted\" />\n          {(props.link.label || editing) && (\n            <ButtonLink href={props.link.href} variant=\"secondary\" size=\"lg\" iconEnd={<ArrowRight aria-hidden className=\"size-4\" />} className=\"mt-8\">\n              <Text path={['link', 'label']} value={props.link.label} as=\"span\" placeholder=\"Label\" />\n            </ButtonLink>\n          )}\n        </div>\n        <TerminalPanels terminal={props.terminal} prompt={props.prompt} />\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(FeaturesTerminal);\n"
    }
  ]
}
