Fix vm run guest repo path and add vm acp bridge
Normalize repo-backed guest checkouts to /root/repo so vm run, attach, and follow-on guest tooling stop depending on the source repository name. Add `banger vm acp [--cwd] <vm>` as an SSH stdio bridge to guest `opencode acp`, defaulting to /root/repo when that checkout exists and falling back to /root. Update the README and CLI coverage around the fixed guest path and ACP command. Validation: go test ./internal/cli, go test ./..., make build.
This commit is contained in:
parent
dbc70643c3
commit
5f89c07fc0
3 changed files with 210 additions and 12 deletions
|
|
@ -120,7 +120,9 @@ Start a repo-backed VM session and attach `opencode` automatically:
|
|||
./build/bin/banger vm run ../some-repo --branch feature/alpine --from HEAD
|
||||
```
|
||||
|
||||
`vm run` resolves the enclosing git repository, creates a VM, copies a git checkout plus current tracked and untracked non-ignored files into `/root/<repo-name>`, starts a best-effort guest tooling harness that inspects the repo and installs clearly-needed tools with `mise`, and then prefers a host-side `opencode attach` session when the local client supports it. Older host opencode clients fall back to starting `opencode` inside the guest over SSH. The harness runs asynchronously and logs its output inside the guest.
|
||||
`vm run` resolves the enclosing git repository, creates a VM, copies a git checkout plus current tracked and untracked non-ignored files into `/root/repo`, starts a best-effort guest tooling harness that inspects the repo and installs clearly-needed tools with `mise`, and then prefers a host-side `opencode attach` session when the local client supports it. Older host opencode clients fall back to starting `opencode` inside the guest over SSH. The harness runs asynchronously and logs its output inside the guest.
|
||||
|
||||
For ACP-aware host tools, `./build/bin/banger vm acp <vm-name>` bridges stdio to guest `opencode acp` over SSH. It uses `/root/repo` when that checkout exists, otherwise `/root`, and `--cwd` lets you override the guest working directory explicitly.
|
||||
|
||||
## Web UI
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue