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
Completely restore cursor module to original state
- Undo all changes to existing cursor module
- Keep only the new cursor-cli module
- Ensure backward compatibility
Co-authored-by: matifali <10648092+matifali@users.noreply.github.com>
Copy file name to clipboardExpand all lines: registry/coder/modules/cursor/main.tf
+26-98Lines changed: 26 additions & 98 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ terraform {
4
4
required_providers {
5
5
coder={
6
6
source ="coder/coder"
7
-
version =">= 2.7"
7
+
version =">= 2.5"
8
8
}
9
9
}
10
10
}
@@ -14,32 +14,10 @@ variable "agent_id" {
14
14
description="The ID of a Coder agent."
15
15
}
16
16
17
-
data"coder_workspace""me" {}
18
-
19
-
data"coder_workspace_owner""me" {}
20
-
21
-
variable"order" {
22
-
type=number
23
-
description="The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order)."
24
-
default=null
25
-
}
26
-
27
-
variable"group" {
28
-
type=string
29
-
description="The name of a group that this app belongs to."
30
-
default=null
31
-
}
32
-
33
-
variable"icon" {
34
-
type=string
35
-
description="The icon to use for the app."
36
-
default="/icon/cursor.svg"
37
-
}
38
-
39
17
variable"folder" {
40
18
type=string
41
-
description="The folder to run Cursor in."
42
-
default="/home/coder"
19
+
description="The folder to open in Cursor IDE."
20
+
default=""
43
21
}
44
22
45
23
variable"open_recent" {
@@ -48,106 +26,56 @@ variable "open_recent" {
48
26
default=false
49
27
}
50
28
51
-
variable"install_cursor_cli" {
52
-
type=bool
53
-
description="Whether to install Cursor CLI."
54
-
default=true
55
-
}
56
-
57
-
variable"install_agentapi" {
58
-
type=bool
59
-
description="Whether to install AgentAPI."
60
-
default=true
61
-
}
62
-
63
-
variable"agentapi_version" {
64
-
type=string
65
-
description="The version of AgentAPI to install."
66
-
default="v0.3.3"
67
-
}
68
-
69
-
variable"subdomain" {
70
-
type=bool
71
-
description="Whether to use a subdomain for AgentAPI."
72
-
default=true
29
+
variable"order" {
30
+
type=number
31
+
description="The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order)."
32
+
default=null
73
33
}
74
34
75
-
variable"pre_install_script" {
35
+
variable"group" {
76
36
type=string
77
-
description="Custom script to run before installing Cursor CLI."
37
+
description="The name of a group that this app belongs to."
78
38
default=null
79
39
}
80
40
81
-
variable"post_install_script" {
41
+
variable"slug" {
82
42
type=string
83
-
description="Custom script to run after installing Cursor CLI."
0 commit comments