下载的完整 HTML 可能在打开时执行外部或不受信任的脚本
原文依据:3 处Skill 指示把服务返回的完整 HTML 原样保存,并说明默认 HTML 会加载 Iconify 脚本。返回内容由外部 AI 服务生成,文档未要求在打开或集成前检查、净化或隔离脚本。
用户打开原型时,HTML 中的脚本或远程资源可能在浏览器权限范围内运行、发起网络请求、跟踪访问,或读取同源可访问的数据。风险取决于实际返回的 HTML;现有证据不能证明其中含恶意代码。
该风险在条件成立时可信:Skill 要求从 Sleek 获取外部 AI 生成的组件代码,并把完整 HTML 原样保存;文档还明确说明默认 HTML 会加载 Iconify 脚本。若用户随后在浏览器打开该文件,脚本可在页面上下文中运行并产生第三方网络请求。源码没有可见的审查、净化或隔离要求。用户可要求将预览限制在无敏感权限的隔离环境,并在打开前禁用或审核远程脚本。
### HTML prototypesThe component `code` is a complete HTML document. Save it directly to a `.html` file. No build step needed.查看另外 2 个位置
Both list and get accept an optional `inlineIcons` query param (default `false`). When omitted, icons render as `<iconify-icon>` web components and the HTML pulls in the Iconify script, so leave it off by default. Pass `?inlineIcons=true` only when the consumer needs self-contained SVGs in the HTML (for example, importing into tools that don't run scripts).When the user wants to implement the designs in code (not just preview them), **always fetch the component HTML code**. Do not rely on screenshots alone.Use `GET /api/v1/projects/:id/components/:componentId` to fetch each screen's code. The `componentId` comes from the chat run's `result.operations`.