fix(egress): break circular import with manifest via TYPE_CHECKING
test / unit (pull_request) Successful in 44s
test / integration (pull_request) Successful in 55s

manifest → agent_provider → egress → manifest created a cycle that
caused ImportError on any module import. With from __future__ import
annotations already present, Bottle is only needed at type-check time
(annotations are lazy strings under PEP 563).

Assisted-by: Claude Code
This commit is contained in:
2026-06-02 00:28:57 +00:00
parent b79b49090f
commit 0233b481b1
+4 -1
View File
@@ -27,9 +27,12 @@ from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass
from pathlib import Path
from typing import TYPE_CHECKING
from .log import die
from .manifest import Bottle
if TYPE_CHECKING:
from .manifest import Bottle
CODEX_HOST_CREDENTIAL_TOKEN_REF = "BOT_BOTTLE_CODEX_HOST_ACCESS_TOKEN"