refactor!: rename project to bot-bottle
Assisted-by: Codex
This commit is contained in:
@@ -24,26 +24,26 @@ which version you want before starting.
|
||||
|
||||
## Current Docker surface area
|
||||
|
||||
The places claude-bottle shells out to `docker` today:
|
||||
The places bot-bottle shells out to `docker` today:
|
||||
|
||||
- `build` — base image plus a per-cwd derived image
|
||||
(`claude_bottle/docker.py:67-103`).
|
||||
(`bot_bottle/docker.py:67-103`).
|
||||
- `run` — with `--runtime`, `--env-file`, `-e`, `--name`, `--network`,
|
||||
and volume mounts (`claude_bottle/cli/start.py:217-261`).
|
||||
and volume mounts (`bot_bottle/cli/start.py:217-261`).
|
||||
- `exec -it` / `exec -u 0` — for `claude` itself, file-ownership fixups,
|
||||
and SSH provisioning (`claude_bottle/ssh.py`, `claude_bottle/skills.py`,
|
||||
`claude_bottle/cli/start.py`).
|
||||
and SSH provisioning (`bot_bottle/ssh.py`, `bot_bottle/skills.py`,
|
||||
`bot_bottle/cli/start.py`).
|
||||
- `cp` — skills, SSH keys, the prompt file, the workspace `.git`,
|
||||
and the pipelock config
|
||||
(`claude_bottle/skills.py:73`, `claude_bottle/ssh.py:106`,
|
||||
`claude_bottle/cli/start.py:279`, `claude_bottle/pipelock.py:218`).
|
||||
(`bot_bottle/skills.py:73`, `bot_bottle/ssh.py:106`,
|
||||
`bot_bottle/cli/start.py:279`, `bot_bottle/pipelock.py:218`).
|
||||
- `network create` / `connect` / `inspect` / `rm` — bottle network plus
|
||||
multi-network attach for the pipelock sidecar
|
||||
(`claude_bottle/network.py`, `claude_bottle/pipelock.py:227`).
|
||||
(`bot_bottle/network.py`, `bot_bottle/pipelock.py:227`).
|
||||
- `create` / `start` / `rm -f` — pipelock sidecar lifecycle
|
||||
(`claude_bottle/pipelock.py:207-258`).
|
||||
(`bot_bottle/pipelock.py:207-258`).
|
||||
- Misc preflight: `image inspect`, `ps -a -f name=^...$`, `info` for
|
||||
registered runtimes (`claude_bottle/docker.py`).
|
||||
registered runtimes (`bot_bottle/docker.py`).
|
||||
|
||||
## Mapping to Apple's `container`
|
||||
|
||||
@@ -60,10 +60,10 @@ The places claude-bottle shells out to `docker` today:
|
||||
|
||||
Roughly two weeks for one person, split as:
|
||||
|
||||
1. **Backend abstraction (1–2 days).** `claude_bottle/docker.py` is
|
||||
already a partial seam, but `claude_bottle/network.py`,
|
||||
`claude_bottle/pipelock.py`, `claude_bottle/ssh.py`,
|
||||
`claude_bottle/skills.py`, and `claude_bottle/cli/start.py` all call
|
||||
1. **Backend abstraction (1–2 days).** `bot_bottle/docker.py` is
|
||||
already a partial seam, but `bot_bottle/network.py`,
|
||||
`bot_bottle/pipelock.py`, `bot_bottle/ssh.py`,
|
||||
`bot_bottle/skills.py`, and `bot_bottle/cli/start.py` all call
|
||||
`subprocess.run(["docker", ...])` directly. Define a `Backend`
|
||||
protocol — `run`, `exec`, `cp`, `build`, `network_create`,
|
||||
`network_connect`, `inspect`, `rm` — route every call through it,
|
||||
|
||||
Reference in New Issue
Block a user