{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ai-core",
  "title": "AI interface core",
  "description": "Shared motion styles and the upstream Beautiful UI MIT notice used by Beadkit's AI interface primitives.",
  "files": [
    {
      "path": "components/ai/ai-state.module.css",
      "content": ".pixel {\n  animation: beadkit-pixel-on var(--beadkit-cycle) ease-in-out\n    var(--beadkit-delay) infinite;\n}\n\n.shimmer {\n  position: relative;\n  color: var(--muted-foreground);\n}\n\n.shimmer::after {\n  position: absolute;\n  inset: 0;\n  color: transparent;\n  content: attr(data-label);\n  background-image: linear-gradient(\n    90deg,\n    var(--muted-foreground) 32%,\n    var(--foreground) 50%,\n    var(--muted-foreground) 68%\n  );\n  background-size: 200% 100%;\n  background-clip: text;\n  pointer-events: none;\n  animation: beadkit-shimmer 1.4s linear infinite;\n}\n\n.fadeUp {\n  animation: beadkit-fade-up 320ms cubic-bezier(0.23, 1, 0.32, 1) both;\n}\n\n.fadeIn {\n  animation: beadkit-fade-in 300ms ease-out both;\n}\n\n.spinner {\n  animation: beadkit-spin 700ms linear infinite;\n}\n\n.motion {\n  transition-duration: 300ms;\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n\n.disclosure {\n  margin-inline: -0.5rem;\n  padding-inline: 0.5rem;\n}\n\n.contentBorder {\n  margin-inline-start: 6px;\n  border-inline-start-width: 1px;\n  padding-inline-start: 1rem;\n}\n\n@keyframes beadkit-pixel-on {\n  0%,\n  100% {\n    opacity: 0.14;\n    transform: scale(0.86);\n  }\n  45%,\n  60% {\n    opacity: 0.92;\n    transform: scale(1);\n  }\n}\n\n@keyframes beadkit-shimmer {\n  from {\n    background-position: 100% 0;\n  }\n  to {\n    background-position: -100% 0;\n  }\n}\n\n@keyframes beadkit-fade-up {\n  from {\n    opacity: 0;\n    transform: translateY(5px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n\n@keyframes beadkit-fade-in {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n\n@keyframes beadkit-spin {\n  to {\n    transform: rotate(360deg);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .pixel,\n  .fadeUp,\n  .fadeIn,\n  .spinner {\n    animation: none;\n  }\n\n  .pixel {\n    opacity: 0.18;\n    transform: none;\n  }\n\n  .shimmer::after {\n    display: none;\n  }\n\n  .motion {\n    transition-duration: 0s;\n  }\n}\n",
      "type": "registry:style",
      "target": "@components/ai/ai-state.module.css"
    },
    {
      "path": "components/ai/BEAUTIFUL_UI_LICENSE.txt",
      "content": "Beautiful UI\nhttps://www.beautifului.dev/\n\nMIT License\n\nCopyright (c) 2026 Shane Levine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
      "type": "registry:file",
      "target": "@components/ai/BEAUTIFUL_UI_LICENSE.txt"
    },
    {
      "path": "components/ai/useReducedMotion.ts",
      "content": "\"use client\";\n\nimport { useEffect, useState } from \"react\";\n\n/** Mirrors the user preference for components whose timing is driven by React. */\nexport function useReducedMotion() {\n  const [reduced, setReduced] = useState(false);\n\n  useEffect(() => {\n    const query = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n    const update = () => setReduced(query.matches);\n    update();\n    query.addEventListener(\"change\", update);\n    return () => query.removeEventListener(\"change\", update);\n  }, []);\n\n  return reduced;\n}\n",
      "type": "registry:lib",
      "target": "@components/ai/useReducedMotion.ts"
    },
    {
      "path": "components/ai/safeExternalHref.ts",
      "content": "/**\n * Restricts agent-provided links to navigable web URLs. React escapes text,\n * but an unsafe URL scheme can still execute when a user activates an anchor.\n */\nexport function safeExternalHref(value?: string) {\n  if (!value) return undefined;\n\n  const href = value.trim();\n  try {\n    const protocol = new URL(href).protocol;\n    return protocol === \"https:\" || protocol === \"http:\" ? href : undefined;\n  } catch {\n    return undefined;\n  }\n}\n",
      "type": "registry:lib",
      "target": "@components/ai/safeExternalHref.ts"
    }
  ],
  "type": "registry:component"
}