{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-assistant",
  "type": "registry:block",
  "title": "Assistant",
  "description": "An assistant beside a record on a raised page: the deal on the left, and a conversation on the right that cites its sources and proposes a change to apply, which lands in the record and its activity.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/app-shell.json",
    "https://wideset.co/r/avatar.json",
    "https://wideset.co/r/block-styles.json",
    "https://wideset.co/r/breadcrumbs.json",
    "https://wideset.co/r/button.json",
    "https://wideset.co/r/card.json",
    "https://wideset.co/r/checkbox.json",
    "https://wideset.co/r/chip.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/assistant/activity-timeline.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/activity-timeline.tsx",
      "content": "'use client';\n\n// TODO(custom): activity timeline; no Timeline in Wideset.\nimport {\n  type RemixiconComponentType,\n  RiEditLine,\n  RiMailLine,\n  RiPhoneLine,\n  RiStickyNoteLine,\n} from '@remixicon/react';\n\nimport type { Activity } from './data';\nimport { formatDateTime, formatTime } from './format';\n\nconst ICON: Record<Activity['kind'], RemixiconComponentType> = {\n  call: RiPhoneLine,\n  email: RiMailLine,\n  note: RiStickyNoteLine,\n  change: RiEditLine,\n};\n\n/**\n * What happened on the deal today, newest first, on one line of marks: who did what, then when.\n * A change applied from the assistant lands here like any other edit, with Maya as its author.\n */\nexport function ActivityTimeline({ items }: { items: Activity[] }) {\n  return (\n    <ol className=\"flex flex-col\">\n      {items.map((item, index) => {\n        const Icon = ICON[item.kind];\n        const last = index === items.length - 1;\n        return (\n          <li key={item.id} className=\"gap-ws-7 relative flex\">\n            {last ? null : (\n              <span\n                aria-hidden=\"true\"\n                className=\"border-ws-static-base top-ws-15 bottom-ws-3 left-ws-9 absolute border-l\"\n              />\n            )}\n            <span\n              aria-hidden=\"true\"\n              className=\"size-ws-14 rounded-ws-control-full border-ws-static-base bg-ws-static-foreground text-ws-static-subtle flex shrink-0 items-center justify-center border\"\n            >\n              <Icon className=\"size-ws-8\" />\n            </span>\n            <div\n              className={\n                last\n                  ? 'gap-ws-9 pt-ws-4 flex min-w-0 flex-1 items-baseline justify-between'\n                  : 'gap-ws-9 pt-ws-4 pb-ws-11 flex min-w-0 flex-1 items-baseline justify-between'\n              }\n            >\n              <p className=\"typography-body-md text-ws-static-subtle min-w-0\">\n                <span className=\"text-ws-static-strong font-ws-medium\">{item.actor.name}</span>{' '}\n                {item.action}\n              </p>\n              <time\n                dateTime={item.at}\n                title={formatDateTime(item.at)}\n                className=\"typography-caption-md text-ws-static-subtle shrink-0 tabular-nums\"\n              >\n                {formatTime(item.at)}\n              </time>\n            </div>\n          </li>\n        );\n      })}\n    </ol>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/answer-feedback.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/answer-feedback.tsx",
      "content": "'use client';\n\nimport { RiThumbDownFill, RiThumbDownLine, RiThumbUpFill, RiThumbUpLine } from '@remixicon/react';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\n\ntype AnswerFeedbackProps = {\n  rating?: 'up' | 'down';\n  onRate: (rating?: 'up' | 'down') => void;\n};\n\n/**\n * A quiet thumbs up and down under an answer: ghost, grey, the smallest size, so it is there to\n * use and never competes with the answer. A second press takes the rating back.\n */\nexport function AnswerFeedback({ rating, onRate }: AnswerFeedbackProps) {\n  return (\n    <div role=\"group\" aria-label=\"Rate this answer\" className=\"gap-ws-2 -ml-ws-3 flex\">\n      <IconButton\n        icon={rating === 'up' ? RiThumbUpFill : RiThumbUpLine}\n        variant=\"secondary\"\n        preset=\"ghost\"\n        size=\"xs\"\n        aria-label=\"Helpful\"\n        aria-pressed={rating === 'up'}\n        onClick={() => onRate(rating === 'up' ? undefined : 'up')}\n      />\n      <IconButton\n        icon={rating === 'down' ? RiThumbDownFill : RiThumbDownLine}\n        variant=\"secondary\"\n        preset=\"ghost\"\n        size=\"xs\"\n        aria-label=\"Not helpful\"\n        aria-pressed={rating === 'down'}\n        onClick={() => onRate(rating === 'down' ? undefined : 'down')}\n      />\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/assistant-panel.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/assistant-panel.tsx",
      "content": "'use client';\n\nimport { RiChatNewLine, RiQuestionAnswerLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { Composer } from './composer';\nimport { answers, conversation, fallback, suggestions, type Turn } from './data';\nimport { Message } from './message';\nimport { SuggestedPrompts } from './suggested-prompts';\n\n/** How often a streaming answer grows, in milliseconds, and by how many words and spaces. */\nconst TICK = 70;\nconst STEP = 4;\n\n/** An answer in the pieces it streams in: words and the spaces between them. */\nconst piecesOf = (text: string) => text.split(/(\\s+)/);\n\n/** Whether the device asks for less motion; where there is no `matchMedia` (a test), it does not. */\nconst reducedMotion = () =>\n  typeof window !== 'undefined' &&\n  typeof window.matchMedia === 'function' &&\n  window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n\ntype AssistantPanelProps = {\n  /** Writes the proposed change to the record. */\n  onApply: () => void;\n};\n\n/**\n * The assistant beside the record, in its own raised card, 26rem, on the same grey frame and with\n * the same margins and radius as the record's card: its name and \"New conversation\" in a bar\n * whose line runs level with the record's breadcrumb bar, the conversation, and the composer at\n * the foot. Answers stream in a few\n * words at a time with Stop in the composer (all at once when motion is reduced); a proposed\n * change waits for Apply or Discard. With nothing waiting and nothing streaming, three suggested\n * questions sit above the composer.\n */\nexport function AssistantPanel({ onApply }: AssistantPanelProps) {\n  const [turns, setTurns] = useState<Turn[]>(conversation);\n  const [streaming, setStreaming] = useState<{ id: string; shown: number } | null>(null);\n  const scroller = useRef<HTMLDivElement>(null);\n\n  const streamed = streaming && turns.find((turn) => turn.id === streaming.id);\n  const pending = turns.some(\n    (turn) => turn.role === 'assistant' && turn.change?.status === 'pending',\n  );\n\n  // Grows the streaming answer one step at a time until it is all there.\n  useEffect(() => {\n    if (!streaming || !streamed) return;\n    if (streaming.shown >= piecesOf(streamed.text).length) return setStreaming(null);\n    const id = window.setTimeout(\n      () => setStreaming({ id: streaming.id, shown: streaming.shown + STEP }),\n      TICK,\n    );\n    return () => window.clearTimeout(id);\n  }, [streaming, streamed]);\n\n  // Follows the newest words, on opening too, so a change that waits is in view; and again when\n  // the suggestions come back over the composer and take some of the height.\n  useEffect(() => {\n    if (scroller.current) scroller.current.scrollTop = scroller.current.scrollHeight;\n  }, [turns.length, streaming?.shown, pending]);\n\n  const update = (id: string, change: (turn: Turn) => Turn) =>\n    setTurns((current) => current.map((turn) => (turn.id === id ? change(turn) : turn)));\n\n  const ask = (text: string) => {\n    // Own keys only: a question like \"toString\" must not find an inherited function.\n    const answer = Object.prototype.hasOwnProperty.call(answers, text) ? answers[text] : fallback;\n    const id = `a${turns.length}`;\n    setTurns([\n      ...turns,\n      { id: `q${turns.length}`, role: 'user', text },\n      { id, role: 'assistant', text: answer.text, sources: answer.sources },\n    ]);\n    setStreaming(reducedMotion() ? null : { id, shown: 0 });\n  };\n\n  // Keeps what was written so far, and says that the answer stopped there.\n  const stop = () => {\n    if (!streaming || !streamed) return;\n    const text = piecesOf(streamed.text).slice(0, streaming.shown).join('').trimEnd();\n    update(streaming.id, (turn) => ({ ...turn, text, stopped: true }));\n    setStreaming(null);\n  };\n\n  const decide = (id: string, status: 'applied' | 'discarded') =>\n    update(id, (turn) =>\n      turn.role === 'assistant' && turn.change\n        ? { ...turn, change: { ...turn.change, status } }\n        : turn,\n    );\n\n  return (\n    <aside\n      aria-label=\"Assistant\"\n      className=\"bg-ws-static-foreground rounded-ws-container-lg shadow-ws-low my-ws-7 mr-ws-7 flex w-[26rem] shrink-0 flex-col overflow-hidden\"\n    >\n      <header className=\"h-ws-18 border-ws-static-base px-ws-11 gap-ws-5 flex shrink-0 items-center justify-between border-b\">\n        <h2 className=\"typography-label-strong-md text-ws-static-strong gap-ws-5 flex items-center\">\n          <RiQuestionAnswerLine aria-hidden className=\"size-ws-9 text-ws-static-subtle\" />\n          Assistant\n        </h2>\n        <Button\n          variant=\"secondary\"\n          preset=\"border\"\n          size=\"sm\"\n          disabled={turns.length === 0}\n          onClick={() => {\n            setTurns([]);\n            setStreaming(null);\n          }}\n        >\n          <Button.Icon icon={RiChatNewLine} />\n          New conversation\n        </Button>\n      </header>\n\n      <div ref={scroller} className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n        {turns.length === 0 ? (\n          <div className=\"gap-ws-3 px-ws-11 pb-ws-9 flex h-full flex-col justify-end\">\n            <p className=\"typography-label-strong-md text-ws-static-strong\">Ask about this deal</p>\n            <p className=\"typography-body-md text-ws-static-subtle\">\n              Answers come from its e-mails, calls and notes, with the sources linked. Ask for a\n              change and it is proposed here for you to apply.\n            </p>\n          </div>\n        ) : (\n          <div\n            role=\"log\"\n            aria-label=\"Conversation\"\n            className=\"gap-ws-12 px-ws-11 py-ws-11 flex min-h-full flex-col justify-end\"\n          >\n            {turns.map((turn) => (\n              <Message\n                key={turn.id}\n                turn={turn}\n                partial={\n                  streaming?.id === turn.id\n                    ? piecesOf(turn.text).slice(0, streaming.shown).join('')\n                    : undefined\n                }\n                onApply={() => {\n                  decide(turn.id, 'applied');\n                  onApply();\n                }}\n                onDiscard={() => decide(turn.id, 'discarded')}\n                onRate={(rating) => update(turn.id, (current) => ({ ...current, rating }))}\n              />\n            ))}\n          </div>\n        )}\n      </div>\n\n      <div className=\"gap-ws-7 px-ws-11 pb-ws-11 pt-ws-5 flex shrink-0 flex-col\">\n        {!streaming && !pending && <SuggestedPrompts prompts={suggestions} onPick={ask} />}\n        <Composer streaming={Boolean(streaming)} primary={!pending} onSend={ask} onStop={stop} />\n      </div>\n    </aside>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/brand-mark.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nconst TILE =\n  'M0 16C0 8.45753 0 4.68629 2.34315 2.34315C4.68629 0 8.45753 0 16 0C23.5425 0 27.3137 0 29.6569 2.34315C32 4.68629 32 8.45753 32 16C32 23.5425 32 27.3137 29.6569 29.6569C27.3137 32 23.5425 32 16 32C8.45753 32 4.68629 32 2.34315 29.6569C0 27.3137 0 23.5425 0 16Z';\n\n/**\n * Orbit's mark: a planet and its ring on the inverse tile, so it inverts in dark mode. It takes\n * the size of its place (32px in a sidebar, 36px in a larger switcher). Decorative beside the\n * product's name; give it a `label` when it stands alone.\n */\nexport function BrandMark({ className, label }: { className?: string; label?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      role={label ? 'img' : undefined}\n      aria-label={label}\n      aria-hidden={label ? undefined : true}\n      className={cn('size-ws-14 shrink-0', className)}\n    >\n      <path d={TILE} className=\"fill-(--ws-static-fill-inverse-background)\" />\n      <ellipse\n        cx=\"16\"\n        cy=\"16\"\n        rx=\"10.5\"\n        ry=\"4\"\n        transform=\"rotate(-28 16 16)\"\n        strokeWidth=\"1.75\"\n        className=\"fill-none stroke-(--ws-static-text-inverse-strong)\"\n      />\n      <circle cx=\"16\" cy=\"16\" r=\"4.75\" className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/composer.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/composer.tsx",
      "content": "'use client';\n\n// TODO(custom): assistant composer (text and actions in one field frame); Textarea has no ghost preset and no slot for actions inside its frame.\nimport { RiArrowUpLine, RiStopFill } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { type FormEvent, type KeyboardEvent, useRef, useState } from 'react';\n\ntype ComposerProps = {\n  /** An answer is streaming in: the field waits and Send becomes Stop. */\n  streaming: boolean;\n  /** Whether Send is the screen's one filled button (not while a change waits to be applied). */\n  primary: boolean;\n  onSend: (text: string) => void;\n  onStop: () => void;\n};\n\n/**\n * Where Maya asks: the question and Send in one frame drawn as a Wideset field, as in the chat\n * block. It grows with the text up to a few lines. Enter sends, Shift + Enter starts a new line.\n * While an answer streams in, Send turns into Stop, which keeps what is written so far.\n */\nexport function Composer({ streaming, primary, onSend, onStop }: ComposerProps) {\n  const [draft, setDraft] = useState('');\n  const field = useRef<HTMLTextAreaElement>(null);\n\n  const send = (event: FormEvent | KeyboardEvent) => {\n    event.preventDefault();\n    const text = draft.trim();\n    // Nothing to send, or an answer still coming: keep the cursor where the question goes.\n    if (!text || streaming) return field.current?.focus();\n    onSend(text);\n    setDraft('');\n  };\n\n  return (\n    <form\n      onSubmit={send}\n      aria-label=\"Ask the assistant\"\n      className=\"bg-ws-static-highlight-base border-ws-dynamic-secondary-default rounded-ws-container-sm hover:not-has-[textarea:focus]:border-ws-dynamic-secondary-hover has-[textarea:focus]:border-ws-dynamic-primary-strong-default has-[textarea:focus]:shadow-ws-forms-active flex flex-col border\"\n    >\n      <textarea\n        ref={field}\n        aria-label=\"Question\"\n        placeholder=\"Ask about this deal\"\n        value={draft}\n        onChange={(event) => setDraft(event.target.value)}\n        onKeyDown={(event) => {\n          // Shift + Enter keeps the browser's new line; Enter that confirms an IME word is not a send.\n          if (event.key === 'Enter' && !event.shiftKey && !event.nativeEvent.isComposing) {\n            send(event);\n          }\n        }}\n        className=\"typography-body-md text-ws-static-strong placeholder:text-ws-static-subtle px-ws-9 pt-ws-7 pb-ws-3 min-h-ws-18 max-h-ws-28 block field-sizing-content w-full resize-none bg-transparent outline-hidden\"\n      />\n      <div className=\"px-ws-5 pb-ws-5 flex justify-end\">\n        {streaming ? (\n          <Button variant=\"secondary\" preset=\"border\" size=\"sm\" onClick={onStop}>\n            <Button.Icon icon={RiStopFill} />\n            Stop\n          </Button>\n        ) : (\n          <IconButton\n            type=\"submit\"\n            icon={RiArrowUpLine}\n            variant={primary ? 'primary' : 'secondary'}\n            preset={primary ? 'filled' : 'border'}\n            size=\"sm\"\n            aria-label=\"Send\"\n          />\n        )}\n      </div>\n    </form>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinFill,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\n/*\n  Tuesday 10 November 2026, early afternoon. Maya has the Halcyon Freight renewal open after this\n  morning's call and asks Orbit's assistant about it. The facts are the ones the inbox, chat and\n  home blocks tell: Ingrid Solberg needs the revised quote by noon tomorrow for her finance\n  committee on Thursday at 10:00; two years at 8 percent under list, 12 dispatcher seats from\n  January 1, their $1,800 onboarding fee waived after Tom's margin check and Priya's approval.\n  On the call Ingrid said she can countersign on Friday, so the deal can close on November 13.\n*/\n\n/** The product is Orbit; the workspace using it is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = { name: 'Maya Okafor', email: 'maya@lumenstudio.co', initials: 'MO' };\n\n/** \"Now\" on the page (local time): the afternoon after the call. */\nexport const NOW = '2026-11-10T14:40';\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine, activeIcon: RiHandCoinFill },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n];\n\nexport const settingsLinks: NavLink[] = [\n  { id: 'general', label: 'General', icon: RiSettings3Line },\n  { id: 'members', label: 'Members', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'integrations', label: 'Integrations', icon: RiPlugLine },\n  { id: 'api-keys', label: 'API keys', icon: RiKey2Line },\n];\n\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\nexport type Person = { name: string; initials: string; color: AvatarColor };\n\nexport const maya: Person = { name: account.name, initials: account.initials, color: 'orange' };\nconst ingrid: Person = { name: 'Ingrid Solberg', initials: 'IS', color: 'teal' };\nconst priya: Person = { name: 'Priya Raman', initials: 'PR', color: 'purple' };\nconst tom: Person = { name: 'Tom Becker', initials: 'TB', color: 'green' };\n\nexport type NextStep = { id: string; title: string; /** Calendar day. */ due: string };\n\nexport type Activity = {\n  id: string;\n  kind: 'call' | 'email' | 'note' | 'change';\n  actor: Person;\n  /** What they did, read after the actor's name. */\n  action: string;\n  /** Local date and time. */\n  at: string;\n};\n\nexport type Deal = {\n  id: string;\n  name: string;\n  customer: string;\n  contact: Person;\n  stage: string;\n  amount: number;\n  /** Calendar day. */\n  closeDate: string;\n  owner: Person;\n  /** What the deal is: the terms the quote carries and who decides. */\n  facts: { label: string; value: string }[];\n  nextSteps: NextStep[];\n  /** Newest first. */\n  activity: Activity[];\n};\n\n/** The deal as the page opens, before the assistant's change. */\nexport const deal: Deal = {\n  id: 'halcyon-renewal',\n  name: 'Halcyon Freight renewal',\n  customer: 'Halcyon Freight',\n  contact: ingrid,\n  stage: 'Negotiation',\n  amount: 24_000,\n  closeDate: '2026-11-30',\n  owner: maya,\n  facts: [\n    { label: 'Term', value: 'Two years, from January 1, 2027' },\n    { label: 'Seats', value: '120, plus 12 dispatcher seats from January 1' },\n    { label: 'Price', value: '8% under list, approved by Priya Raman' },\n    { label: 'Onboarding fee', value: 'Waived for the new seats ($1,800)' },\n    { label: 'Decision', value: 'Finance committee, Nov 12 at 10:00 AM' },\n  ],\n  nextSteps: [{ id: 'quote', title: 'Send the revised quote to Ingrid', due: '2026-11-11' }],\n  activity: [\n    {\n      id: 'call',\n      kind: 'call',\n      actor: maya,\n      action: 'logged the renewal call with Ingrid Solberg and Dana Whitfield',\n      at: '2026-11-10T11:46',\n    },\n    {\n      id: 'approval',\n      kind: 'note',\n      actor: priya,\n      action: 'approved waiving the onboarding fee',\n      at: '2026-11-10T08:58',\n    },\n    {\n      id: 'email',\n      kind: 'email',\n      actor: ingrid,\n      action: 'wrote about the revised quote for the 2027 renewal',\n      at: '2026-11-10T08:47',\n    },\n    {\n      id: 'margin',\n      kind: 'note',\n      actor: tom,\n      action: 'added the margin check for both scenarios',\n      at: '2026-11-10T08:31',\n    },\n  ],\n};\n\nexport type Source = {\n  id: string;\n  kind: 'email' | 'call' | 'note';\n  /** Short, as the chip reads: whose and when. */\n  label: string;\n  href: string;\n};\n\nconst sources = {\n  email: {\n    id: 'email',\n    kind: 'email',\n    label: 'Ingrid’s e-mail, Nov 10',\n    href: '#inbox/halcyon-quote',\n  },\n  call: {\n    id: 'call',\n    kind: 'call',\n    label: 'Renewal call, Nov 10',\n    href: '#recordings/halcyon-renewal-call',\n  },\n  note: {\n    id: 'note',\n    kind: 'note',\n    label: 'Tom’s margin note',\n    href: '#deals/halcyon-renewal/notes/margin',\n  },\n} satisfies Record<string, Source>;\n\n/** One field the assistant proposes to change: from what (none for a new entry) to what. */\nexport type FieldChange = { field: string; from?: string; to: string };\n\nexport type Change = {\n  fields: FieldChange[];\n  status: 'pending' | 'applied' | 'discarded';\n};\n\nexport type Turn =\n  | { id: string; role: 'user'; text: string }\n  | {\n      id: string;\n      role: 'assistant';\n      text: string;\n      sources?: Source[];\n      change?: Change;\n      rating?: 'up' | 'down';\n      /** Stopped before the answer was complete. */\n      stopped?: boolean;\n    };\n\n/** The step the change adds, as it lands on the deal. */\nexport const proposedStep: NextStep = {\n  id: 'committee',\n  title: 'Call Ingrid after the finance committee',\n  due: '2026-11-12',\n};\nexport const proposedCloseDate = '2026-11-13';\n\n/**\n * The conversation as the page opens: one answer read, one change waiting. Short enough that\n * every message shows whole above the composer at 1440×960.\n */\nexport const conversation: Turn[] = [\n  { id: 'q1', role: 'user', text: 'Where does the Halcyon renewal stand?' },\n  {\n    id: 'a1',\n    role: 'assistant',\n    text: 'Ingrid needs the revised quote by noon tomorrow for Thursday’s finance committee. It is ready to go, with the $1,800 onboarding fee waived.',\n    sources: [sources.email, sources.call],\n    rating: 'up',\n  },\n  { id: 'q2', role: 'user', text: 'Update the close date and add the next step' },\n  {\n    id: 'a2',\n    role: 'assistant',\n    text: 'Ingrid said she can countersign on Friday if the committee approves on Thursday, so the deal can close on November 13. Here is the change:',\n    sources: [sources.call],\n    change: {\n      status: 'pending',\n      fields: [\n        { field: 'Close date', from: 'Nov 30, 2026', to: 'Nov 13, 2026' },\n        { field: 'Next step', to: `${proposedStep.title}, Nov 12` },\n      ],\n    },\n  },\n];\n\n/** Three short prompts above the composer when the conversation is empty or has ended. */\nexport const suggestions = ['Summarise the call', 'Draft a reply', 'What is left?'];\n\n/** What the assistant answers, by prompt; anything else gets `fallback`. */\nexport const answers: Record<string, { text: string; sources: Source[] }> = {\n  'Summarise the call': {\n    text: 'Ingrid and Dana confirmed the terms in the revised quote: two years at 8% under list, 12 dispatcher seats from January 1, and no onboarding fee for them. Dana asked for the new seats to be ready in December so the dispatchers can train first, and Jonas said that works.\\n\\nIngrid takes the quote to the finance committee on Thursday at 10:00.',\n    sources: [sources.call],\n  },\n  'Draft a reply': {\n    text: 'Here is a draft:\\n\\nHi Ingrid, thank you for the call this morning. The revised quote is attached: two years at 8% under list, the 12 dispatcher seats from January 1, and no onboarding fee for them. We will open the new seats on December 1 so Dana’s team can train first. I will call you after the committee on Thursday.\\n\\nBest, Maya',\n    sources: [sources.email, sources.call],\n  },\n  'What is left?': {\n    text: 'Two things. The revised quote has not gone out yet, and Ingrid needs it by noon tomorrow. The December setup for the new seats also needs a date from Jonas before the quote says so.',\n    sources: [sources.email, sources.call],\n  },\n};\n\nexport const fallback = {\n  text: 'I answer from this deal’s e-mails, calls and notes, and I can propose changes to its fields. I found nothing on that in this deal yet.',\n  sources: [] as Source[],\n};\n"
    },
    {
      "path": "src/blocks/assistant/facts-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/facts-list.tsx",
      "content": "'use client';\n\n// TODO(custom): key-value facts list; no DescriptionList in Wideset.\n\n/** The deal's key facts as label and value: the label names, the value is what is read. */\nexport function FactsList({ facts }: { facts: { label: string; value: string }[] }) {\n  return (\n    <dl className=\"gap-x-ws-9 gap-y-ws-7 grid grid-cols-[8rem_minmax(0,1fr)]\">\n      {facts.map(({ label, value }) => (\n        <div key={label} className=\"col-span-2 grid grid-cols-subgrid items-baseline\">\n          <dt className=\"typography-label-sm text-ws-static-subtle\">{label}</dt>\n          <dd className=\"typography-body-md text-ws-static-base min-w-0\">{value}</dd>\n        </div>\n      ))}\n    </dl>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/format.ts",
      "content": "// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\n\nconst usd = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: 'USD',\n  maximumFractionDigits: 0,\n});\n// Days are calendar days (`2026-11-30`), parsed as UTC midnight: format them in UTC too.\nconst day = new Intl.DateTimeFormat(LOCALE, {\n  month: 'short',\n  day: 'numeric',\n  year: 'numeric',\n  timeZone: 'UTC',\n});\nconst time = new Intl.DateTimeFormat(LOCALE, { hour: 'numeric', minute: '2-digit' });\nconst dateTime = new Intl.DateTimeFormat(LOCALE, { dateStyle: 'medium', timeStyle: 'short' });\n\nexport const formatUsd = (value: number) => usd.format(value);\n/** A calendar day: \"Nov 13, 2026\". */\nexport const formatDay = (iso: string) => day.format(new Date(iso));\n/** When something happened today: \"11:46 AM\"; the full moment goes in its `title`. */\nexport const formatTime = (iso: string) => time.format(new Date(iso));\nexport const formatDateTime = (iso: string) => dateTime.format(new Date(iso));\n"
    },
    {
      "path": "src/blocks/assistant/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { useId, useState } from 'react';\n\nimport { ActivityTimeline } from './activity-timeline';\nimport { AssistantPanel } from './assistant-panel';\nimport { deal, maya, NOW, proposedCloseDate, proposedStep } from './data';\nimport { FactsList } from './facts-list';\nimport { formatDay, formatUsd } from './format';\nimport { KeyValue } from './key-value';\nimport { NextSteps } from './next-steps';\nimport { PersonAvatar } from './person-avatar';\nimport { RecordHeader } from './record-header';\nimport { Section } from './section';\nimport { AssistantSidebar } from './sidebar';\n\n/**\n * The record's column: the canonical one, but 60rem wide, not 80rem, since the 26rem assistant\n * card already takes the rest of the window and a wider record would only stretch its lines.\n */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[60rem]';\n\n/**\n * Assistant (Inset direction): the Halcyon Freight renewal deal on the raised page beside the\n * workspace sidebar, with Orbit's assistant in a second raised card, 26rem, beside it on the same\n * grey frame. The record is the context, drawn plainly: its figures, key facts, next steps and\n * activity. The assistant is the subject: it answers with its sources and proposes changes, and\n * applying one writes it to the record on the left and logs it in the activity.\n */\nexport default function Assistant() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const [record, setRecord] = useState(deal);\n\n  const apply = () =>\n    setRecord((current) => ({\n      ...current,\n      closeDate: proposedCloseDate,\n      nextSteps: [...current.nextSteps, proposedStep],\n      activity: [\n        {\n          id: 'assistant-change',\n          kind: 'change',\n          actor: maya,\n          action: 'changed the close date and added a next step, from the assistant',\n          at: NOW,\n        },\n        ...current.activity,\n      ],\n    }));\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <AssistantSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n      <AppShell.Main>\n        <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n          {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow it. */}\n          <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n            <IconButton\n              icon={RiSideBarLine}\n              variant=\"secondary\"\n              preset=\"ghost\"\n              size=\"sm\"\n              iconClassName=\"text-ws-static-subtle size-ws-9\"\n              aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n              aria-expanded={!collapsed}\n              aria-controls={sidebarId}\n              onClick={() => setCollapsed(!collapsed)}\n              className=\"-ml-ws-5\"\n            />\n            <Breadcrumbs separator=\"arrow\">\n              <Breadcrumbs.Item asChild>\n                <a href=\"#deals\">Deals</a>\n              </Breadcrumbs.Item>\n              <Breadcrumbs.Item>{record.name}</Breadcrumbs.Item>\n            </Breadcrumbs>\n          </div>\n        </div>\n\n        {/* The record scrolls inside its card; the assistant's card keeps its composer in reach. */}\n        <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n          <div className={cn(COLUMN, 'gap-ws-14 pt-ws-14 pb-ws-16 flex flex-col')}>\n            <RecordHeader />\n\n            <dl className=\"gap-ws-9 grid grid-cols-4\">\n              <KeyValue label=\"Stage\">{record.stage}</KeyValue>\n              <KeyValue label=\"Amount\">{formatUsd(record.amount)}</KeyValue>\n              <KeyValue label=\"Close date\">{formatDay(record.closeDate)}</KeyValue>\n              <KeyValue label=\"Owner\">\n                <span className=\"gap-ws-5 flex items-center\">\n                  <PersonAvatar\n                    size=\"xs\"\n                    name={record.owner.name}\n                    initials={record.owner.initials}\n                    color={record.owner.color}\n                  />\n                  {record.owner.name}\n                </span>\n              </KeyValue>\n            </dl>\n\n            <Section title=\"Key facts\">\n              <FactsList facts={record.facts} />\n            </Section>\n\n            <Section title=\"Next steps\">\n              <NextSteps steps={record.nextSteps} />\n            </Section>\n\n            <Section title=\"Activity\">\n              <ActivityTimeline items={record.activity} />\n            </Section>\n          </div>\n        </div>\n      </AppShell.Main>\n\n      <AssistantPanel onApply={apply} />\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/key-value.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/key-value.tsx",
      "content": "'use client';\n\n// TODO(custom): key-value pair (label above value); no DescriptionList in Wideset.\nimport type { ReactNode } from 'react';\n\n/** A fact: its label above its value. Render inside a `dl`. */\nexport function KeyValue({ label, children }: { label: string; children: ReactNode }) {\n  return (\n    <div className=\"gap-ws-3 flex min-w-0 flex-col\">\n      <dt className=\"typography-label-sm text-ws-static-subtle\">{label}</dt>\n      <dd className=\"typography-body-md text-ws-static-base tabular-nums\">{children}</dd>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/message.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/message.tsx",
      "content": "'use client';\n\n// TODO(custom): a message row in the assistant's conversation (mark, name, text, then what the answer carries); Wideset has no message component.\nimport { RiQuestionAnswerLine } from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\n\nimport { AnswerFeedback } from './answer-feedback';\nimport { maya, type Turn } from './data';\nimport { PersonAvatar } from './person-avatar';\nimport { ProposedChange } from './proposed-change';\nimport { SourceLinks } from './source-links';\n\ntype MessageProps = {\n  turn: Turn;\n  /** While the answer streams in: the part of its text written so far. */\n  partial?: string;\n  onApply: () => void;\n  onDiscard: () => void;\n  onRate: (rating?: 'up' | 'down') => void;\n};\n\n/**\n * One turn of the conversation as a row on the page, as the chat block draws messages: the mark\n * and the name, the text under them. Maya is her avatar; the assistant is its name and a small\n * neutral icon, no orb and no colour. Once an answer is complete it shows where it comes from,\n * the change it proposes, if any, and a quiet rating; until then only its words.\n */\nexport function Message({ turn, partial, onApply, onDiscard, onRate }: MessageProps) {\n  const assistant = turn.role === 'assistant';\n  const done = partial === undefined;\n\n  return (\n    <article\n      aria-label={assistant ? 'Assistant' : maya.name}\n      aria-busy={!done}\n      className=\"gap-ws-7 flex\"\n    >\n      {assistant ? (\n        <Avatar icon={<RiQuestionAnswerLine />} aria-hidden />\n      ) : (\n        <PersonAvatar name={maya.name} initials={maya.initials} color={maya.color} aria-hidden />\n      )}\n      <div className=\"gap-ws-7 flex min-w-0 flex-1 flex-col\">\n        <div className=\"flex flex-col\">\n          <p className=\"typography-label-strong-sm text-ws-static-strong\">\n            {assistant ? 'Assistant' : maya.name}\n          </p>\n          <p className=\"typography-body-md text-ws-static-base whitespace-pre-line\">\n            {partial ?? turn.text}\n          </p>\n          {assistant && turn.stopped && (\n            <p className=\"typography-caption-md text-ws-static-subtle mt-ws-3\">Stopped</p>\n          )}\n        </div>\n        {assistant && done && (\n          <>\n            {turn.sources && turn.sources.length > 0 && <SourceLinks sources={turn.sources} />}\n            {turn.change && (\n              <ProposedChange change={turn.change} onApply={onApply} onDiscard={onDiscard} />\n            )}\n            <AnswerFeedback rating={turn.rating} onRate={onRate} />\n          </>\n        )}\n      </div>\n    </article>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/next-steps.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/next-steps.tsx",
      "content": "'use client';\n\n// TODO(custom): next steps as checklist rows (a checkbox, the step, its day); Wideset has no checklist or task row.\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { cn } from '@/lib/wideset/utils';\nimport { useId, useState } from 'react';\n\nimport type { NextStep } from './data';\nimport { formatDay } from './format';\n\n/**\n * What happens next on the deal, soonest first. A row does one thing, so the whole row is its\n * checkbox's label; ticked, the step goes quiet and struck through.\n */\nexport function NextSteps({ steps }: { steps: NextStep[] }) {\n  const id = useId();\n  const [done, setDone] = useState<string[]>([]);\n\n  return (\n    <ul className=\"border-ws-static-base border-t\">\n      {steps.map((step) => {\n        const isDone = done.includes(step.id);\n        const checkboxId = `${id}-${step.id}`;\n        return (\n          <li key={step.id} className=\"border-ws-static-base border-b\">\n            <label\n              htmlFor={checkboxId}\n              className=\"h-ws-17 gap-ws-7 px-ws-5 hover:bg-ws-dynamic-secondary-alpha-hover flex cursor-pointer items-center\"\n            >\n              <Checkbox\n                id={checkboxId}\n                checked={isDone}\n                onCheckedChange={(checked) =>\n                  setDone((current) =>\n                    checked === true\n                      ? [...current, step.id]\n                      : current.filter((item) => item !== step.id),\n                  )\n                }\n                aria-labelledby={`${checkboxId}-title`}\n              />\n              <span\n                id={`${checkboxId}-title`}\n                className={cn(\n                  'min-w-0 flex-1 truncate',\n                  isDone\n                    ? 'typography-label-sm text-ws-static-subtle line-through'\n                    : 'typography-label-sm text-ws-static-strong',\n                )}\n              >\n                {step.title}\n              </span>\n              <span className=\"typography-label-sm text-ws-static-subtle shrink-0 tabular-nums\">\n                {formatDay(step.due)}\n              </span>\n            </label>\n          </li>\n        );\n      })}\n    </ul>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Okafor':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAAB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BlJGS44kY+ZoHllRI+BzSo4c2JV91Vbo6BkIeQ4v5BQp9guPHMV6taLs8aHo602p5ht2OzFbaKFoBBASBuDW2dBWF0YQwtkfBtZwPrXQtSAmG0nGAEiukgY6GmfDHJ32gp2TyRH4HELhx9CWKOc9i45/cs4+1d2OxHhMhmIw2y2PyoSBR52q3WlHDHH3GgJpJ5Je+4lUDVwnnOKIJrI0nl3qVRLXS0CpWR0GKbLiJYW4TzdwYQEpdVyOhP8AV3H7U6WAOf8AuNcPVVv9oWSWyBlRQVJ+Y3H6ULhkKx4VbNW0yQHTOD6H/ZX/2Q==',\n};\n"
    },
    {
      "path": "src/blocks/assistant/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/person-avatar.tsx",
      "content": "'use client';\n\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { type AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\nimport { type AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'className' | 'style' | 'title' | 'aria-hidden' | 'aria-label'\n> & {\n  /** The person's full name: the key their photo is filed under. */\n  name: string;\n  initials: string;\n  /** The colour of the initials. A photo takes none. */\n  color?: AvatarColor;\n  /** Empty beside the person's name (the default); their name when the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when they have one, their initials when not. The choice lives\n * here so every place the block draws a person mixes the two the same way. The rest of the props\n * go to the `Avatar`, so it also sits in an `Avatar.Group`.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...avatar }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...avatar} />\n  ) : (\n    <Avatar initials={initials} color={color} {...avatar} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/proposed-change.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/proposed-change.tsx",
      "content": "'use client';\n\n// TODO(custom): a proposed change as a small diff of fields (the old value struck through, the new one beside it); Wideset has no diff.\nimport { RiArrowRightLine, RiCheckLine, RiCloseLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Card } from '@/components/ui/wideset/card/Card';\n\nimport type { Change } from './data';\n\ntype ProposedChangeProps = {\n  change: Change;\n  onApply: () => void;\n  onDiscard: () => void;\n};\n\n/**\n * A change the assistant proposes to the record, which nothing touches until Maya applies it:\n * each field with its old value struck through and the new one after it (a new entry has only\n * the new value). While it waits, Apply is the screen's one filled button and Discard sits\n * beside it; once decided, a quiet line says which, and the diff stays as the record of it.\n */\nexport function ProposedChange({ change, onApply, onDiscard }: ProposedChangeProps) {\n  return (\n    <Card>\n      <Card.Content contentClassName=\"pr-ws-6\">\n        <dl className=\"gap-ws-7 flex flex-col\">\n          {change.fields.map(({ field, from, to }) => (\n            <div key={field} className=\"gap-ws-2 flex flex-col\">\n              <dt className=\"typography-label-sm text-ws-static-subtle\">{field}</dt>\n              <dd className=\"typography-body-md gap-x-ws-5 flex flex-wrap items-center text-pretty\">\n                {from && (\n                  <>\n                    <del className=\"text-ws-static-subtle tabular-nums\">{from}</del>\n                    <RiArrowRightLine\n                      aria-label=\"changes to\"\n                      role=\"img\"\n                      className=\"size-ws-8 text-ws-static-subtle shrink-0\"\n                    />\n                  </>\n                )}\n                <ins className=\"text-ws-static-strong tabular-nums no-underline\">{to}</ins>\n              </dd>\n            </div>\n          ))}\n        </dl>\n      </Card.Content>\n      <Card.Footer className=\"gap-ws-5 items-center justify-end\">\n        {change.status === 'pending' ? (\n          <>\n            <Button variant=\"secondary\" preset=\"ghost\" size=\"sm\" onClick={onDiscard}>\n              Discard\n            </Button>\n            <Button size=\"sm\" onClick={onApply}>\n              Apply\n            </Button>\n          </>\n        ) : (\n          <p\n            role=\"status\"\n            className=\"typography-label-sm text-ws-static-subtle gap-ws-3 mr-auto flex items-center\"\n          >\n            {change.status === 'applied' ? (\n              <>\n                <RiCheckLine aria-hidden className=\"size-ws-9\" />\n                Applied to the deal\n              </>\n            ) : (\n              <>\n                <RiCloseLine aria-hidden className=\"size-ws-9\" />\n                Discarded\n              </>\n            )}\n          </p>\n        )}\n      </Card.Footer>\n    </Card>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/record-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/record-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of facts, the actions on the right); no PageHeader in Wideset.\nimport {\n  type RemixiconComponentType,\n  RiDeleteBinLine,\n  RiEditLine,\n  RiLinkM,\n  RiMoreFill,\n  RiPhoneLine,\n} from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\n\nimport { deal } from './data';\n\nconst MENU: { label: string; icon: RemixiconComponentType }[] = [\n  { label: 'Log a call', icon: RiPhoneLine },\n  { label: 'Copy link', icon: RiLinkM },\n];\n\n/** The dot between two facts on the header's line. */\nfunction Dot() {\n  return (\n    <span aria-hidden=\"true\" className=\"text-ws-static-subtle\">\n      {'·'}\n    </span>\n  );\n}\n\n/**\n * The deal's header: its name, then whose it is and who to talk to, and on the right what to do\n * with it. Nothing here is filled or in the brand colour: those belong to the assistant's action.\n */\nexport function RecordHeader() {\n  return (\n    <header className=\"gap-ws-12 flex flex-wrap items-center justify-between\">\n      <div className=\"gap-ws-2 flex min-w-0 flex-col\">\n        <h1 className=\"typography-title-sm text-ws-static-strong\">{deal.name}</h1>\n        <p className=\"typography-body-md text-ws-static-subtle gap-ws-5 flex flex-wrap items-center\">\n          <span>{deal.customer}</span>\n          <Dot />\n          <span>Contact {deal.contact.name}</span>\n        </p>\n      </div>\n\n      <div className=\"gap-ws-5 flex items-center\">\n        <DropdownMenu>\n          <DropdownMenu.Trigger asChild>\n            <IconButton\n              icon={RiMoreFill}\n              variant=\"secondary\"\n              preset=\"border\"\n              size=\"sm\"\n              aria-label=\"More actions\"\n            />\n          </DropdownMenu.Trigger>\n          <DropdownMenu.Content align=\"end\" className=\"ws-block-utility w-[14rem]\">\n            {MENU.map(({ label, icon: Icon }) => (\n              <DropdownMenu.Item key={label}>\n                <ListItem.Prefix>\n                  <Icon className=\"size-ws-9\" />\n                </ListItem.Prefix>\n                <ListItem.Content>\n                  <ListItem.Label>{label}</ListItem.Label>\n                </ListItem.Content>\n              </DropdownMenu.Item>\n            ))}\n            <DropdownMenu.Separator />\n            <DropdownMenu.Item variant=\"danger\">\n              <ListItem.Prefix>\n                <RiDeleteBinLine className=\"size-ws-9\" />\n              </ListItem.Prefix>\n              <ListItem.Content>\n                <ListItem.Label>Delete deal</ListItem.Label>\n              </ListItem.Content>\n            </DropdownMenu.Item>\n          </DropdownMenu.Content>\n        </DropdownMenu>\n        <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n          <Button.Icon icon={RiEditLine} />\n          Edit\n        </Button>\n      </div>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/section.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/section.tsx",
      "content": "'use client';\n\n// TODO(custom): section title above its content; Wideset has no Section or PageSection.\nimport { type ReactNode, useId } from 'react';\n\n/** One part of the record: a 16px title, then what it holds. The title names the region. */\nexport function Section({ title, children }: { title: string; children: ReactNode }) {\n  const id = useId();\n\n  return (\n    <section aria-labelledby={id} className=\"gap-ws-7 flex flex-col\">\n      <h2 id={id} className=\"typography-label-strong-md text-ws-static-strong\">\n        {title}\n      </h2>\n      {children}\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiLogoutBoxRLine,\n  RiSearchLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { type SidebarProps } from '@/components/ui/wideset/sidebar/Sidebar.types';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  workspace,\n} from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The workspace sidebar: switcher, search, the app's pages, settings and the signed-in account.\n * Its toggle sits in the page bar, so the screen holds `collapsed` and passes it down; collapsed,\n * it keeps the mark, the page icons and the avatar.\n */\nexport function AssistantSidebar(\n  props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>,\n) {\n  const [active, setActive] = useState('deals');\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Workspace\" className=\"gap-ws-9 flex flex-col\">\n      <div className=\"flex flex-col\">{mainLinks.map(link)}</div>\n      <Divider weight=\"thin\" />\n      <div role=\"group\" aria-labelledby=\"sidebar-settings\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-settings\">Settings</Sidebar.SectionHeader>\n        {settingsLinks.map(link)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar {...props}>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-9 flex flex-col\">\n            <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n              <BrandMark className=\"size-ws-15\" />\n              <div className=\"flex min-w-0 flex-1 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {workspace.name}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {product.name}\n                </span>\n              </div>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <IconButton\n                    icon={RiArrowDownSLine}\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    size=\"xs\"\n                    aria-label=\"Switch workspace\"\n                    className=\"mr-ws-3\"\n                  />\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                  <DropdownMenu.Item data-state=\"checked\">\n                    <ListItem.Content>\n                      <ListItem.Label>{workspace.name}</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiAddLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>New workspace</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </div>\n            <TextInput size=\"sm\">\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n            </TextInput>\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"pt-ws-3 pb-ws-7 flex justify-center\">\n            <BrandMark className=\"size-ws-15\" />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      {/* A section draws only the slot for the state it is in, so the pages go in both. */}\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"flex flex-col\">{link(helpLink)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <Sidebar.Expanded>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <button\n                    type=\"button\"\n                    className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                  >\n                    <PersonAvatar name={account.name} initials={account.initials} color=\"orange\" />\n                    <span className=\"flex min-w-0 flex-1 flex-col\">\n                      <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                        {account.name}\n                      </span>\n                      <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                        {account.email}\n                      </span>\n                    </span>\n                    <RiArrowDownSLine\n                      aria-hidden=\"true\"\n                      className=\"size-ws-9 text-ws-static-strong\"\n                    />\n                  </button>\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiSettingsLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Account settings</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <ListItem.Prefix>\n                      <RiLogoutBoxRLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Log out</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color=\"orange\"\n                  title={account.name}\n                  alt={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/source-links.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/source-links.tsx",
      "content": "'use client';\n\nimport {\n  type RemixiconComponentType,\n  RiMailLine,\n  RiRecordCircleLine,\n  RiStickyNoteLine,\n} from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\n\nimport type { Source } from './data';\n\nconst ICON: Record<Source['kind'], RemixiconComponentType> = {\n  email: RiMailLine,\n  call: RiRecordCircleLine,\n  note: RiStickyNoteLine,\n};\n\n/**\n * Where an answer comes from, as small links under it: an e-mail, a call recording, a note, each\n * named by whose and when, each opening its source. They are quiet bordered xs buttons on\n * links, since Chip is a button and cannot be a link.\n */\nexport function SourceLinks({ sources }: { sources: Source[] }) {\n  return (\n    <ul aria-label=\"Sources\" className=\"gap-ws-3 flex flex-wrap\">\n      {sources.map((source) => (\n        <li key={source.id}>\n          <Button asChild variant=\"secondary\" preset=\"border\" size=\"xs\">\n            <a href={source.href}>\n              <Button.Icon icon={ICON[source.kind]} />\n              {source.label}\n            </a>\n          </Button>\n        </li>\n      ))}\n    </ul>\n  );\n}\n"
    },
    {
      "path": "src/blocks/assistant/suggested-prompts.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/assistant/suggested-prompts.tsx",
      "content": "'use client';\n\nimport { Chip } from '@/components/ui/wideset/chip/Chip';\n\n/**\n * Three short things to ask, above the composer when the conversation is empty or has come to an\n * end: one press asks it. They are suggestions, so quiet bordered chips.\n */\nexport function SuggestedPrompts({\n  prompts,\n  onPick,\n}: {\n  prompts: string[];\n  onPick: (prompt: string) => void;\n}) {\n  return (\n    <div role=\"group\" aria-label=\"Suggested questions\" className=\"gap-ws-3 flex flex-wrap\">\n      {prompts.map((prompt) => (\n        <Chip key={prompt} variant=\"secondary\" style=\"border\">\n          <Chip.Action onClick={() => onPick(prompt)}>\n            <Chip.Label>{prompt}</Chip.Label>\n          </Chip.Action>\n        </Chip>\n      ))}\n    </div>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
