mirror of
https://github.com/coder/coder.git
synced 2026-09-24 06:47:27 +08:00
Part of the Template Builder wizard PR stack. ## Backend fixes 1. **Registry URL scheme fix**: Default `CODER_TEMPLATE_BUILDER_REGISTRY_URL` was `https://registry.coder.com` but Terraform module registry addresses must be scheme-less. Changed to `registry.coder.com`. 2. **Sensitive variable defaults**: Module `.tf.tmpl` files for claude-code, aider, amazon-q had sensitive `variable` blocks without `default`, causing `terraform plan` to fail during template import. Also fixed the `templatebuildermodulegen` script. 3. **Auto-quote string variables**: The backend now accepts raw string values from callers and wraps them in HCL quotes automatically. Previously callers were required to send pre-quoted HCL literals, which is not a reasonable API contract. --- > [!NOTE] > Generated by Coder Agents on behalf of @jeremyruppel
33 lines
1.4 KiB
Cheetah
33 lines
1.4 KiB
Cheetah
|
|
variable "api_key" {
|
|
description = "API key for the selected AI provider. This will be set as the appropriate environment variable based on the provider."
|
|
type = string
|
|
default = ""
|
|
sensitive = true
|
|
}
|
|
module "aider" {
|
|
count = data.coder_workspace.me.start_count
|
|
source = "{{ .RegistryBase }}/coder/aider/coder"
|
|
version = "{{ .PinnedVersion }}"
|
|
agent_id = coder_agent.{{ .AgentResourceName }}.id
|
|
agentapi_version = {{ .Variables.agentapi_version }}
|
|
ai_prompt = {{ .Variables.ai_prompt }}
|
|
ai_provider = {{ .Variables.ai_provider }}
|
|
api_key = var.api_key
|
|
base_aider_config = {{ .Variables.base_aider_config }}
|
|
cli_app = {{ .Variables.cli_app }}
|
|
cli_app_display_name = {{ .Variables.cli_app_display_name }}
|
|
custom_env_var_name = {{ .Variables.custom_env_var_name }}
|
|
experiment_additional_extensions = {{ .Variables.experiment_additional_extensions }}
|
|
icon = {{ .Variables.icon }}
|
|
install_agentapi = {{ .Variables.install_agentapi }}
|
|
install_aider = {{ .Variables.install_aider }}
|
|
model = {{ .Variables.model }}
|
|
post_install_script = {{ .Variables.post_install_script }}
|
|
pre_install_script = {{ .Variables.pre_install_script }}
|
|
report_tasks = {{ .Variables.report_tasks }}
|
|
system_prompt = {{ .Variables.system_prompt }}
|
|
web_app_display_name = {{ .Variables.web_app_display_name }}
|
|
workdir = {{ .Variables.workdir }}
|
|
}
|