Skip to content

Commit fb2578c

Browse files
committed
revert changes
1 parent 4d53c76 commit fb2578c

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

registry/coder/modules/claude-code/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ module "claude-code" {
2424
2525
## Prerequisites
2626

27-
- You must add the [Coder Login](https://registry.coder.com/modules/coder-login) module to your template for task reporting features.
2827
- An **Anthropic API key** is required for tasks. You can get one from the [Anthropic Console](https://console.anthropic.com/dashboard).
2928

3029
## Examples

registry/coder/modules/claude-code/main.tf

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ variable "install_agentapi" {
8383
default = true
8484
}
8585

86-
variable "use_agentapi" {
87-
type = bool
88-
description = "Whether to use agentapi"
89-
default = true
90-
}
91-
9286
variable "agentapi_version" {
9387
type = string
9488
description = "The version of AgentAPI to install."
@@ -191,34 +185,7 @@ locals {
191185
remove_last_session_id_script_b64 = base64encode(file("${path.module}/scripts/remove-last-session-id.sh"))
192186
}
193187

194-
data "coder_parameter" "ai_prompt" {
195-
count = var.ai_prompt ? 1 : 0
196-
197-
type = "string"
198-
name = "AI Prompt"
199-
default = var.ai_prompt
200-
description = "Initial prompt for the Codex CLI"
201-
mutable = true
202-
}
203-
204-
resource "coder_env" "mcp_status_slug" {
205-
count = var.report_tasks ? 1 : 0
206-
207-
agent_id = var.agent_id
208-
name = "CODER_MCP_APP_STATUS_SLUG"
209-
value = ""
210-
}
211-
212-
resource "coder_env" "mcp_ai_agentapi_url" {
213-
count = var.report_tasks ? 1 : 0
214-
215-
agent_id = var.agent_id
216-
name = "CODER_MCP_AI_AGENTAPI_URL"
217-
value = ""
218-
}
219-
220188
module "agentapi" {
221-
count = var.use_agentapi ? 1 : 0
222189

223190
source = "registry.coder.com/coder/agentapi/coder"
224191
version = "1.1.1"
@@ -252,7 +219,7 @@ module "agentapi" {
252219
ARG_DANGEROUSLY_SKIP_PERMISSIONS='${var.dangerously_skip_permissions}' \
253220
ARG_PERMISSION_MODE='${var.permission_mode}' \
254221
ARG_WORKDIR='${local.workdir}' \
255-
ARG_AI_PROMPT='${base64encode(data.coder_parameter.ai_prompt)}' \
222+
ARG_AI_PROMPT='${base64encode(var.ai_prompt)}' \
256223
/tmp/start.sh
257224
EOT
258225

0 commit comments

Comments
 (0)