refactor(bottles): rename DockerBottleSpec to BottleSpec
test / run tests/run_tests.py (pull_request) Successful in 13s

The spec is intent-only and platform-agnostic — only the plan carries
Docker-specific fields. Drop the 'Docker' prefix and re-export from
claude_bottle.bottles so callers see it as cross-platform.
This commit is contained in:
2026-05-10 22:40:19 -04:00
parent 4f16b3a9e1
commit 236c4fa50c
3 changed files with 13 additions and 10 deletions
+3 -3
View File
@@ -11,8 +11,8 @@ import sys
import tempfile
from pathlib import Path
from ..bottles import get_bottle_platform
from ..bottles.docker import DockerBottlePlan, DockerBottleSpec
from ..bottles import BottleSpec, get_bottle_platform
from ..bottles.docker import DockerBottlePlan
from ..log import info
from ..manifest import Manifest
from ._common import PROG, USER_CWD, read_tty_line
@@ -72,7 +72,7 @@ def cmd_start(argv: list[str]) -> int:
dry_run = args.dry_run or os.environ.get("CLAUDE_BOTTLE_DRY_RUN") == "1"
manifest = Manifest.resolve(USER_CWD)
spec = DockerBottleSpec(
spec = BottleSpec(
manifest=manifest,
agent_name=args.name,
copy_cwd=args.cwd,