Closes #305 ## Summary - Add new module `registry/coder-labs/modules/cursor-cli` to run Cursor Agent CLI directly (no AgentAPI) - Interactive chat by default; supports non-interactive mode (-p) with output-format - Supports model (-m) and force (-f) flags, initial prompt, and CURSOR_API_KEY - Merges MCP settings into ~/.cursor/settings.json - Installs via npm, bootstrapping Node via NVM if missing (mirrors gemini approach) - Adds Terraform-native tests (.tftest.hcl); all pass locally ## Test plan - From module dir: - terraform init -upgrade - terraform test -verbose - Expect 4 tests passing covering defaults, flag plumbing, and MCP settings injection - Basic smoke run: ensure `cursor-agent` is on PATH or set install_cursor_cli=true --------- Co-authored-by: DevCats <christofer@coder.com> Co-authored-by: 35C4n0r <work.jaykumar@gmail.com> Co-authored-by: 35C4n0r <70096901+35C4n0r@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
14 lines
208 B
Bash
14 lines
208 B
Bash
#!/bin/bash
|
|
|
|
if [[ "$1" == "--version" ]]; then
|
|
echo "HELLO: $(bash -c env)"
|
|
echo "cursor-agent version v2.5.0"
|
|
exit 0
|
|
fi
|
|
|
|
set -e
|
|
|
|
while true; do
|
|
echo "$(date) - cursor-agent-mock"
|
|
sleep 15
|
|
done |