{"$schema":"https:\/\/ui.particle.academy\/schema\/registry-item.json","name":"agent-cursor","type":"registry:ui","title":"AgentCursor","description":"In-canvas agent cursor.","package":"agent-integrations","dependencies":[],"registryDependencies":[],"files":[{"path":"components\/fancy\/agent-cursor\/AgentCursor.tsx","content":"import type { CSSProperties } from \"react\";\r\n\r\nexport type AgentCursorProps = {\r\n  x: number;\r\n  y: number;\r\n  name?: string;\r\n  color?: string;\r\n  \/** Optional caption shown under the name (e.g. current tool). *\/\r\n  status?: string;\r\n  className?: string;\r\n  style?: CSSProperties;\r\n};\r\n\r\n\/**\r\n * AgentCursor \u2014 on-canvas presence marker for the agent. Drop it inside\r\n * (or alongside) a fancy-whiteboard <Board> at screen coords matching\r\n * the agent's reported position.\r\n *\/\r\nexport function AgentCursor({ x, y, name, color = \"#a855f7\", status, className, style }: AgentCursorProps) {\r\n  return (\r\n    <div\r\n      className={[\"fai-cursor\", className ?? \"\"].filter(Boolean).join(\" \")}\r\n      style={{\r\n        position: \"absolute\",\r\n        left: x,\r\n        top: y,\r\n        pointerEvents: \"none\",\r\n        transform: \"translate(-2px, -2px)\",\r\n        ...style,\r\n      }}\r\n    >\r\n      <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" aria-hidden>\r\n        <path\r\n          d=\"M2 2 L2 17 L7 13 L10 19 L12 18 L9 12 L15 12 Z\"\r\n          fill={color}\r\n          stroke=\"white\"\r\n          strokeWidth=\"1.2\"\r\n        \/>\r\n      <\/svg>\r\n      {name && (\r\n        <span\r\n          className=\"fai-cursor__tag\"\r\n          style={{ background: color }}\r\n        >\r\n          {name}\r\n          {status ? <em className=\"fai-cursor__status\"> \u00b7 {status}<\/em> : null}\r\n        <\/span>\r\n      )}\r\n    <\/div>\r\n  );\r\n}\r\n","type":"registry:ui","target":"components\/fancy\/agent-cursor\/AgentCursor.tsx"},{"path":"components\/fancy\/agent-cursor\/index.ts","content":"export { AgentCursor } from \".\/AgentCursor\";\r\nexport type { AgentCursorProps } from \".\/AgentCursor\";\r\n","type":"registry:ui","target":"components\/fancy\/agent-cursor\/index.ts"}]}