@@ -38,7 +38,7 @@ variable "icon" {
3838
3939variable "folder" {
4040 type = string
41- description = " The folder to run Codex in."
41+ description = " The folder to run Auggie in."
4242}
4343
4444variable "install_auggie" {
@@ -51,6 +51,10 @@ variable "auggie_version" {
5151 type = string
5252 description = " The version of Auggie to install."
5353 default = " " # empty string means the latest available version
54+ validation {
55+ condition = var. auggie_version == " " || can (regex (" ^v?[0-9]+\\ .[0-9]+\\ .[0-9]+" , var. auggie_version ))
56+ error_message = " auggie_version must be empty (for latest) or a valid semantic version like 'v1.2.3' or '1.2.3'."
57+ }
5458}
5559
5660variable "install_agentapi" {
@@ -63,17 +67,21 @@ variable "agentapi_version" {
6367 type = string
6468 description = " The version of AgentAPI to install."
6569 default = " v0.6.0"
70+ validation {
71+ condition = can (regex (" ^v[0-9]+\\ .[0-9]+\\ .[0-9]+" , var. agentapi_version ))
72+ error_message = " agentapi_version must be a valid semantic version starting with 'v', like 'v0.3.3'."
73+ }
6674}
6775
6876variable "pre_install_script" {
6977 type = string
70- description = " Custom script to run before installing Codex ."
78+ description = " Custom script to run before installing Auggie ."
7179 default = null
7280}
7381
7482variable "post_install_script" {
7583 type = string
76- description = " Custom script to run after installing Codex ."
84+ description = " Custom script to run after installing Auggie ."
7785 default = null
7886}
7987
@@ -131,6 +139,30 @@ variable "auggie_model" {
131139 default = " "
132140}
133141
142+ variable "report_tasks" {
143+ type = bool
144+ description = " Whether to enable task reporting to Coder UI via AgentAPI"
145+ default = false
146+ }
147+
148+ variable "cli_app" {
149+ type = bool
150+ description = " Whether to create a CLI app for Auggie"
151+ default = true
152+ }
153+
154+ variable "web_app_display_name" {
155+ type = string
156+ description = " Display name for the web app"
157+ default = " Auggie"
158+ }
159+
160+ variable "cli_app_display_name" {
161+ type = string
162+ description = " Display name for the CLI app"
163+ default = " Auggie CLI"
164+ }
165+
134166resource "coder_env" "auggie_session_auth" {
135167 agent_id = var. agent_id
136168 name = " AUGMENT_SESSION_AUTH"
@@ -153,9 +185,10 @@ module "agentapi" {
153185 web_app_order = var. order
154186 web_app_group = var. group
155187 web_app_icon = var. icon
156- web_app_display_name = " Auggie"
157- cli_app_slug = " ${ local . app_slug } -cli"
158- cli_app_display_name = " Auggie CLI"
188+ web_app_display_name = var. web_app_display_name
189+ cli_app = var. cli_app
190+ cli_app_slug = var. cli_app ? " ${ local . app_slug } -cli" : null
191+ cli_app_display_name = var. cli_app ? var. cli_app_display_name : null
159192 module_dir_name = local. module_dir_name
160193 install_agentapi = var. install_agentapi
161194 agentapi_version = var. agentapi_version
@@ -176,6 +209,7 @@ module "agentapi" {
176209 ARG_AUGGIE_INTERACTION_MODE='${ var . interaction_mode } ' \
177210 ARG_AUGMENT_SESSION_AUTH='${ var . augment_session_token } ' \
178211 ARG_AUGGIE_MODEL='${ var . auggie_model } ' \
212+ ARG_REPORT_TASKS='${ var . report_tasks } ' \
179213 /tmp/start.sh
180214 EOT
181215
0 commit comments