Documentation
¶
Overview ¶
Package agentvm holds the files of this repository the binary embeds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( //go:embed LICENSE License string //go:embed NOTICE Notice string //go:embed THIRD_PARTY_LICENSES ThirdPartyLicenses string )
The license of agent-vm, the notice about third_party/, and the licenses of what the binary is built from (scripts/licenses): `agent-vm licenses`.
var SetupScript string
SetupScript provisions the base VM: `agent-vm setup` runs it in the guest, after the choices as export lines.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
agent-vm
command
Command agent-vm runs AI coding agents in a disposable Linux VM per project, with Lima built in.
|
Command agent-vm runs AI coding agents in a disposable Linux VM per project, with Lima built in. |
|
internal
|
|
|
bashref
Package bashref gives the results of the bash implementation (0.2's agent-vm.sh and lib/), for tests that compare the Go code with it.
|
Package bashref gives the results of the bash implementation (0.2's agent-vm.sh and lib/), for tests that compare the Go code with it. |
|
cli
Package cli is agent-vm's command line.
|
Package cli is agent-vm's command line. |
|
desktop
Package desktop reaches the user out of any terminal: notifications and yes/no dialogs, where the desktop has a way (osascript on macOS; notify-send, zenity or kdialog on Linux).
|
Package desktop reaches the user out of any terminal: notifications and yes/no dialogs, where the desktop has a way (osascript on macOS; notify-send, zenity or kdialog on Linux). |
|
env
Package env reads and writes agent-vm's env files, ~/.agent-vm/env and a project's .agent-vm.env, which the VM's shell sources: without ever running a shell on the host, since the VM can write the project's.
|
Package env reads and writes agent-vm's env files, ~/.agent-vm/env and a project's .agent-vm.env, which the VM's shell sources: without ever running a shell on the host, since the VM can write the project's. |
|
gitguard
Package gitguard finds what git on this machine runs, or reads, from the folders a VM can write: hooks, and commands its config names.
|
Package gitguard finds what git on this machine runs, or reads, from the folders a VM can write: hooks, and commands its config names. |
|
gitx
Package gitx runs git on this machine in folders the VM can write.
|
Package gitx runs git on this machine in folders the VM can write. |
|
guard
Package guard asks the user before the VM changes a file their machine runs on its own (direnv's .envrc when they enter the folder, the editor's tasks, git hooks' config): the shares' SFTP server calls Allow before each write (sshocker's Guard), in the hostagent.
|
Package guard asks the user before the VM changes a file their machine runs on its own (direnv's .envrc when they enter the folder, the editor's tasks, git hooks' config): the shares' SFTP server calls Allow before each write (sshocker's Guard), in the hostagent. |
|
host
Package host is what this machine can give a VM.
|
Package host is what this machine can give a VM. |
|
limaembed
Package limaembed runs what Lima's libraries expect of limactl: they start the current executable again for some commands (`hostagent`, from instance.Start), and look for the guest agent and the templates next to it.
|
Package limaembed runs what Lima's libraries expect of limactl: they start the current executable again for some commands (`hostagent`, from instance.Start), and look for the guest agent and the templates next to it. |
|
mounts
Package mounts is what a project's VM is given of this machine: the project, and the entries of ~/.agent-vm/volumes, each checked first.
|
Package mounts is what a project's VM is given of this machine: the project, and the entries of ~/.agent-vm/volumes, each checked first. |
|
netguard
Package netguard decides what a VM may reach on the network: the internet, never this machine, its local networks or the other VMs (through this machine's loopback, where their ports are forwarded), unless the user allows it in ~/.agent-vm/network.
|
Package netguard decides what a VM may reach on the network: the internet, never this machine, its local networks or the other VMs (through this machine's loopback, where their ports are forwarded), unless the user allows it in ~/.agent-vm/network. |
|
paths
Package paths compares and joins host paths as agent-vm's checks need: textually, as `cd` does, and whatever the case where the file system ignores it.
|
Package paths compares and joins host paths as agent-vm's checks need: textually, as `cd` does, and whatever the case where the file system ignores it. |
|
runscript
Package runscript is the runtime scripts: ~/.agent-vm/runtime.sh and a project's .agent-vm.runtime.sh, run in the VM on every command that enters it, under the shell their shebang names.
|
Package runscript is the runtime scripts: ~/.agent-vm/runtime.sh and a project's .agent-vm.runtime.sh, run in the VM on every command that enters it, under the shell their shebang names. |
|
state
Package state is agent-vm's folder, ~/.agent-vm (AGENT_VM_STATE_DIR): the user's files (env, volumes, runtime.sh, setup.sh) and agent-vm's markers, one file per VM and fact, named as 0.2 named them.
|
Package state is agent-vm's folder, ~/.agent-vm (AGENT_VM_STATE_DIR): the user's files (env, volumes, runtime.sh, setup.sh) and agent-vm's markers, one file per VM and fact, named as 0.2 named them. |
|
ui
Package ui asks questions on the terminal and prints agent-vm's boxed notices, as 0.2's lib/ui.sh did.
|
Package ui asks questions on the terminal and prints agent-vm's boxed notices, as 0.2's lib/ui.sh did. |
|
version
Package version is agent-vm's semantic version.
|
Package version is agent-vm's semantic version. |
|
vm
Copied from third_party/lima/cmd/limactl: the drivers limactl has.
|
Copied from third_party/lima/cmd/limactl: the drivers limactl has. |
|
vm/vmtest
Package vmtest is a vm.Backend for tests: VMs in memory, every call recorded.
|
Package vmtest is a vm.Backend for tests: VMs in memory, every call recorded. |
|
vmname
Package vmname names the VM of a project directory, as 0.2 did but for its prefix: the VMs it made are moved under those names (FromOld).
|
Package vmname names the VM of a project directory, as 0.2 did but for its prefix: the VMs it made are moved under those names (FromOld). |