Skip to content

docs: add Core-execution-flow page with architecture flowcharts#132

Merged
JusterZhu merged 1 commit into
mainfrom
docs/core-execution-flow
Jun 21, 2026
Merged

docs: add Core-execution-flow page with architecture flowcharts#132
JusterZhu merged 1 commit into
mainfrom
docs/core-execution-flow

Conversation

@JusterZhu

Copy link
Copy Markdown
Collaborator

变更内容

新增 Core-execution-flow 页面到在线文档的 Components 分类,紧接 @GeneralUpdate.Core 之后。

新增页面内容

章节 内容
架构总览 三层架构 + 两层引擎设计、核心原则、包类型、进程角色
Bootstrap 入口 构造函数 IPC 探测、双重身份设计
ClientStrategy 完整流程图 + 14 步详解
DownloadPlanBuilder Chain vs Full 的 80% 阈值决策
下载引擎 并发控制、断点续传、重试策略
中间件管道 Hash→Compress→Patch 执行差异
DiffPipeline 差分引擎 CleanAsync/DirtyAsync、原子替换
Chain→Full 回退 版本跟踪跳过机制
IPC 通信 AES-256-CBC 加密协议、字段映射
UpdateStrategy Upgrade 进程执行、防循环更新
Silent Mode 延迟升级 PollLoop + ProcessExit
OS 策略差异 Windows/Linux/macOS 对比
错误恢复全景 13 种错误场景及处理方式
关键代码路径索引 所有核心类 + 行号索引

改动文件

  • website/docs/doc/Core-execution-flow.md — 主文档(中文,默认语言)
  • website/i18n/en/docusaurus-plugin-content-docs/current/doc/Core-execution-flow.md — 英文版(内容相同,待翻译)
  • website/sidebars.js — Components 列表插入新条目

导航位置

Co-Authored-By: Claude noreply@anthropic.com

New 'Core-execution-flow' page provides a comprehensive deep-dive into
GeneralUpdate.Core's execution architecture, covering:

- Three-layer dispatch design (Bootstrap → RoleStrategy → OSStrategy)
- Complete ClientStrategy workflow with flowcharts
- DownloadPlanBuilder Chain vs Full decision logic (80% threshold)
- Middleware pipeline (Hash → Compress → Patch) execution differences
- DiffPipeline differential engine internals (CleanAsync/DirtyAsync)
- Chain-to-Full fallback mechanism with version tracking
- IPC communication protocol (AES-256-CBC encrypted)
- UpdateStrategy Upgrade-process execution flow
- Silent Mode delayed-upgrade design
- OS strategy platform differences
- Error recovery panorama (13 error scenarios)
- Key code path index with source links

Placed in Components sidebar, directly after GeneralUpdate.Core.

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 21, 2026 04:04
@JusterZhu JusterZhu merged commit 22d00f7 into main Jun 21, 2026
3 checks passed
@JusterZhu JusterZhu deleted the docs/core-execution-flow branch June 21, 2026 04:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new “Core-execution-flow” documentation page describing the internal execution flow/architecture of GeneralUpdate.Core, and wires it into the Docusaurus sidebar under Components (after GeneralUpdate.Core).

Changes:

  • Add new Core execution-flow doc page (with many Mermaid flowcharts) under website/docs/doc/.
  • Add an English-locale counterpart under website/i18n/en/... (currently same Chinese content).
  • Insert the new doc entry into website/sidebars.js under the Components section.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
website/sidebars.js Adds the new doc id to the Components sidebar list.
website/docs/doc/Core-execution-flow.md New Chinese doc page describing Core execution flow with flowcharts and code-path index.
website/i18n/en/docusaurus-plugin-content-docs/current/doc/Core-execution-flow.md New English-locale page (currently Chinese content) mirroring the new doc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +203 to +205
```mermaid
flowchart TB
subgraph CLIENT["ClientStrategy 执行流程"]
Comment on lines +5 to +8
# GeneralUpdate.Core — 执行流程详解

> **目标读者:** 第一次接触 GeneralUpdate.Core 的开发者
>
Comment on lines +203 to +205
```mermaid
flowchart TB
subgraph CLIENT["ClientStrategy 执行流程"]
| 步骤 | 文件 | 关键行 |
|------|------|--------|
| 入口分发 | `Bootstrap/GeneralUpdateBootstrap.cs` | `LaunchAsync()` @L125 |
| Upgade 路径 IPC 读取 | `Bootstrap/GeneralUpdateBootstrap.cs` | `InitializeFromEnvironment()` @L357 |
| 步骤 | 文件 | 关键行 |
|------|------|--------|
| 入口分发 | `Bootstrap/GeneralUpdateBootstrap.cs` | `LaunchAsync()` @L125 |
| Upgade 路径 IPC 读取 | `Bootstrap/GeneralUpdateBootstrap.cs` | `InitializeFromEnvironment()` @L357 |
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