mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
A link out of an agent's folder, such as a dotfiles repo's link into ~/.claude, was always left out. Now it's copied when you allow it: config.toml's follow-links names folders whose links devvm follows without asking, and otherwise devvm names each link and its target and asks, a question --follow-links answers. Without a terminal and the flag, links out are left out with a warning naming --follow-links. - The store gets copies only: a linked file as a file, a linked folder as a folder of files; the next import replaces them, a folder that became a file included, and prunes them once the link is gone. - Each link is resolved one name at a time (linkHops), then read through its allowed folder as a safefile.Root opened one folder at a time from / (openPhysical); a link inside is read only to a file in that root. - Always refused: the home folder or a folder holding it, devvm's config, data and Lima folders, ~/.ssh, ~/.gnupg, ~/.aws, ~/Library/Keychains, ~/.config/devvm, ~/.netrc, ~/.config/gh, ~/.docker, ~/.kube, and every agent's logins and history, compared by name and identity (isIn); a follow-links folder in or holding one fails the import. - A target in a VM's project folder warns, naming the VM; a chain through a link in a VM's folder to a place outside it is refused. - Bounds: devvm agent save's, 20,000 entries, 128 MiB and 16 MiB a file, across one import. - A settings file must link to a file and a settings folder to a folder. Messages: agent_import_link_not_followed, agent_import_link_refused, agent_import_link_too_big, agent_import_follow, agent_import_link, agent_import_link_followed, agent_import_link_project, agent_import_link_via_vm, agent_import_root_refused, follow_links_invalid. Tests: TestAgentImportFollowsLinks, TestAgentImportNestedLinks, TestAgentImportRefusedPlaces, TestAgentImportRefusedRoots, TestAgentImportProjectFolderLinks, TestAgentImportLinkThroughProject, TestAgentImportRefusedOtherCase, TestAgentImportLinkBounds, TestLinkSourceGrown, TestAgentImportLinkKinds, TestAgentImportLinkPrune, TestAgentImportLinkedAgentFolder, TestLinkHops, TestOpenPhysical, TestFollowLinks; testscript agent_import_links; e2e project section. Co-Authored-By: Claude Opus 5.5 <[email protected]>