Skip to content

feat: 新增 Xyzen 完整文档 - 包括架构、API 参考、高级功能、部署指南等#40

Merged
Mile-Away merged 1 commit intomainfrom
clean-xyzen-docs
Nov 19, 2025
Merged

feat: 新增 Xyzen 完整文档 - 包括架构、API 参考、高级功能、部署指南等#40
Mile-Away merged 1 commit intomainfrom
clean-xyzen-docs

Conversation

@zhangligei
Copy link
Copy Markdown
Collaborator

@zhangligei zhangligei commented Nov 18, 2025

Sourcery 总结

为 Xyzen 添加全面的中文文档,内容包括自定义 MCP 集成、系统架构、高级功能、部署指南和 UI 设计规范,并重新组织导航菜单以展示新章节。

文档:

  • 添加配置自定义和外部 MCP 服务的中文指南
  • 创建详细的中文架构文档,涵盖层次、模块、数据模型和部署
  • 引入高级功能文档,涵盖多提供商管理、MCP 集成以及内置/图代理(Graph Agents)
  • 添加图代理(Graph Agent)指南,详细介绍状态图概念、节点类型和工作流构建
  • 添加用于侧边栏嵌入的主要部署集成存根
  • 发布 @sciol/ui 组件库和设计原则的 UI 设计规范文档
  • 对中文常见问题页面进行格式调整,以保持代码和 Markdown 的一致性

杂项:

  • 重新组织中文导航菜单,使其包含概览、路线图、用户指南、架构、MCP、API 参考、高级功能、设计和部署章节
Original summary in English

Summary by Sourcery

Add comprehensive Chinese documentation for Xyzen, including custom MCP integration, system architecture, advanced features, deployment guides, and UI design guidelines, and reorganize the navigation menu to expose the new sections.

Documentation:

  • Add Chinese guide for configuring custom and external MCP services
  • Create detailed Chinese architecture documentation covering layers, modules, data models and deployment
  • Introduce advanced features doc covering multi-provider management, MCP integration and built-in/Graph Agents
  • Add Graph Agent guide detailing state graph concepts, node types and workflow construction
  • Add primary deployment integration stub for sidebar embedding
  • Publish UI design specification document for @sciol/ui component library and design principles
  • Apply formatting tweaks in the Chinese FAQ page for code and Markdown consistency

Chores:

  • Reorganize Chinese navigation menu to include overview, roadmap, user guide, architecture, MCP, API reference, advanced features, design and deployment sections

@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 18, 2025

Deploy Preview for cloudocs ready!

Name Link
🔨 Latest commit 4e9181b
🔍 Latest deploy log https://app.netlify.com/projects/cloudocs/deploys/691caa2aac4c1e00082ad545
😎 Deploy Preview https://deploy-preview-40--cloudocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Nov 18, 2025

审阅者指南

此 PR 为 Xyzen 平台添加了一整套中文文档,引入了涵盖自定义 MCP 服务、系统架构、高级功能、部署指南和 UI 设计指南的新 MDX 页面,并更新了导航结构和完善了现有 FAQ 内容。

Xyzen HTTP 请求/响应流程序列图(摘自文档)

sequenceDiagram
    participant Client
    participant API as API Handler
    participant Auth as Auth Middleware
    participant Service as Service Layer
    participant Repo as Repository
    participant DB as Database
    Client->>API: HTTP Request + Bearer Token
    API->>Auth: 验证 Token
    Auth->>Auth: 提取 user_id & provider
    Auth->>Service: 注入用户上下文
    Service->>Repo: 调用 CRUD 方法
    Repo->>DB: SQL 查询/插入/更新
    DB->>Repo: 返回结果
    Repo->>Service: 返回数据
    Service->>Service: 业务逻辑处理
    Service->>API: 返回响应
    API->>Client: HTTP Response (JSON)
Loading

Xyzen WebSocket 聊天流程序列图(摘自文档)

sequenceDiagram
    participant Client
    participant WS as WebSocket Handler
    participant Chat as Chat Service
    participant LLM as LLM Provider
    Client->>WS: WebSocket 连接
    WS->>WS: 认证和初始化
    Client->>WS: 发送消息
    WS->>Chat: 执行聊天逻辑
    Chat->>LLM: 调用 LLM API
    LLM->>Chat: 流式响应
    Chat->>WS: 转发流
    WS->>Client: WebSocket 消息 (分块)
    Client->>WS: 关闭连接
Loading

Xyzen 核心数据模型实体关系图(摘自架构文档)

erDiagram
    USER ||--o{ AGENT : owns
    USER ||--o{ SESSION : creates
    USER ||--o{ GRAPHAGENT : creates
    USER ||--o{ CONSUMERECORD : generates
    AGENT }o--|| PROVIDER : uses
    AGENT }o--o{ MCPSERVER : uses
    SESSION ||--o{ TOPIC : contains
    TOPIC ||--o{ MESSAGE : contains
    GRAPHAGENT ||--o{ GRAPHNODE : has
    GRAPHAGENT ||--o{ GRAPHEDGE : defines
    PROVIDER ||--o{ TOOL : defines
Loading

Agent、GraphAgent 和 ConsumeRecord 模型类图(摘自文档)

classDiagram
    class Agent {
        +str name
        +str description
        +str avatar
        +list~str~ tags
        +str model
        +float temperature
        +str prompt
        +str user_id
        +UUID provider_id
        +bool require_tool_confirmation
        +datetime created_at
        +datetime updated_at
    }
    class GraphAgent {
        +str name
        +str description
        +dict state_schema
        +bool is_active
        +bool is_published
        +bool is_official
        +UUID parent_agent_id
    }
    class ConsumeRecord {
        +str user_id
        +int amount
        +str auth_provider
        +UUID session_id
        +UUID topic_id
        +UUID message_id
        +str consume_state
        +str remote_response
        +int biz_no
    }
Loading

MCP 工具调用流程图(摘自高级功能文档)

graph TD
    START["用户输入"] --> RECEIVE["Agent 收到请求"]
    RECEIVE --> ANALYZE["LLM 分析是否需要工具"]
    ANALYZE --> DECIDE{"需要工具?"}
    DECIDE -->|否| RESPONSE["直接生成响应"]
    RESPONSE --> END1["返回最终答案"]
    DECIDE -->|是| CONFIRM{"需要确认?"}
    CONFIRM -->|是| CONFIRM_UI["工具确认<br/>用户审批"]
    CONFIRM -->|否| EXECUTE
    CONFIRM_UI --> EXECUTE["MCP 服务器执行"]
    EXECUTE --> RESULT["返回工具结果"]
    RESULT --> SYNTHESIS["Agent 综合结果"]
    SYNTHESIS --> END1
    style START fill:#4f46e5,stroke:#312e81,stroke-width:2px,color:#fff
    style RECEIVE fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style ANALYZE fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style DECIDE fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff
    style CONFIRM fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff
    style CONFIRM_UI fill:#f59e0b,stroke:#d97706,stroke-width:2px,color:#fff
    style EXECUTE fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style RESULT fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style RESPONSE fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff
    style SYNTHESIS fill:#8b5cf6,stroke:#6d28d9,stroke-width:2px,color:#fff
    style END1 fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff
Loading

Graph Agent 工作流程图(摘自部署指南)

graph TD
    START["START<br/>用户输入论文"] --> EXTRACT["EXTRACT_TEXT<br/>提取论文文本"]
    EXTRACT --> ANALYZE["ANALYZE_QUERY<br/>分析用户问题"]
    ANALYZE --> ROUTER{"问题复杂度<br/>判断"}
    ROUTER -->|简单问题<br/>complexity < 5| QUICK["QUICK_ANSWER<br/>快速回答"]
    ROUTER -->|复杂问题<br/>complexity ≥ 5| DEEP["DEEP_ANALYSIS<br/>深度分析"]
    QUICK --> SYNTHESIS["SYNTHESIS<br/>综合答案"]
    DEEP --> SYNTHESIS
    SYNTHESIS --> END["END<br/>输出结果"]
    style START fill:#4f46e5,stroke:#312e81,stroke-width:2px,color:#fff
    style EXTRACT fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style ANALYZE fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style ROUTER fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff
    style QUICK fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style DEEP fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style SYNTHESIS fill:#8b5cf6,stroke:#6d28d9,stroke-width:2px,color:#fff
    style END fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff
Loading

文件级别变更

变更 详情 Files
添加自定义 MCP 服务综合指南
  • 记录创建和集成本地 MCP 脚本的步骤
  • 解释外部 MCP 服务器导入,并提供示例
  • 嵌入图片和视频以提高清晰度
src/app/(cn)/xyzen/mcp/page.mdx
修订站点导航以包含新章节
  • Rename '介绍' to '总览'
  • Reorganize links under '用户指南' and '私有化部署' groups
  • Add entries for 架构, 高级功能, API 参考, UI 设计规范
src/app/(cn)/xyzen/navigation.ts
优化 FAQ 页面格式和内容
  • 用反引号包裹关键词以提高清晰度
  • 调整列表和代码块样式
  • 添加贡献指南链接
src/app/(cn)/xyzen/faq/page.mdx
引入详细的架构文档
  • 添加包含 mermaid 图表的系统概述
  • 描述分层架构(表示层、中间件、服务层、数据层)
  • 详细说明模块职责和数据流
src/app/(cn)/xyzen/architecture/page.mdx
添加高级功能文档
  • 涵盖多提供商管理和成本优化
  • 详细说明 MCP 服务器集成和工具确认
  • 解释内置系统代理和使用示例
src/app/(cn)/xyzen/advanced/page.mdx
提供 Graph Agent 和集成部署指南
  • 解释 Graph Agent 核心概念和构建步骤
  • 记录主要集成和帮助资源
  • 包含图工作流的最佳实践
src/app/(cn)/xyzen/deploy/graph_agent/page.mdx
src/app/(cn)/xyzen/deploy/primary_deploy/page.mdx
添加 UI 设计规范页面
  • 介绍 @sciol/ui 组件库
  • 概述设计原则和使用示例
src/app/(cn)/xyzen/design/page.mdx

提示与命令

与 Sourcery 互动

  • 触发新审阅: 在拉取请求上评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审阅评论。
  • 从审阅评论生成 GitHub issue: 回复 Sourcery 的审阅评论,请求其创建 issue。您也可以回复审阅评论并带上 @sourcery-ai issue 来创建 issue。
  • 生成拉取请求标题: 在拉取请求标题的任意位置写入 @sourcery-ai 即可随时生成标题。您也可以在拉取请求上评论 @sourcery-ai title 来随时(重新)生成标题。
  • 生成拉取请求摘要: 在拉取请求正文的任意位置写入 @sourcery-ai summary 即可随时在您想要的位置生成 PR 摘要。您也可以在拉取请求上评论 @sourcery-ai summary 来随时(重新)生成摘要。
  • 生成审阅者指南: 在拉取请求上评论 @sourcery-ai guide 即可随时(重新)生成审阅者指南。
  • 解决所有 Sourcery 评论: 在拉取请求上评论 @sourcery-ai resolve 即可解决所有 Sourcery 评论。如果您已处理完所有评论,并且不想再看到它们,这会很有用。
  • 驳回所有 Sourcery 审阅: 在拉取请求上评论 @sourcery-ai dismiss 即可驳回所有现有 Sourcery 审阅。如果您想从新的审阅开始,这会特别有用——别忘了评论 @sourcery-ai review 来触发新的审阅!

自定义您的体验

访问您的 仪表板 以:

  • 启用或禁用审阅功能,例如 Sourcery 生成的拉取请求摘要、审阅者指南等。
  • 更改审阅语言。
  • 添加、删除或编辑自定义审阅说明。
  • 调整其他审阅设置。

获取帮助

Original review guide in English

Reviewer's Guide

This PR adds a complete set of Chinese documentation for the Xyzen platform by introducing new MDX pages covering custom MCP services, system architecture, advanced features, deployment guides, and UI design guidelines, as well as updating the navigation structure and refining existing FAQ content.

Sequence diagram for Xyzen HTTP request/response flow (from documentation)

sequenceDiagram
    participant Client
    participant API as API Handler
    participant Auth as Auth Middleware
    participant Service as Service Layer
    participant Repo as Repository
    participant DB as Database
    Client->>API: HTTP Request + Bearer Token
    API->>Auth: 验证 Token
    Auth->>Auth: 提取 user_id & provider
    Auth->>Service: 注入用户上下文
    Service->>Repo: 调用 CRUD 方法
    Repo->>DB: SQL 查询/插入/更新
    DB->>Repo: 返回结果
    Repo->>Service: 返回数据
    Service->>Service: 业务逻辑处理
    Service->>API: 返回响应
    API->>Client: HTTP Response (JSON)
Loading

Sequence diagram for Xyzen WebSocket chat flow (from documentation)

sequenceDiagram
    participant Client
    participant WS as WebSocket Handler
    participant Chat as Chat Service
    participant LLM as LLM Provider
    Client->>WS: WebSocket 连接
    WS->>WS: 认证和初始化
    Client->>WS: 发送消息
    WS->>Chat: 执行聊天逻辑
    Chat->>LLM: 调用 LLM API
    LLM->>Chat: 流式响应
    Chat->>WS: 转发流
    WS->>Client: WebSocket 消息 (分块)
    Client->>WS: 关闭连接
Loading

Entity relationship diagram for Xyzen core data models (from architecture documentation)

erDiagram
    USER ||--o{ AGENT : owns
    USER ||--o{ SESSION : creates
    USER ||--o{ GRAPHAGENT : creates
    USER ||--o{ CONSUMERECORD : generates
    AGENT }o--|| PROVIDER : uses
    AGENT }o--o{ MCPSERVER : uses
    SESSION ||--o{ TOPIC : contains
    TOPIC ||--o{ MESSAGE : contains
    GRAPHAGENT ||--o{ GRAPHNODE : has
    GRAPHAGENT ||--o{ GRAPHEDGE : defines
    PROVIDER ||--o{ TOOL : defines
Loading

Class diagram for Agent, GraphAgent, and ConsumeRecord models (from documentation)

classDiagram
    class Agent {
        +str name
        +str description
        +str avatar
        +list~str~ tags
        +str model
        +float temperature
        +str prompt
        +str user_id
        +UUID provider_id
        +bool require_tool_confirmation
        +datetime created_at
        +datetime updated_at
    }
    class GraphAgent {
        +str name
        +str description
        +dict state_schema
        +bool is_active
        +bool is_published
        +bool is_official
        +UUID parent_agent_id
    }
    class ConsumeRecord {
        +str user_id
        +int amount
        +str auth_provider
        +UUID session_id
        +UUID topic_id
        +UUID message_id
        +str consume_state
        +str remote_response
        +int biz_no
    }
Loading

Flow diagram for MCP tool invocation process (from advanced features documentation)

graph TD
    START["用户输入"] --> RECEIVE["Agent 收到请求"]
    RECEIVE --> ANALYZE["LLM 分析是否需要工具"]
    ANALYZE --> DECIDE{"需要工具?"}
    DECIDE -->|否| RESPONSE["直接生成响应"]
    RESPONSE --> END1["返回最终答案"]
    DECIDE -->|是| CONFIRM{"需要确认?"}
    CONFIRM -->|是| CONFIRM_UI["工具确认<br/>用户审批"]
    CONFIRM -->|否| EXECUTE
    CONFIRM_UI --> EXECUTE["MCP 服务器执行"]
    EXECUTE --> RESULT["返回工具结果"]
    RESULT --> SYNTHESIS["Agent 综合结果"]
    SYNTHESIS --> END1
    style START fill:#4f46e5,stroke:#312e81,stroke-width:2px,color:#fff
    style RECEIVE fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style ANALYZE fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style DECIDE fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff
    style CONFIRM fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff
    style CONFIRM_UI fill:#f59e0b,stroke:#d97706,stroke-width:2px,color:#fff
    style EXECUTE fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style RESULT fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style RESPONSE fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff
    style SYNTHESIS fill:#8b5cf6,stroke:#6d28d9,stroke-width:2px,color:#fff
    style END1 fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff
Loading

Flow diagram for Graph Agent workflow (from deployment guide)

graph TD
    START["START<br/>用户输入论文"] --> EXTRACT["EXTRACT_TEXT<br/>提取论文文本"]
    EXTRACT --> ANALYZE["ANALYZE_QUERY<br/>分析用户问题"]
    ANALYZE --> ROUTER{"问题复杂度<br/>判断"}
    ROUTER -->|简单问题<br/>complexity < 5| QUICK["QUICK_ANSWER<br/>快速回答"]
    ROUTER -->|复杂问题<br/>complexity ≥ 5| DEEP["DEEP_ANALYSIS<br/>深度分析"]
    QUICK --> SYNTHESIS["SYNTHESIS<br/>综合答案"]
    DEEP --> SYNTHESIS
    SYNTHESIS --> END["END<br/>输出结果"]
    style START fill:#4f46e5,stroke:#312e81,stroke-width:2px,color:#fff
    style EXTRACT fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style ANALYZE fill:#7c3aed,stroke:#5b21b6,stroke-width:2px,color:#fff
    style ROUTER fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff
    style QUICK fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style DEEP fill:#06b6d4,stroke:#0e7490,stroke-width:2px,color:#fff
    style SYNTHESIS fill:#8b5cf6,stroke:#6d28d9,stroke-width:2px,color:#fff
    style END fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff
Loading

File-Level Changes

Change Details Files
Add comprehensive guide for custom MCP services
  • Document steps to create and integrate local MCP scripts
  • Explain external MCP server import with examples
  • Embed images and video for clarity
src/app/(cn)/xyzen/mcp/page.mdx
Revise site navigation to include new sections
  • Rename '介绍' to '总览'
  • Reorganize links under '用户指南' and '私有化部署' groups
  • Add entries for 架构, 高级功能, API 参考, UI 设计规范
src/app/(cn)/xyzen/navigation.ts
Refine FAQ page formatting and content
  • Wrap key terms in backticks for clarity
  • Adjust list and code block styling
  • Add link to contribution guidelines
src/app/(cn)/xyzen/faq/page.mdx
Introduce detailed architecture documentation
  • Add system overview with mermaid diagrams
  • Describe layered architecture (presentation, middleware, service, data)
  • Detail module responsibilities and data flow
src/app/(cn)/xyzen/architecture/page.mdx
Add advanced features documentation
  • Cover multi-provider management and cost optimization
  • Detail MCP server integration and tool confirmation
  • Explain built-in system agents and usage examples
src/app/(cn)/xyzen/advanced/page.mdx
Provide deployment guides for Graph Agent and integration
  • Explain Graph Agent core concepts and construction steps
  • Document primary integration and help resources
  • Include best practices for graph workflows
src/app/(cn)/xyzen/deploy/graph_agent/page.mdx
src/app/(cn)/xyzen/deploy/primary_deploy/page.mdx
Add UI design specification page
  • Introduce @sciol/ui component library
  • Outline design principles and usage examples
src/app/(cn)/xyzen/design/page.mdx

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好 - 我已经审阅了你的更改 - 以下是一些反馈意见:

  • deploy/primary_deploy/page.mdx 目前包含占位符,没有实际说明——如果尚未准备好,请充实内容或删除它。
  • design/page.mdx 中的 img 标签的 src (/xyzen/sciol_ui.pnghttps://...) 格式错误;请将 URL 更正为单个有效路径。
  • 架构页面太长了——考虑将其拆分为子页面或部分,以提高可读性并与新的导航结构保持一致。
AI 代理提示
请处理此代码审查中的评论:

## 总体评论
- deploy/primary_deploy/page.mdx 目前包含占位符,没有实际说明——如果尚未准备好,请充实内容或删除它。
- design/page.mdx 中的 img 标签的 src (`/xyzen/sciol_ui.pnghttps://...`) 格式错误;请将 URL 更正为单个有效路径。
- 架构页面太长了——考虑将其拆分为子页面或部分,以提高可读性并与新的导航结构保持一致。

## 单独评论

### 评论 1
<location> `src/app/(cn)/xyzen/design/page.mdx:9` </location>
<code_context>
+Xyzen 使用 [@sciol/ui](https://www.npmjs.com/package/@sciol/ui) 
+作为主要的前端组件库。
+该组件库基于 shadcn 和 vercel 构建,提供了一套高度可定制且易于使用的 UI 组件。
+<img src="/xyzen/sciol_ui.pnghttps://storage.sciol.ac.cn/library/docs/Xyzen/sciol_ui.png" alt="UI 组件库示例" />
\ No newline at end of file
</code_context>

<issue_to_address>
**问题 (bug_risk):** 图像 src 属性连接了两个 URL;这很可能会破坏图像渲染。

src 属性应仅使用一个有效 URL,以确保图像正确渲染。
</issue_to_address>

Sourcery 对开源项目免费 - 如果你喜欢我们的评论,请考虑分享 ✨
帮助我变得更有用!请对每条评论点击 👍 或 👎,我将利用这些反馈来改进你的评论。
Original comment in English

Hey there - I've reviewed your changes - here's some feedback:

  • The deploy/primary_deploy/page.mdx currently contains placeholders and no real instructions—please flesh it out or remove it if it’s not ready.
  • The img tag in design/page.mdx has a malformed src (/xyzen/sciol_ui.pnghttps://...); please correct the URL to a single valid path.
  • The architecture page is extremely long—consider breaking it into subpages or sections to improve readability and align with the new navigation structure.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The deploy/primary_deploy/page.mdx currently contains placeholders and no real instructions—please flesh it out or remove it if it’s not ready.
- The img tag in design/page.mdx has a malformed src (`/xyzen/sciol_ui.pnghttps://...`); please correct the URL to a single valid path.
- The architecture page is extremely long—consider breaking it into subpages or sections to improve readability and align with the new navigation structure.

## Individual Comments

### Comment 1
<location> `src/app/(cn)/xyzen/design/page.mdx:9` </location>
<code_context>
+Xyzen 使用 [@sciol/ui](https://www.npmjs.com/package/@sciol/ui) 
+作为主要的前端组件库。
+该组件库基于 shadcn 和 vercel 构建,提供了一套高度可定制且易于使用的 UI 组件。
+<img src="/xyzen/sciol_ui.pnghttps://storage.sciol.ac.cn/library/docs/Xyzen/sciol_ui.png" alt="UI 组件库示例" />
\ No newline at end of file
</code_context>

<issue_to_address>
**issue (bug_risk):** Image src attribute concatenates two URLs; this will likely break image rendering.

Only one valid URL should be used for the src attribute to ensure the image renders correctly.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Mile-Away Mile-Away merged commit 0ad17c6 into main Nov 19, 2025
5 checks passed
@Mile-Away Mile-Away deleted the clean-xyzen-docs branch November 19, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants