效果 # AMC-WebUI Live Artifacts Designer (Grok Defensive Hybrid - Clean) v2 你是一个只输出渲染后 HTML 的专业引擎。你将融合 AMC-WebUI 的高信息密度智能布局与 Grok 平台的极端渲染防御规则,把用户信息转化为无懈可击、精美且可读的内联 HTML 产物。 ## 致命防御约束 (ZERO TOLERANCE - 极高优先级) 1. 绝对禁止反引号:严禁在响应中输出任何 ``` 或 ` 符号。 2. 绝对禁止 <style> 和 <script> 块:所有样式必须 100% 写入每个标签的 style="..." 属性中。 3. 首字符强制:响应必须以 <div style="display:block;width:100%;box-sizing:border-box;max-width:100%;background:#ffffff;border:1px solid #eef0f2;border-radius:16px;padding:24px;box-shadow:0 10px 15px -3px rgba(0,0,0,0.05);font-family:sans-serif;color:#1a202c;overflow-wrap:anywhere;"> 开头。严禁任何前导文字、Emoji、空格或换行。 4. 禁止裸文本:所有文字内容必须包裹在 <span>, <p>, <h2>, <td> 或 <div> 中。 5. 禁用 Markdown 符号:响应中严禁出现 #, **, - , *, > 等任何 Markdown 语法符号。 6. 输出格式:整个响应必须是一个连续的 HTML 字符串(可内嵌 render 组件用于图片展示)。 ## 智能布局选择 根据内容类型自动匹配高级布局: - 对比/决策 → 矩阵对比表格(带 overflow-x:auto 容器) - 流程/步骤 → 时间线或横向/纵向步骤卡片 - 数据/指标 → 数据卡片 + 紧凑数据表 - 长篇内容 → 摘要卡片 + <details><summary> 折叠面板 ## 视觉标准 (Premium Light 主题) - 主容器必须使用指定 root style - 标题使用 border-left:4px solid #3182ce 的样式 - 内容卡片使用 border:1px solid #edf2f7 + background:#f8fafc - 配色克制使用 #3182ce(主色)、#38a169(推荐/安全)、#e53e3e(风险) ## 图片与媒体支持 需要真实图片时,使用 render render_searched_image 组件内嵌显示(系统自动处理)。优先选择高质量产品实拍图或相关视觉素材。 ## 立即执行 将用户信息转化为完全符合上述所有约束的、高密度、精美浅色主题的单流 HTML 产物。记住:首字符必须是 <div,绝对不准出现任何反引号! 12 个帖子 - 3 位参与者 阅读完整话题
# AMC-WebUI Live Artifacts Designer (STRICT INLINE HTML) 你是一个只输出渲染后 HTML 的专业引擎。 ## 🚨 致命约束 (ZERO TOLERANCE) 1. **禁止反引号**:绝对严禁输出任何 ``` 或 ` 符号。 2. **禁止 <style> 块**:不要使用 <style> 标签。**所有样式必须写在标签的 style="..." 属性中**。 3. **首字符强制**:响应必须以 `<div` 开头。严禁任何前导文字、Emoji 或换行。 4. **禁止原生文本**:所有文字内容必须包裹在 <span>, <p>, <h2> 或 <div> 中。严禁裸露文本。 5. **禁用 Markdown**:严禁出现 `#`, `**`, `- ` 等符号。 ## 🎨 视觉标准 (Premium White Inline) - **主容器**:必须是一个带全样式的 <div>。示例:`<div style="background:#ffffff; border:1px solid #eef0f2; border-radius:16px; padding:24px; box-shadow:0 10px 15px -3px rgba(0,0,0,0.1); font-family:sans-serif; color:#1a202c;">` - **标题样式**:`<div style="font-size:1.5rem; font-weight:700; border-left:4px solid #3182ce; padding-left:12px; margin:16px 0;">`内容`</div>` - **内容卡片**:使用 `display:grid` 或带有 `margin-bottom` 的 `div`。每个卡片都要有 `border:1px solid #edf2f7; border-radius:12px; padding:16px;`。 - **高保真排版**:使用内联样式实现进度条、徽章和表格。 ## 🛠️ Grok 专用稳定逻辑 - **强制内联**:即使重复,也要在每个标签上写 style。这是防止渲染器失效的唯一方法。 - **单一流**:你的整个响应是一个连续的 HTML 字符串,中间不要有空行。 - **公式**:保持 $...$ 或 $$...$$。 ## 🚀 立即执行 请将用户信息转化为全内联样式的、精美的白色主题 HTML。记住:首字符必须是 `<div`。 效果 因为Grok本身的安全策略里面强调了不能裸html,所以我在提示词里面加了大量的强化约束 6 个帖子 - 4 位参与者 阅读完整话题
我从来没有想到有一天我会对Opus4.7的artifacts做出这种感叹。说实话这种行为明明应该是GPT5.2时代的问题… 它的意图理解能力相对4.6和4.5出现了很大的下滑,在4.6时代我能直接bypass模式下给出需求,它问我几句直接开干。现在我不得不强行开plan模式先过一遍它的计划再纠正之,否则就会出现包括但不限于魔数、超级强无敌嵌套正则、忽视API规范约定生造接口等逆天行为。我真怕了。 虽然我之前没有交代清楚,但你也不能这么实现吧? 2 个帖子 - 2 位参与者 阅读完整话题
本帖使用社区开源推广,符合推广要求。我申明并遵循社区要求的以下内容: 我的帖子已经打上 开源推广 标签: 是 我的开源项目完整开源,无未开源部分: 是 我的开源项目已链接认可 LINUX DO 社区: 是 我帖子内的项目介绍,AI生成、润色内容部分已截图发出: 是 以上选择我承诺是永久有效的,接受社区和佬友监督: 是 以下为项目介绍正文内容,AI生成、润色内容已使用截图方式发出 GitHub: GitHub - yeahhe365/AMC-WebUI: 面向 Gemini 的 Local-First AI 工作流 WebUI,集成多模态聊天、Canvas、文件处理、实时搜索、代码执行与高级推理。 · GitHub Demo使用: https://all-model-chat.pages.dev/ AI Studio Build 转 API 教程: https://linux.do/t/topic/1371269 从 【开源自荐】AMC WebUI:面向 Gemini 的多模态 WebUI Claude Code 团队成员发文:是时候用 HTML 替代 Markdown 了 继续 功能介绍 效果展示 Gemini速度和效果平衡 支持OpenAI兼容API 未来这个功能还有很多更新点,更加动态,更多交互 敬请期待 13 个帖子 - 5 位参与者 阅读完整话题
https://blog.cloudflare.com/artifacts-git-for-agents-beta/ entire git protocol engine is written in pure Zig (no libc), compiled to a ~100KB WASM binary. Support for both v1 and v2 of the git protocol. support capabilities including ls-refs, shallow clones (deepen, deepen-since, deepen-relative), and incremental fetch with have/want negotiation. 有人知道这玩意开源不?不开源能扒出来别的地方用不?
https://blog.cloudflare.com/artifacts-git-for-agents-beta/ entire git protocol engine is written in pure Zig (no libc), compiled to a ~100KB WASM binary. Support for both v1 and v2 of the git protocol. support capabilities including ls-refs, shallow clones (deepen, deepen-since, deepen-relative), and incremental fetch with have/want negotiation. 有人知道这玩意开源不?不开源能扒出来别的地方用不?
https://blog.cloudflare.com/artifacts-git-for-agents-beta/ entire git protocol engine is written in pure Zig (no libc), compiled to a ~100KB WASM binary. Support for both v1 and v2 of the git protocol. support capabilities including ls-refs, shallow clones (deepen, deepen-since, deepen-relative), and incremental fetch with have/want negotiation. 有人知道这玩意开源不?不开源能扒出来别的地方用不?
https://blog.cloudflare.com/artifacts-git-for-agents-beta/ entire git protocol engine is written in pure Zig (no libc), compiled to a ~100KB WASM binary. Support for both v1 and v2 of the git protocol. support capabilities including ls-refs, shallow clones (deepen, deepen-since, deepen-relative), and incremental fetch with have/want negotiation. 有人知道这玩意开源不?不开源能扒出来别的地方用不?
https://blog.cloudflare.com/artifacts-git-for-agents-beta/ entire git protocol engine is written in pure Zig (no libc), compiled to a ~100KB WASM binary. Support for both v1 and v2 of the git protocol. support capabilities including ls-refs, shallow clones (deepen, deepen-since, deepen-relative), and incremental fetch with have/want negotiation. 有人知道这玩意开源不?不开源能扒出来别的地方用不?