2 Commits
Author SHA1 Message Date
w3cjandClaude Opus 5.5 8d44175601 refactor: the Go module is github.com/devvmhq/devvm
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 06:16:29 -07:00
w3cjandClaude Opus 5.5 ac5aaeef0c refactor(vmssh): one checked ssh for a VM, vmssh.Checked
vmssh.Checked(ctx, dirs, review, backend, vm, ReadKeys|PinKeys) is the one
way to a running VM's ssh: the review lets the backend's ssh through, its
SSH target passes FromTarget, and the VM's host keys for its current start
are read (KnownHostsFor) or pinned (PinHostKeys). It returns a Reach (SSH,
the backend's other ssh options, the record's start). A failure before the
host keys is an *UnusableError, the host keys' own wrap ErrNoHostKeys.

It replaces vm's ownSSH body (ReadKeys), Forwards.start (PinKeys; Forwards
gets a Review, from NewForwards) and sshconfig.Write (PinKeys, skipping
UnusableError and ErrNoHostKeys; the start now comes from the record, not a
second Running). Tests: TestChecked (refused, stopped, off loopback, read
before a pin, pin, read, another start).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:30:08 -07:00