Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions registry/coder-labs/modules/cursor-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Run the Cursor Agent CLI in your workspace for interactive coding assistance and
```tf
module "cursor_cli" {
source = "registry.coder.com/coder-labs/cursor-cli/coder"
version = "0.2.2"
version = "0.3.0"
agent_id = coder_agent.main.id
folder = "/home/coder/project"
}
Expand Down Expand Up @@ -42,8 +42,8 @@ module "coder-login" {
module "cursor_cli" {
source = "registry.coder.com/coder-labs/cursor-cli/coder"
version = "0.2.2"
agent_id = coder_agent.main.id
version = "0.3.0"
agent_id = coder_agent.example.id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
agent_id = coder_agent.example.id
agent_id = coder_agent.main.id

folder = "/home/coder/project"
# Optional
Expand Down
2 changes: 1 addition & 1 deletion registry/coder-labs/modules/cursor-cli/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe("cursor-cli", async () => {
"-c",
"cat /home/coder/.cursor-cli-module/agentapi-start.log || cat /home/coder/.cursor-cli-module/start.log || true",
]);
expect(startLog.stdout).toContain(`-m ${model}`);
expect(startLog.stdout).toContain(`--model ${model}`);
expect(startLog.stdout).toContain("-f");
expect(startLog.stdout).toContain("test prompt");
});
Expand Down
8 changes: 6 additions & 2 deletions registry/coder-labs/modules/cursor-cli/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = ">= 2.7"
version = ">= 2.12"
}
}
}
Expand Down Expand Up @@ -132,7 +132,7 @@ resource "coder_env" "cursor_api_key" {

module "agentapi" {
source = "registry.coder.com/coder/agentapi/coder"
version = "1.2.0"
version = "2.0.0"

agent_id = var.agent_id
folder = local.folder
Expand Down Expand Up @@ -179,3 +179,7 @@ module "agentapi" {
/tmp/install.sh
EOT
}

output "task_app_id" {
value = module.agentapi.task_app_id
}
2 changes: 1 addition & 1 deletion registry/coder-labs/modules/cursor-cli/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ARGS=()

# global flags
if [ -n "$ARG_MODEL" ]; then
ARGS+=("-m" "$ARG_MODEL")
ARGS+=("--model" "$ARG_MODEL")
fi
if [ "$ARG_FORCE" = "true" ]; then
ARGS+=("-f")
Expand Down