mini-me v1.0.8
mm sbxinit writes a simpler sbxenv.yaml for a .mm project: no PROJECT_DIR argument and no --env-arg on the sbx env commands.
New
mm sbxinit without PROJECT_DIR (#209)
In v1.0.7, mm sbxinit wrote two more blocks for a project whose agent is .mm/agent.yaml: a required PROJECT_DIR argument, and AGENT_CONFIG built from it. Every sbx env command then needed --env-arg PROJECT_DIR="$PWD". They were there so that the file would also work with a kit that ships an mm older than v1.0.7.
mm sbxinit always writes the latest kit. From mini-me-kit:0.1.5 on, the kit ships mm 1.0.7 or later, which finds .mm/agent.yaml on its own when it starts in the workspace. The two blocks are gone, and so is the argument:
sbx env create --force
sbx env run --force
The mounts do not change. .mm/ is still mounted read-only over the workspace, the agent file's sessions.dir and trace.dir are writable again, and every path is relative to the folder of sbxenv.yaml. A comment in the file says why it sets no AGENT_CONFIG.
Checked in a Docker Sandbox with mini-me-kit:0.1.5: mm starts in the workspace and reads .mm/agent.yaml with no PROJECT_DIR.
See How to run mini-me in a Docker Sandbox.
Documentation
- The Docker Sandbox guide, in its
.mmsection:- shows the file without
argsandenv; - says what to do if the banner shows
config: built-in defaults; - says how to clean a file written by
mm sbxinit1.0.7; - gives the editor settings (Zed) that run mm in the sandbox with
sbx exec … mm -acp -config <absolute path of .mm/agent.yaml>.
- shows the file without
- The CLI reference describes the new
mm sbxinitoutput for a.mmproject.
Upgrading
- Agent files do not change. Replace the binary: see the install guides for macOS, Linux and Windows.
- A
sbxenv.yamlwritten bymm sbxinit1.0.7 for a.mmproject still works. With a kit of 0.1.5 or later, you can remove itsargs:andenv:blocks, then drop--env-argfrom the commands. You can also runmm sbxinitagain and answeryesto replace the file. - A sandbox keeps the kit and the mounts it was created with. After changing the file, remove it once with the old command (
sbx env rm --force --env-arg PROJECT_DIR="$PWD"), then create it again withsbx env run --force.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|