feat: add gateway client with env-driven assembly

Includes config aggregation for multi-source env keys, from_env and
from_settings factories with explicit shared-backend injection,
gather_bounded, top-level exports, tightened import-linter layers with
the gate removed from the Makefile, and the finalized .env.example.
This commit is contained in:
2026-07-20 07:47:05 -04:00
parent 936895919c
commit 7b9815f4bc
30 changed files with 1701 additions and 253 deletions
+5 -2
View File
@@ -60,10 +60,13 @@ known-first-party = ["polygateway"]
root_packages = ["polygateway"]
[[tool.importlinter.contracts]]
name = "洋葱分层:client → 实现层 → 内核(ports/types/errors/streaming"
name = "洋葱分层:client → config → middleware → 实现层(互不依赖)→ 叶子 → 内核"
type = "layers"
layers = [
"polygateway.client",
"polygateway.middleware : polygateway.transports : polygateway.backends : polygateway.telemetry : polygateway.structured : polygateway.providers : polygateway.sources",
"polygateway.config",
"polygateway.middleware",
"polygateway.transports | polygateway.backends | polygateway.telemetry | polygateway.structured",
"polygateway.providers : polygateway.sources",
"polygateway.ports : polygateway.types : polygateway.errors : polygateway.streaming",
]