refactor(egress): make addon core a compatibility facade
test / integration-macos (pull_request) Has been skipped
tracker-policy-pr / check-pr (pull_request) Successful in 10s
test / integration-docker (pull_request) Successful in 16s
test / unit (pull_request) Successful in 50s
lint / lint (push) Failing after 1m3s
test / integration-firecracker (pull_request) Successful in 3m55s
test / coverage (pull_request) Successful in 58s
test / publish-infra (pull_request) Has been skipped

This commit is contained in:
2026-07-26 06:25:51 +00:00
parent 55ee91f356
commit 6ad817cedd
11 changed files with 440 additions and 874 deletions
+8 -6
View File
@@ -8,17 +8,19 @@ from __future__ import annotations
import unittest
from bot_bottle.gateway.egress.addon_core import (
HeaderMatch,
MatchEntry,
PathMatch,
Route,
evaluate_matches,
from bot_bottle.gateway.egress.matching import evaluate_matches
from bot_bottle.gateway.egress.schema import (
load_config,
parse_config,
parse_routes,
route_to_yaml_dict,
)
from bot_bottle.gateway.egress.types import (
HeaderMatch,
MatchEntry,
PathMatch,
Route,
)
def _route(d: dict[str, object]) -> Route: