{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "agent-session-cli-demo",
  "type": "registry:block",
  "title": "Agent Session: CLI Feature Cards",
  "description": "AI Agent Terminal Demo example, CLI Feature Cards: Two small terminals with `theme=\"auto\"` and no preview, as feature cards: a hidden key prompt, and a typo that gets a suggestion instead of a write. A take on the terminal (cli) and product demo (interactive demo). Fits hero and features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "features",
    "terminal",
    "product-demo",
    "code-block",
    "ai",
    "code",
    "developer"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/agent-session#agent-session-cli-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/agent-session.json"
  ],
  "files": [
    {
      "path": "components/agent-session-cli-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport { AgentSession, type AgentSessionStep } from \"@/components/ui/agent-session\";\n\nconst cards: { title: string; body: string; script: AgentSessionStep[] }[] = [\n  {\n    title: \"Your key stays in your terminal\",\n    body: \"You paste it once at a hidden prompt. The agent only ever runs tern track, so the key never reaches its context or your repo.\",\n    script: [\n      {\n        shell: \"npx tern login\",\n        ms: 1400,\n        output: [\n          { text: \"? Project key  ••••••••••••••••••••\", tone: \"muted\" },\n          { text: \"✓ Signed in as maya@fieldandfold.co\", tone: \"success\" },\n          { text: \"  key saved to ~/.config/tern/auth.json\", tone: \"muted\" },\n        ],\n        pace: 360,\n      },\n    ],\n  },\n  {\n    title: \"A typo gets a question, not a write\",\n    body: \"Event names must match. A near miss suggests the real one, and nothing touches your code until the name is right.\",\n    script: [\n      {\n        shell: \"npx tern track signup_veiwed\",\n        ms: 700,\n        failed: true,\n        output: [\n          { text: 'error  no event \"signup_veiwed\"', tone: \"error\" },\n          { text: \"       did you mean signup_viewed?\", tone: \"default\" },\n          { text: \"       nothing was written\", tone: \"muted\" },\n        ],\n      },\n      {\n        shell: \"npx tern track signup_viewed\",\n        ms: 900,\n        output: [\n          { text: '+ app/signup/page.tsx   track(\"signup_viewed\")', tone: \"added\" },\n          { text: \"✓ 1 event tracked\", tone: \"success\" },\n        ],\n      },\n    ],\n  },\n];\n\nexport function AgentSessionCliDemo() {\n  return (\n    <div className=\"@container w-full max-w-4xl\">\n      <div className=\"grid gap-x-6 gap-y-10 @[38rem]:grid-cols-2\">\n        {cards.map((card) => (\n          <div key={card.title} className=\"flex min-w-0 flex-col gap-4\">\n            <AgentSession\n              script={card.script}\n              theme=\"auto\"\n              title=\"~/web\"\n              className=\"[--agent-session-height:13.5rem]\"\n            />\n            <div className=\"px-1\">\n              <h3 className=\"text-sm font-semibold tracking-tight text-zinc-900 dark:text-zinc-100\">{card.title}</h3>\n              <p className=\"mt-1 text-sm leading-relaxed text-pretty text-zinc-500 dark:text-zinc-400\">{card.body}</p>\n            </div>\n          </div>\n        ))}\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}