Files
devvm/testdata/coverage/linux.txt
T
w3cjandClaude Opus 5.5 329e31be1d refactor(secrets): the proxy looks secrets up in-process, from one versioned bindings file
The proxy no longer runs devvm secret get for a value: proxy.IO.Secret,
which devvm _proxy sets to secrets.Store.Get, looks a binding's value up
in the proxy's own process (Keychain, devvm's secrets folder, or the
agent's login file), so internal/proxy stays standard library only.
Config.SecretCmd (secret_cmd) and the hidden devvm secret get command go,
with secret_to_terminal and secret_read_failed; Main refuses a config
with secrets and no IO.Secret.

One binding type, proxy.Binding, with kind secret|login and a login's
agent, in proxy.BindingList ({"version": 1, "bindings": [...]}), written
by secrets.Store (Encode) and read by the proxy and RefreshFiles with
proxy.ReadBindings (private regular file, no link, 1 MiB, version and
kinds checked; an unreadable file has no bindings). It replaces
proxy.binding, secrets.binding and agentlogin.Binding; the kind replaces
the name-prefix classifiers in proxy.ttlOf, secrets.loginOf and
RefreshFiles' Lookup check; proxy.InterceptLines replaces
agentlogin.Hosts and RefreshFiles' host loop.

agentlogin's user-actionable errors are typed (ErrCodexNoKey,
ErrCodexNoChatGPT, RefreshError) and secrets maps them to messages:
codex_no_key, codex_no_chatgpt, codex_refresh_failed,
opencode_refresh_failed, and login_read_failed for the rest.

Tests: proxy TestSecretValueLooksUpInProcess, TestReadBindings,
TestBindingsUnreadableHaveNone, ttlOf by kind, Main refusing secrets
without a lookup and -secret-cmd, config refusing secret_cmd; secrets
TestGet by kind, TestLoginFailed; agentlogin TestCodexBindings (kind and
agent checked on every binding), TestGetErrorsSayWhatToDo; secret.txtar
and network.txtar on the new file and without secret get; e2e's network
section keeps the fake token off argv and checks no command prints it.

Docs: the proxy README (Secrets section), internals/network.md,
safety/network.md, using/coding-agents.md, contributing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:35:25 -07:00

44 lines
1.1 KiB
Plaintext

# Each package's test coverage, in percent: the unit tests and the CLI tests together.
# mise run test fails when a package drops below its line; mise run coverage raises them.
cmd/devvm 100.0
internal/agentlogin 94.4
internal/backend 95.7
internal/backend/backendtest 46.5
internal/backend/lima 88.4
internal/backend/registry 100.0
internal/build 87.3
internal/cli 88.5
internal/cli/docgen 85.1
internal/daemon 97.9
internal/desktop 77.2
internal/devcontainer 96.8
internal/fetch 96.6
internal/from 91.3
internal/gitprotect 92.2
internal/hostgit 100.0
internal/image 97.5
internal/jsonc 97.1
internal/msg 68.6
internal/msg/gen 93.3
internal/netpolicy 87.4
internal/paths 97.8
internal/platform 80.9
internal/ports 90.0
internal/project 91.5
internal/proxy 88.9
internal/secrets 91.3
internal/settings 95.3
internal/shell 100.0
internal/sshagent 84.2
internal/sshconfig 88.3
internal/state 93.8
internal/stubtest 81.0
internal/testbuild 100.0
internal/tools 89.4
internal/trust 93.9
internal/ubuntu 92.5
internal/ui 94.4
internal/vm 85.6
internal/vmname 100.0
internal/vmssh 87.7