Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,21 @@ flowchart LR

subgraph Runtime["Runtime + Core Capabilities"]
Compat["PromptCompat\n(API -> web-chat plain text context)"]
ContextEngine["Context Engine\n(ContextPlan / token budget / reasoning summary)"]
Completion["Completion Runtime\n(session / PoW / completion)"]
Turn["AssistantTurn\n(output semantic normalization)"]
Auth["Auth Resolver\n(API key / bearer / x-goog-api-key)"]
Pool["Account Pool + Queue\n(in-flight slots + wait queue)"]
DSClient["DeepSeek Client\n(session / auth / completion / files)"]
Pow["PoW Solver\n(Pure Go)"]
Tool["Tool Sieve\n(Go/Node semantic parity)"]
History["Current Input File\n(DS2API_HISTORY.txt)"]
CurrentInput["Current Input File\n(hybrid_recent / neutral_random)"]
ToolRef["Tool Reference\n(neutral_random)"]
end

subgraph Offline["Offline Diagnostics / Release (not on request path)"]
HistoryAnalyzer["History Analyzer\n(cmd/history-analyzer)"]
ReleaseReadiness["Release Readiness\n(cmd/release-readiness)"]
end
end

Expand All @@ -102,8 +109,9 @@ flowchart LR

OA --> Compat
CA & GA --> Compat
Compat --> Completion
Completion -.full context.-> History
Compat --> ContextEngine --> Completion
Completion -.full context.-> CurrentInput
Completion -.tool reference.-> ToolRef
Completion --> Turn
Vercel -.Go prepare.-> Completion
Vercel -.Node SSE.-> Tool
Expand All @@ -118,6 +126,8 @@ flowchart LR
Vercel --> Client
```

Recent additions such as `Context Engine`, `Current Input File / Tool Reference`, `History Analyzer`, and `Release Readiness` are now shown above; the offline tools are listed as sidecars and are not on the request path.

For the full module-by-module architecture and directory responsibilities, see [docs/ARCHITECTURE.en.md](docs/ARCHITECTURE.en.md).

- **Backend**: Go (`cmd/ds2api/`, `api/`, `internal/`), no Python runtime
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,21 @@ flowchart LR

subgraph Runtime["运行时核心能力"]
Compat["PromptCompat\n(API -> 网页纯文本上下文)"]
ContextEngine["Context Engine\n(ContextPlan / token budget / reasoning summary)"]
Completion["Completion Runtime\n(Session / PoW / Completion)"]
Turn["AssistantTurn\n(输出语义归一)"]
Auth["Auth Resolver\n(API key / bearer / x-goog-api-key)"]
Pool["Account Pool + Queue\n(并发槽位 + 等待队列)"]
DSClient["DeepSeek Client\n(Session / Auth / Completion / Files)"]
Pow["PoW 实现\n(纯 Go)"]
Tool["Tool Sieve\n(Go/Node 语义对齐)"]
History["Current Input File\n(DS2API_HISTORY.txt)"]
CurrentInput["Current Input File\n(hybrid_recent / neutral_random)"]
ToolRef["Tool Reference\n(neutral_random)"]
end

subgraph Offline["离线诊断 / 发布(不在请求链路)"]
HistoryAnalyzer["History Analyzer\n(cmd/history-analyzer)"]
ReleaseReadiness["Release Readiness\n(cmd/release-readiness)"]
end
end

Expand All @@ -106,8 +113,9 @@ flowchart LR

OA --> Compat
CA & GA --> Compat
Compat --> Completion
Completion -.完整上下文.-> History
Compat --> ContextEngine --> Completion
Completion -.完整上下文.-> CurrentInput
Completion -.工具引用.-> ToolRef
Completion --> Turn
Vercel -.Go prepare.-> Completion
Vercel -.Node SSE.-> Tool
Expand All @@ -122,6 +130,8 @@ flowchart LR
Vercel --> Client
```

最近新增的 `Context Engine`、`Current Input File / Tool Reference`、`History Analyzer` 和 `Release Readiness` 已纳入上图;其中离线工具以 sidecar 方式单列,不在请求链路内。

详细架构拆分与目录职责见 [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)。

- **后端**:Go(`cmd/ds2api/`、`api/`、`internal/`),不依赖 Python 运行时
Expand Down
Loading