Files
coder/coderd/templatebuilder/modules/claude-code/claude-code.tf.tmpl
T
Jeremy Ruppel 1cdb7ed9f7 feat(coderd/templatebuilder): author initial module catalog for 19 modules (#26194)
> [!NOTE]
> This PR was authored by Coder Agents on behalf of @jeremyruppel.

Runs the `scripts/modulegen` generator against the coder/registry to produce the initial module catalog for the template builder. Generates `module.json` and `.tf.tmpl` files for 19 modules across four categories:

- **IDE**: code-server, jetbrains, vscode-desktop, vscode-web, cursor, windsurf, zed, kiro
- **AI Agent**: claude-code, aider, goose, amazon-q
- **Source Control**: git-clone, git-config, git-commit-signing
- **Utility**: dotfiles, personalize, filebrowser, jupyterlab

Also updates `catalog_test.go` to validate the new embedded modules load correctly.
2026-06-15 09:26:39 -04:00

26 lines
1.1 KiB
Cheetah

variable "claude_code_oauth_token" {
description = "OAuth token passed to Claude Code via the CLAUDE_CODE_OAUTH_TOKEN env var. Generate one with `claude setup-token`."
type = string
sensitive = true
}
module "claude-code" {
count = data.coder_workspace.me.start_count
source = "{{ .RegistryBase }}/coder/claude-code/coder"
version = "{{ .PinnedVersion }}"
agent_id = coder_agent.{{ .AgentResourceName }}.id
anthropic_api_key = {{ .Variables.anthropic_api_key }}
claude_binary_path = {{ .Variables.claude_binary_path }}
claude_code_oauth_token = var.claude_code_oauth_token
claude_code_version = {{ .Variables.claude_code_version }}
disable_autoupdater = {{ .Variables.disable_autoupdater }}
enable_ai_gateway = {{ .Variables.enable_ai_gateway }}
icon = {{ .Variables.icon }}
install_claude_code = {{ .Variables.install_claude_code }}
mcp = {{ .Variables.mcp }}
model = {{ .Variables.model }}
post_install_script = {{ .Variables.post_install_script }}
pre_install_script = {{ .Variables.pre_install_script }}
workdir = {{ .Variables.workdir }}
}