CreateEnvironment mirrors environment_create MCP tool behavior
(title, explanation string)
| 228 | |
| 229 | // CreateEnvironment mirrors environment_create MCP tool behavior |
| 230 | func (u *UserActions) CreateEnvironment(title, explanation string) *environment.Environment { |
| 231 | env, err := u.repo.Create(u.ctx, u.dag, title, explanation, "HEAD") |
| 232 | require.NoError(u.t, err, "Create environment should succeed") |
| 233 | return env |
| 234 | } |
| 235 | |
| 236 | // UpdateEnvironment mirrors environment_update MCP tool behavior |
| 237 | func (u *UserActions) UpdateEnvironment(envID, title, explanation string, config *environment.EnvironmentConfig) { |