{"version":3,"file":"AIReasoning.mjs","names":[],"sources":["../../../../../src/plugins/AIComponents/Reasoning/AIReasoning.tsx"],"sourcesContent":["import React, { memo, type ReactNode, useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useTranslationContext } from '../../../context/TranslationContext';\nimport { useComponentContextIcons } from '../../../context/useComponentContextIcons';\nimport { useStableId } from '../../../components/UtilityComponents/useStableId';\nimport { AIMarkdown } from '../AIMarkdown';\nimport { IconAIReasoning } from '../icons';\nimport type { AIReasoningPart } from '../MessageParts/types';\nimport { formatMinutesAndSeconds, useNow } from '../utils';\nimport { FINISHED_REASONING_SHOWN_MS, useAIThinkingTurn } from './thinkingClock';\nimport { ThemeScopeProvider, useAIThemeScopeClassName } from '../themeScope';\n\n/**\n * Splits reasoning at blank lines. Reasoning only grows at its end, so a paragraph's position\n * is a stable identity.\n */\nexport const splitReasoningParagraphs = (text: string) =>\n  text\n    .split('\\n\\n')\n    .map((paragraph) => paragraph.trim())\n    .filter(Boolean);\n\n// A heading reads as a bold line, since a paragraph of thinking has no document to structure.\nconst headingsAsBold = (paragraph: string) =>\n  paragraph\n    .split('\\n')\n    .map((line) => {\n      const heading = /^ *#+\\s*(.*)$/.exec(line)?.[1]?.trim();\n      return heading ? `**${heading}**` : line;\n    })\n    .join('\\n');\n\nconst ReasoningParagraph = memo(({ text }: { text: string }) => (\n  <div className='str-chat__ai-reasoning__paragraph'>\n    <AIMarkdown>{headingsAsBold(text)}</AIMarkdown>\n  </div>\n));\nReasoningParagraph.displayName = 'ReasoningParagraph';\n\n// Reveals text that grows a little at a time, a sixth of the backlog every frame at 30 fps, as\n// new thoughts arrive about that often. Text that is replaced, or not animated, shows at once.\nconst useTextReveal = (text: string, animated: boolean) => {\n  const [shown, setShown] = useState(text);\n  const shownRef = useRef(text);\n  const targetRef = useRef(text);\n\n  useEffect(() => {\n    const grows = animated && text.startsWith(shownRef.current);\n    targetRef.current = text;\n    if (!grows) {\n      shownRef.current = text;\n      setShown(text);\n      return;\n    }\n    const timer = setInterval(() => {\n      const target = targetRef.current;\n      const current = shownRef.current;\n      if (current.length >= target.length) {\n        clearInterval(timer);\n        return;\n      }\n      let end =\n        current.length + Math.max(1, Math.floor((target.length - current.length) / 6));\n      // never split a surrogate pair\n      const code = target.charCodeAt(end - 1);\n      if (code >= 0xd800 && code <= 0xdbff) end += 1;\n      shownRef.current = target.slice(0, end);\n      setShown(shownRef.current);\n    }, 1000 / 30);\n    return () => clearInterval(timer);\n  }, [animated, text]);\n\n  return shown;\n};\n\nconst ReasoningPanel = ({\n  id,\n  isLive,\n  maxHeight,\n  text,\n}: {\n  id: string;\n  isLive: boolean;\n  maxHeight: number;\n  text: string;\n}) => {\n  const shown = useTextReveal(text, isLive);\n  const scrollerRef = useRef<HTMLDivElement>(null);\n  // Whether the reader is at the end, so new thoughts keep it there. A finished trace opens at\n  // its start.\n  const following = useRef(isLive);\n  const [overflowing, setOverflowing] = useState(false);\n\n  useEffect(() => {\n    const scroller = scrollerRef.current;\n    if (!scroller) return;\n    setOverflowing(scroller.scrollHeight > scroller.clientHeight + 1);\n    if (following.current) scroller.scrollTop = scroller.scrollHeight;\n  }, [shown]);\n\n  return (\n    <div\n      className={clsx(\n        'str-chat__ai-reasoning__scroller',\n        overflowing && 'str-chat__ai-reasoning__scroller--overflowing',\n      )}\n      id={id}\n      onScroll={(event) => {\n        const scroller = event.currentTarget;\n        following.current =\n          scroller.scrollTop + scroller.clientHeight >= scroller.scrollHeight - 24;\n      }}\n      ref={scrollerRef}\n      style={{ maxHeight }}\n      tabIndex={overflowing ? 0 : undefined}\n    >\n      {splitReasoningParagraphs(shown).map((paragraph, index) => (\n        <ReasoningParagraph key={index} text={paragraph} />\n      ))}\n    </div>\n  );\n};\n\nexport type AIReasoningProps = {\n  className?: string;\n  /** How long the model has thought, in seconds, shown as \"Thought for 12s\" once it is done. */\n  duration?: number;\n  /** A note under the open reasoning, such as how long it is kept. */\n  footnote?: ReactNode;\n  /** Whether the reasoning is open once the model is done. Defaults to `false`. */\n  initiallyExpanded?: boolean;\n  /** Whether the model is still thinking. Defaults to whether `part` is streaming. */\n  isThinking?: boolean;\n  /** How tall the reasoning grows, in pixels, before it scrolls. Defaults to 260. */\n  maxExpandedHeight?: number;\n  /** A reasoning step, whose preview, summary, status and duration it shows. */\n  part?: AIReasoningPart;\n  /**\n   * The whole of a reasoning step's thinking when the app has it, such as from live updates.\n   * Read on every render; without it, the step shows its own preview.\n   */\n  reasoningText?: (stepId: string) => string | undefined;\n  /** Whether the reasoning is open while the model thinks. Defaults to `true`. */\n  showsLiveReasoning?: boolean;\n  /** When the thinking began (`Date.now()`), for a header that counts from before it appeared. */\n  since?: number;\n  /** A one-line summary shown beside the header once the model is done. */\n  summary?: string;\n  /**\n   * The reasoning so far. Blank lines separate paragraphs, and Markdown is rendered. Defaults to\n   * `reasoningText(part.id)`, else the step's preview or summary.\n   */\n  text?: string;\n};\n\nconst opensByDefault = (\n  isThinking: boolean,\n  showsLiveReasoning: boolean,\n  initiallyExpanded: boolean,\n) => (isThinking ? showsLiveReasoning : initiallyExpanded);\n\n/**\n * A round of the model's reasoning: a header that counts the seconds while it thinks (\"Thinking…\n * 7s\") and says how long it thought once done (\"Thought for 12s\"), over the reasoning itself,\n * which streams into view while the model thinks and folds away when it is done. Clicking the\n * header opens or folds it. The counterpart of `StreamingReasoningView`.\n *\n * Inside an `AIConversation` that showed the agent thinking, the reply's first reasoning step\n * takes over that thinking: its seconds count from when the question was asked.\n */\nexport const AIReasoning = ({\n  className,\n  duration: durationProp,\n  footnote,\n  initiallyExpanded = false,\n  isThinking: isThinkingProp,\n  maxExpandedHeight = 260,\n  part,\n  reasoningText,\n  showsLiveReasoning = true,\n  since,\n  summary: summaryProp,\n  text: textProp,\n}: AIReasoningProps) => {\n  const themeScopeClassName = useAIThemeScopeClassName();\n  const { t, userLanguage } = useTranslationContext();\n  const { IconChevronRight } = useComponentContextIcons();\n  const panelId = `str-chat__ai-reasoning-${useStableId()}`;\n  const turn = useAIThinkingTurn();\n\n  const text =\n    textProp ??\n    (part ? (reasoningText?.(part.id) ?? part.preview ?? part.summary) : undefined) ??\n    '';\n  const isThinking = isThinkingProp ?? part?.status === 'streaming';\n  const ownDuration =\n    durationProp ?? (part?.durationMs !== undefined ? part.durationMs / 1000 : undefined);\n  const summary = summaryProp ?? part?.summary;\n\n  // The turn whose thinking this step takes over, when it is the first step of a turn that was\n  // seen thinking.\n  const thinkingTurn =\n    part &&\n    turn &&\n    turn.firstStepId === part.id &&\n    turn.clock.start(turn.key) !== undefined\n      ? turn\n      : undefined;\n  const clock = thinkingTurn?.clock;\n  const turnKey = thinkingTurn?.key;\n  useEffect(() => {\n    if (isThinking && clock && turnKey !== undefined) clock.firstStepStreams(turnKey);\n  }, [clock, isThinking, turnKey]);\n\n  // What the reader chose by clicking the header. Until they do, the reasoning is open while\n  // the model thinks and folded once it is done.\n  const [choice, setChoice] = useState<boolean | null>(null);\n  const [open, setOpen] = useState(() =>\n    opensByDefault(isThinking, showsLiveReasoning, initiallyExpanded),\n  );\n  const [thinkingSince, setThinkingSince] = useState(() => since ?? Date.now());\n  const [thoughtFor, setThoughtFor] = useState<number>();\n\n  // A conversation's first step that arrived done, with the answer, shows its reasoning before\n  // it folds: the model sent none of it while it thought.\n  const [showsFinished] = useState(\n    () =>\n      !isThinking &&\n      text !== '' &&\n      !!thinkingTurn &&\n      thinkingTurn.clock.showsFirstStep(thinkingTurn.key),\n  );\n  useEffect(() => {\n    if (!showsFinished) return;\n    setOpen(true);\n    const timer = setTimeout(() => setOpen(false), FINISHED_REASONING_SHOWN_MS);\n    return () => clearTimeout(timer);\n  }, [showsFinished]);\n\n  const wasThinking = useRef(isThinking);\n  useEffect(() => {\n    if (wasThinking.current === isThinking) return;\n    wasThinking.current = isThinking;\n    if (isThinking) {\n      setThinkingSince(Date.now());\n    } else {\n      if (clock && turnKey !== undefined) clock.firstStepDone(turnKey, ownDuration);\n      setThoughtFor(Math.max(ownDuration ?? 0, (Date.now() - thinkingSince) / 1000));\n    }\n    setOpen(choice ?? opensByDefault(isThinking, showsLiveReasoning, initiallyExpanded));\n  }, [\n    choice,\n    clock,\n    initiallyExpanded,\n    isThinking,\n    ownDuration,\n    showsLiveReasoning,\n    thinkingSince,\n    turnKey,\n  ]);\n\n  const start =\n    since ?? (thinkingTurn ? thinkingTurn.clock.start(thinkingTurn.key) : undefined);\n  const now = useNow(isThinking);\n  const elapsed = Math.max(ownDuration ?? 0, (now - (start ?? thinkingSince)) / 1000);\n  const measured =\n    !isThinking && thinkingTurn\n      ? thinkingTurn.clock.durationOfFirstStep(thinkingTurn.key, ownDuration)\n      : undefined;\n  const thought = measured ?? ownDuration ?? thoughtFor;\n\n  const title = isThinking\n    ? elapsed >= 1\n      ? t('aiComponents.reasoning.thinkingFor.title', 'Thinking… {{ duration }}', {\n          duration: formatMinutesAndSeconds(elapsed, userLanguage),\n        })\n      : t('aiComponents.reasoning.thinking.title', 'Thinking…')\n    : thought !== undefined\n      ? t('aiComponents.reasoning.thoughtFor.title', 'Thought for {{ duration }}', {\n          duration: formatMinutesAndSeconds(Math.max(1, thought), userLanguage),\n        })\n      : t('aiComponents.reasoning.thoughtProcess.title', 'Thought process');\n\n  // Live reasoning is open before any of it arrives, but there is nothing to show until then.\n  const expanded = open && text !== '';\n\n  return (\n    <ThemeScopeProvider>\n      <div\n        className={clsx(\n          themeScopeClassName,\n          'str-chat__ai-reasoning',\n          isThinking && 'str-chat__ai-reasoning--thinking',\n          expanded && 'str-chat__ai-reasoning--expanded',\n          className,\n        )}\n      >\n        <button\n          aria-controls={text ? panelId : undefined}\n          aria-expanded={expanded}\n          className='str-chat__ai-reasoning__header'\n          onClick={() => {\n            setChoice(!expanded);\n            setOpen(!expanded);\n          }}\n          type='button'\n        >\n          <span className='str-chat__ai-reasoning__icon'>\n            <IconAIReasoning />\n          </span>\n          <span\n            className={clsx(\n              'str-chat__ai-reasoning__title',\n              isThinking && 'str-chat__ai-shimmer',\n            )}\n          >\n            {title}\n          </span>\n          {summary && !isThinking && !expanded && (\n            <span className='str-chat__ai-reasoning__summary'>{summary}</span>\n          )}\n          <span className='str-chat__ai-reasoning__disclosure'>\n            <IconChevronRight />\n          </span>\n        </button>\n        {text !== '' && (\n          <div\n            aria-hidden={!expanded}\n            className='str-chat__ai-reasoning__fold'\n            // folding shrinks the panel in place, so what sits below glides up with it\n            data-open={expanded}\n          >\n            <div className='str-chat__ai-reasoning__fold-inner'>\n              <ReasoningPanel\n                id={panelId}\n                isLive={isThinking}\n                maxHeight={maxExpandedHeight}\n                text={text}\n              />\n              {footnote && !isThinking && (choice === true || initiallyExpanded) && (\n                <div className='str-chat__ai-reasoning__footnote'>{footnote}</div>\n              )}\n            </div>\n          </div>\n        )}\n      </div>\n    </ThemeScopeProvider>\n  );\n};\n\nexport type AIThinkingProps = {\n  className?: string;\n  /** When the thinking began (`Date.now()`). Inside an `AIConversation`, when the question was asked. */\n  since?: number;\n};\n\n/**\n * The agent thinking before its reply shows anything: a header that counts the seconds. In an\n * `AIConversation`, the reply's first reasoning step takes over its seconds. The counterpart of\n * `AIThinkingView`.\n */\nexport const AIThinking = ({ className, since }: AIThinkingProps) => {\n  const turn = useAIThinkingTurn();\n  return (\n    <AIReasoning\n      className={clsx('str-chat__ai-thinking', className)}\n      isThinking\n      since={since ?? (turn ? turn.clock.start(turn.key) : undefined)}\n      text=''\n    />\n  );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,IAAa,4BAA4B,SACvC,KACG,MAAM,MAAM,CAAC,CACb,KAAK,cAAc,UAAU,KAAK,CAAC,CAAC,CACpC,OAAO,OAAO;AAGnB,IAAM,kBAAkB,cACtB,UACG,MAAM,IAAI,CAAC,CACX,KAAK,SAAS;CACb,MAAM,UAAU,gBAAgB,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK;CACtD,OAAO,UAAU,KAAK,QAAQ,MAAM;AACtC,CAAC,CAAC,CACD,KAAK,IAAI;AAEd,IAAM,qBAAqB,MAAM,E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