replying to @dtinth
Glad it works! If you want it in agent-env itself (an SMB option in the configurator, or Samba in the image), say the word.
480bb82
gateway): an edge hole must not land in the account with sudo, and dev's code must not read its secrets
- the…component.env - how about toml?
- run - I think this can link to a folder with pitchfork.toml so we can run pitchfork on it.
- I don't like the *_ENABLED env. Maybe better to have it not run in the…agent-env-component.toml?
I think we should also have some kind of support for startup script or hook which runs before we start user-level pitchfork. Then this would let me write script that provision. I would put it in a compose…agent-env component install . which idempotently creates a symlink. Name is defined in toml and it refuses to replace a symlink if already installed but points to different folder unless --force? It should lint stuff…agent-env component install . reads the name from agent-env-component.toml and symlinks ~/.config/agent-env/components/<name>. It's a no-op if the link already points here, refuses if it points elsewhere unless --force. Plus uninstall <name> and list.…conf.d/agent-env-<name>.toml. And also deletes the ones not listed?mise install. Tested: mise reads a conf.d symlink pointing outside ~/.config with no trust prompt, [env] included.
Deleting: the reconciler owns every…agent-env opencode in the first place? What is it for, like what are its use cases? No need to keep backwards compatibility tho.
Btw just noting, before you start the implementation I want you to make a docs describing the component system. Then, have a…agent-env tui cds to the workspace, waits for the server and runs opencode --server .... But env.sh already sets OPENCODE_SERVER and its password in login shells, so plain opencode attaches to the same server.
- agent-env password prints a value env.sh already exports as $OPENCODE_SERVER_PASSWORD.
So I'd drop commands/ from the convention. A component that wants a helper ships bin/, linked into ~/.local/bin when installed (lint: no clash with another component's command). Then helpers are ordinary commands, not agent-env subcommands. OK?
Noted on the docs: before any code I'll write a doc for the component system, have a Haiku subagent review it as a user who reads only that file, and iterate until it reads clearly. Then I'll show you.commit 480bb82