Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(agentapi): add enable_tasks variable to conditionally create coder_ai_task resource#413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
blink-so wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromblink/agentapi-enable-tasks
Draft
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionsregistry/coder/modules/agentapi/README.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,6 +28,7 @@ module "agentapi" {
cli_app_display_name = "Goose CLI"
module_dir_name = local.module_dir_name
install_agentapi = var.install_agentapi
enable_tasks = var.enable_tasks # Set to false to disable AI tasks
pre_install_script = var.pre_install_script
post_install_script = var.post_install_script
start_script = local.start_script
Expand Down
9 changes: 8 additions & 1 deletionregistry/coder/modules/agentapi/main.tf
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -156,6 +156,11 @@ variable "module_dir_name" {
description = "Name of the subdirectory in the home directory for module files."
}

variable "enable_tasks" {
type = bool
description = "Whether to enable AI tasks. When false, the coder_ai_task resource will not be created, avoiding the requirement for an 'AI Prompt' parameter."
default = true
}

locals {
# we always trim the slash for consistency
Expand DownExpand Up@@ -240,7 +245,9 @@ resource "coder_app" "agentapi_cli" {
}

resource "coder_ai_task" "agentapi" {
count = var.enable_tasks ? 1 : 0

sidebar_app {
id = coder_app.agentapi_web.id
}
}
}

[8]ページ先頭

©2009-2025 Movatter.jp