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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
- name: Test
run: cargo test --workspace

# 桌面版不开 `bedrock`,上面两步就一行都不编它。企业版开,所以单独查
- name: clippy + test (tw-upstream, bedrock)
run: |
cargo clippy -p tw-upstream --all-targets --features bedrock -- -D warnings
cargo test -p tw-upstream --features bedrock

- name: Build
run: cargo build --release -p twcore

Expand Down
48 changes: 5 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ members = [
"crates/tw-types",
"crates/tw-upstream",
"crates/tw-wire",
"crates/tw-protocol",
"crates/tw-provider",
"crates/tw-resil",
"crates/tw-crypto",
# ── 第二层 · 桌面网关(企业版永不依赖)────────────────
Expand Down Expand Up @@ -47,8 +45,6 @@ version = "0.34.0"
tw-types = { path = "crates/tw-types" }
tw-upstream = { path = "crates/tw-upstream" }
tw-wire = { path = "crates/tw-wire" }
tw-protocol = { path = "crates/tw-protocol" }
tw-provider = { path = "crates/tw-provider" }
tw-resil = { path = "crates/tw-resil" }
tw-crypto = { path = "crates/tw-crypto" }
tw-api = { path = "crates/tw-api" }
Expand Down Expand Up @@ -132,12 +128,11 @@ rand = "0.10"
aes-gcm = "=0.10.3"

clap = { version = "4", features = ["derive"] }
# ── Bedrock 的 SigV4 签名(tw-provider)──────────────────
# ── Bedrock:SigV4 签名与 eventstream 拆帧(tw-upstream 的 bedrock feature)──
aws-sigv4 = "1"
aws-credential-types = { version = "1", features = ["hardcoded-credentials"] }
aws-smithy-eventstream = "0.60"
http_1x = { package = "http", version = "1" }
urlencoding = "2"
aws-smithy-types = "1"


[profile.release]
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Point a client (Claude Code, Codex, and friends) at a local port, and:
## Crate layers

```
tw-types · tw-protocol · tw-provider · tw-resil · tw-crypto ← shape fixed by the outside world
tw-engine · tw-pricing · tw-redact · tw-yaml · tw-secret ← domain logic
tw-config · tw-store · tw-scan · tw-adopt · tw-observe ← assembly
tw-gateway · tw-control ← data plane / control plane
tw-types · tw-dialect · tw-wire · tw-upstream · tw-resil · tw-crypto ← shape fixed by the outside world
tw-engine · tw-pricing · tw-redact · tw-yaml · tw-secret ← domain logic
tw-config · tw-store · tw-scan · tw-adopt · tw-observe ← assembly
tw-gateway · tw-control ← data plane / control plane
```

The top two layers are stable against external reality — the server edition
Expand Down
8 changes: 4 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ cargo run -p twcore -- serve # 起网关和控制面
## crate 分层

```
tw-types · tw-protocol · tw-provider · tw-resil · tw-crypto ← 形状由外部现实决定
tw-engine · tw-pricing · tw-redact · tw-yaml · tw-secret ← 领域逻辑
tw-config · tw-store · tw-scan · tw-adopt · tw-observe ← 装配
tw-gateway · tw-control ← 数据面 / 控制面
tw-types · tw-dialect · tw-wire · tw-upstream · tw-resil · tw-crypto ← 形状由外部现实决定
tw-engine · tw-pricing · tw-redact · tw-yaml · tw-secret ← 领域逻辑
tw-config · tw-store · tw-scan · tw-adopt · tw-observe ← 装配
tw-gateway · tw-control ← 数据面 / 控制面
```

上面两层对外部稳定,服务端版本直接依赖它们。下面两层是单机的实现
Expand Down
16 changes: 0 additions & 16 deletions crates/tw-protocol/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions crates/tw-protocol/src/lib.rs

This file was deleted.

Loading
Loading