You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes #
## Description
- remove default node installation
- users can pass amp versions now
- move env variables to terraform variable (system prompt and ai prompt)
<!-- Briefly describe what this PR does and why -->
## Type of Change
- [ ] New module
- [ ] Bug fix
- [x] Feature/enhancement
- [ ] Documentation
- [ ] Other
## Module Information
<!-- Delete this section if not applicable -->
**Path:** `registry/coder-labs/modules/sourcegraph-amp`
**New version:** `v2.0.0`
**Breaking change:** [x] Yes [ ] No
## Testing & Validation
- [x] Tests pass (`bun test`)
- [x] Code formatted (`bun run fmt`)
- [x] Changes tested locally
## Related Issues
<!-- Link related issues or write "None" if not applicable -->
---------
Co-authored-by: DevCats <christofer@coder.com>
Co-authored-by: Atif Ali <me@matifali.dev>
-**Install**: Installs Sourcegraph Amp CLI using npm (installs Node.js via NVM if required)
73
-
-**Start**: Launches Amp CLI in the specified directory, wrapped with AgentAPI to enable tasks and AI interactions
74
-
-**Environment Variables**: Sets `SOURCEGRAPH_AMP_API_KEY` and `SOURCEGRAPH_AMP_START_DIRECTORY` for the CLI execution
75
-
76
80
## Troubleshooting
77
81
78
-
- If `amp` is not found, ensure `install_sourcegraph_amp = true` and your API key is valid
79
-
- Logs are written under `/home/coder/.sourcegraph-amp-module/` (`install.log`, `agentapi-start.log`) for debugging
82
+
- If `amp` is not found, ensure `install_amp = true` and your API key is valid
83
+
- Logs are written under `/home/coder/.amp-module/` (`install.log`, `agentapi-start.log`) for debugging
80
84
- If AgentAPI fails to start, verify that your container has network access and executable permissions for the scripts
81
85
82
86
> [!IMPORTANT]
83
-
> For using **Coder Tasks** with Amp CLI, make sure to pass the `AI Prompt` parameter and set `sourcegraph_amp_api_key`.
87
+
> To use tasks with Amp CLI, create a `coder_parameter` named `"AI Prompt"` and pass its value to the amp-cli module's `ai_prompt` variable. The `folder` variable is required for the module to function correctly.
88
+
> For using **Coder Tasks** with Amp CLI, make sure to set `amp_api_key`.
84
89
> This ensures task reporting and status updates work seamlessly.
0 commit comments