Skip to content

Commit c96194e

Browse files
chore: rename module from copilot-cli to copilot
1 parent 5713bda commit c96194e

File tree

7 files changed

+59
-59
lines changed

7 files changed

+59
-59
lines changed

registry/coder-labs/modules/copilot-cli/README.md renamed to registry/coder-labs/modules/copilot/README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
display_name: Copilot CLI
2+
display_name: Copilot
33
description: GitHub Copilot CLI agent for AI-powered terminal assistance
44
icon: ../../../../.icons/github.svg
55
verified: false
66
tags: [agent, copilot, ai, github, tasks]
77
---
88

9-
# Copilot CLI
9+
# Copilot
1010

1111
Run [GitHub Copilot CLI](https://docs.github.com/copilot/concepts/agents/about-copilot-cli) in your workspace for AI-powered coding assistance directly from the terminal. This module integrates with [AgentAPI](https://github.com/coder/agentapi) for task reporting in the Coder UI.
1212

1313
```tf
14-
module "copilot_cli" {
15-
source = "registry.coder.com/coder-labs/copilot-cli/coder"
14+
module "copilot" {
15+
source = "registry.coder.com/coder-labs/copilot/coder"
1616
version = "0.1.0"
1717
agent_id = coder_agent.example.id
1818
workdir = "/home/coder/projects"
@@ -32,25 +32,25 @@ module "copilot_cli" {
3232
- **GitHub authentication** via one of:
3333
- [Coder external authentication](https://coder.com/docs/admin/external-auth) (recommended)
3434
- Direct token via `github_token` variable
35-
- Interactive login in Copilot CLI
35+
- Interactive login in Copilot
3636

3737
## Examples
3838

3939
### Usage with Tasks
4040

41-
For development environments where you want Copilot CLI to have full access to tools and automatically resume sessions:
41+
For development environments where you want Copilot to have full access to tools and automatically resume sessions:
4242

4343
```tf
4444
data "coder_parameter" "ai_prompt" {
4545
type = "string"
4646
name = "AI Prompt"
4747
default = ""
48-
description = "Initial task prompt for Copilot CLI."
48+
description = "Initial task prompt for Copilot."
4949
mutable = true
5050
}
5151
52-
module "copilot_cli" {
53-
source = "registry.coder.com/coder-labs/copilot-cli/coder"
52+
module "copilot" {
53+
source = "registry.coder.com/coder-labs/copilot/coder"
5454
version = "0.1.0"
5555
agent_id = coder_agent.example.id
5656
workdir = "/home/coder/projects"
@@ -66,11 +66,11 @@ module "copilot_cli" {
6666

6767
### Advanced Configuration
6868

69-
Customize tool permissions, MCP servers, and Copilot CLI settings:
69+
Customize tool permissions, MCP servers, and Copilot settings:
7070

7171
```tf
72-
module "copilot_cli" {
73-
source = "registry.coder.com/coder-labs/copilot-cli/coder"
72+
module "copilot" {
73+
source = "registry.coder.com/coder-labs/copilot/coder"
7474
version = "0.1.0"
7575
agent_id = coder_agent.example.id
7676
workdir = "/home/coder/projects"
@@ -79,7 +79,7 @@ module "copilot_cli" {
7979
allow_tools = ["shell(git)", "shell(npm)", "write"]
8080
trusted_directories = ["/home/coder/projects", "/tmp"]
8181
82-
# Custom Copilot CLI configuration
82+
# Custom Copilot configuration
8383
copilot_config = jsonencode({
8484
banner = "never"
8585
theme = "dark"
@@ -137,8 +137,8 @@ variable "github_token" {
137137
sensitive = true
138138
}
139139
140-
module "copilot_cli" {
141-
source = "registry.coder.com/coder-labs/copilot-cli/coder"
140+
module "copilot" {
141+
source = "registry.coder.com/coder-labs/copilot/coder"
142142
version = "0.1.0"
143143
agent_id = coder_agent.example.id
144144
workdir = "/home/coder/projects"
@@ -148,11 +148,11 @@ module "copilot_cli" {
148148

149149
### Standalone Mode
150150

151-
Run Copilot CLI as a command-line tool without task reporting or web interface. This installs and configures Copilot CLI, making it available as a CLI app in the Coder agent bar that you can launch to interact with Copilot CLI directly from your terminal. Set `report_tasks = false` to disable integration with Coder Tasks.
151+
Run Copilot as a command-line tool without task reporting or web interface. This installs and configures Copilot, making it available as a CLI app in the Coder agent bar that you can launch to interact with Copilot directly from your terminal. Set `report_tasks = false` to disable integration with Coder Tasks.
152152

153153
```tf
154-
module "copilot_cli" {
155-
source = "registry.coder.com/coder-labs/copilot-cli/coder"
154+
module "copilot" {
155+
source = "registry.coder.com/coder-labs/copilot/coder"
156156
version = "0.1.0"
157157
agent_id = coder_agent.example.id
158158
workdir = "/home/coder"
@@ -167,14 +167,14 @@ The module supports multiple authentication methods (in priority order):
167167

168168
1. **[Coder External Auth](https://coder.com/docs/admin/external-auth) (Recommended)** - Automatic if GitHub external auth is configured in Coder
169169
2. **Direct Token** - Pass `github_token` variable (OAuth or Personal Access Token)
170-
3. **Interactive** - Copilot CLI prompts for login via `/login` command if no auth found
170+
3. **Interactive** - Copilot prompts for login via `/login` command if no auth found
171171

172172
> [!NOTE]
173-
> OAuth tokens work best with Copilot CLI. Personal Access Tokens may have limited functionality.
173+
> OAuth tokens work best with Copilot. Personal Access Tokens may have limited functionality.
174174
175175
## Session Resumption
176176

177-
By default, the module resumes the latest Copilot CLI session when the workspace restarts. Set `resume_session = false` to always start fresh sessions.
177+
By default, the module resumes the latest Copilot session when the workspace restarts. Set `resume_session = false` to always start fresh sessions.
178178

179179
> [!NOTE]
180180
> Session resumption requires persistent storage for the home directory or workspace volume. Without persistent storage, sessions will not resume across workspace restarts.
@@ -196,8 +196,8 @@ cat ~/.copilot-module/post_install.log
196196
```
197197

198198
> [!NOTE]
199-
> To use tasks with Copilot CLI, you must have an active GitHub Copilot subscription.
200-
> The `workdir` variable is required and specifies the directory where Copilot CLI will run.
199+
> To use tasks with Copilot, you must have an active GitHub Copilot subscription.
200+
> The `workdir` variable is required and specifies the directory where Copilot will run.
201201
202202
## References
203203

registry/coder-labs/modules/copilot-cli/copilot-cli.tftest.hcl renamed to registry/coder-labs/modules/copilot/copilot.tftest.hcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ run "defaults_are_correct" {
3232
}
3333

3434
assert {
35-
condition = resource.coder_env.mcp_app_status_slug.value == "copilot-cli"
36-
error_message = "Status slug value should be 'copilot-cli'"
35+
condition = resource.coder_env.mcp_app_status_slug.value == "copilot"
36+
error_message = "Status slug value should be 'copilot'"
3737
}
3838
}
3939

@@ -225,8 +225,8 @@ run "app_slug_is_consistent" {
225225
}
226226

227227
assert {
228-
condition = local.app_slug == "copilot-cli"
229-
error_message = "app_slug should be 'copilot-cli'"
228+
condition = local.app_slug == "copilot"
229+
error_message = "app_slug should be 'copilot'"
230230
}
231231

232232
assert {

registry/coder-labs/modules/copilot-cli/main.test.ts renamed to registry/coder-labs/modules/copilot/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
testRequiredVariables,
77
} from "~test";
88

9-
describe("copilot-cli", async () => {
9+
describe("copilot", async () => {
1010
await runTerraformInit(import.meta.dir);
1111

1212
testRequiredVariables(import.meta.dir, {
@@ -27,7 +27,7 @@ describe("copilot-cli", async () => {
2727
);
2828
expect(statusSlugEnv).toBeDefined();
2929
expect(statusSlugEnv.name).toBe("CODER_MCP_APP_STATUS_SLUG");
30-
expect(statusSlugEnv.value).toBe("copilot-cli");
30+
expect(statusSlugEnv.value).toBe("copilot");
3131
});
3232

3333
it("creates github_token env var with correct value", async () => {

registry/coder-labs/modules/copilot-cli/main.tf renamed to registry/coder-labs/modules/copilot/main.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ variable "agent_id" {
1515

1616
variable "workdir" {
1717
type = string
18-
description = "The folder to run Copilot CLI in."
18+
description = "The folder to run Copilot in."
1919
}
2020

2121
variable "external_auth_id" {
@@ -43,7 +43,7 @@ variable "copilot_model" {
4343

4444
variable "copilot_config" {
4545
type = string
46-
description = "Custom Copilot CLI configuration as JSON string. Leave empty to use default configuration with banner disabled, theme set to auto, and workdir as trusted folder."
46+
description = "Custom Copilot configuration as JSON string. Leave empty to use default configuration with banner disabled, theme set to auto, and workdir as trusted folder."
4747
default = ""
4848
}
4949

@@ -55,7 +55,7 @@ variable "ai_prompt" {
5555

5656
variable "system_prompt" {
5757
type = string
58-
description = "The system prompt to use for the Copilot CLI server."
58+
description = "The system prompt to use for the Copilot server."
5959
default = <<-EOT
6060
You are a helpful AI assistant that helps with coding tasks. Always provide clear explanations and follow best practices.
6161
@@ -81,7 +81,7 @@ variable "system_prompt" {
8181

8282
variable "trusted_directories" {
8383
type = list(string)
84-
description = "Additional directories to trust for Copilot CLI operations."
84+
description = "Additional directories to trust for Copilot operations."
8585
default = []
8686
}
8787

@@ -118,7 +118,7 @@ variable "install_agentapi" {
118118
variable "agentapi_version" {
119119
type = string
120120
description = "The version of AgentAPI to install."
121-
default = "v0.9.0"
121+
default = "v0.10.0"
122122
}
123123

124124
variable "report_tasks" {
@@ -154,36 +154,36 @@ variable "icon" {
154154
variable "web_app_display_name" {
155155
type = string
156156
description = "Display name for the web app."
157-
default = "Copilot CLI"
157+
default = "Copilot"
158158
}
159159

160160
variable "cli_app" {
161161
type = bool
162-
description = "Whether to create a CLI app for Copilot CLI."
162+
description = "Whether to create a CLI app for Copilot."
163163
default = false
164164
}
165165

166166
variable "cli_app_display_name" {
167167
type = string
168168
description = "Display name for the CLI app."
169-
default = "Copilot CLI"
169+
default = "Copilot"
170170
}
171171

172172
variable "resume_session" {
173173
type = bool
174-
description = "Whether to automatically resume the latest Copilot CLI session on workspace restart."
174+
description = "Whether to automatically resume the latest Copilot session on workspace restart."
175175
default = true
176176
}
177177

178178
variable "pre_install_script" {
179179
type = string
180-
description = "Custom script to run before configuring Copilot CLI."
180+
description = "Custom script to run before configuring Copilot."
181181
default = null
182182
}
183183

184184
variable "post_install_script" {
185185
type = string
186-
description = "Custom script to run after configuring Copilot CLI."
186+
description = "Custom script to run after configuring Copilot."
187187
default = null
188188
}
189189

@@ -192,7 +192,7 @@ data "coder_workspace_owner" "me" {}
192192

193193
locals {
194194
workdir = trimsuffix(var.workdir, "/")
195-
app_slug = "copilot-cli"
195+
app_slug = "copilot"
196196
install_script = file("${path.module}/scripts/install.sh")
197197
start_script = file("${path.module}/scripts/start.sh")
198198
module_dir_name = ".copilot-module"

registry/coder-labs/modules/copilot-cli/scripts/install.sh renamed to registry/coder-labs/modules/copilot/scripts/install.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ ARG_EXTERNAL_AUTH_ID=${ARG_EXTERNAL_AUTH_ID:-github}
1616

1717
validate_prerequisites() {
1818
if ! command_exists node; then
19-
echo "ERROR: Node.js not found. Copilot CLI requires Node.js v22+."
19+
echo "ERROR: Node.js not found. Copilot requires Node.js v22+."
2020
echo "Install with: curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs"
2121
exit 1
2222
fi
2323

2424
if ! command_exists npm; then
25-
echo "ERROR: npm not found. Copilot CLI requires npm v10+."
25+
echo "ERROR: npm not found. Copilot requires npm v10+."
2626
exit 1
2727
fi
2828

2929
node_version=$(node --version | sed 's/v//' | cut -d. -f1)
3030
if [ "$node_version" -lt 22 ]; then
31-
echo "WARNING: Node.js v$node_version detected. Copilot CLI requires v22+."
31+
echo "WARNING: Node.js v$node_version detected. Copilot requires v22+."
3232
fi
3333
}
3434

35-
install_copilot_cli() {
35+
install_copilot() {
3636
if ! command_exists copilot; then
3737
echo "Installing GitHub Copilot CLI..."
3838
npm install -g @github/copilot
3939

4040
if ! command_exists copilot; then
41-
echo "ERROR: Failed to install Copilot CLI"
41+
echo "ERROR: Failed to install Copilot"
4242
exit 1
4343
fi
4444

@@ -69,7 +69,7 @@ check_github_authentication() {
6969
fi
7070

7171
echo "⚠ No GitHub authentication detected"
72-
echo " Copilot CLI will prompt for authentication when started"
72+
echo " Copilot will prompt for authentication when started"
7373
echo " For seamless experience, configure GitHub external auth in Coder or run 'gh auth login'"
7474
return 0
7575
}
@@ -94,7 +94,7 @@ setup_copilot_config() {
9494
mkdir -p "$copilot_config_dir"
9595

9696
if [ -n "$ARG_COPILOT_CONFIG" ]; then
97-
echo "Setting up Copilot CLI configuration..."
97+
echo "Setting up Copilot configuration..."
9898

9999
if command_exists jq; then
100100
echo "$ARG_COPILOT_CONFIG" | jq 'del(.mcpServers)' > "$copilot_config_file"
@@ -197,7 +197,7 @@ add_custom_mcp_servers() {
197197

198198
configure_copilot_model() {
199199
if [ -n "$ARG_COPILOT_MODEL" ] && [ "$ARG_COPILOT_MODEL" != "claude-sonnet-4.5" ]; then
200-
echo "Setting Copilot CLI model to: $ARG_COPILOT_MODEL"
200+
echo "Setting Copilot model to: $ARG_COPILOT_MODEL"
201201
copilot config model "$ARG_COPILOT_MODEL" || {
202202
echo "WARNING: Failed to set model via copilot config, will use environment variable fallback"
203203
export COPILOT_MODEL="$ARG_COPILOT_MODEL"
@@ -207,7 +207,7 @@ configure_copilot_model() {
207207

208208
configure_coder_integration() {
209209
if [ "$ARG_REPORT_TASKS" = "true" ] && [ -n "$ARG_MCP_APP_STATUS_SLUG" ]; then
210-
echo "Configuring Copilot CLI task reporting..."
210+
echo "Configuring Copilot task reporting..."
211211
export CODER_MCP_APP_STATUS_SLUG="$ARG_MCP_APP_STATUS_SLUG"
212212
export CODER_MCP_AI_AGENTAPI_URL="http://localhost:3284"
213213
echo "✓ Coder MCP server configured for task reporting"
@@ -219,10 +219,10 @@ configure_coder_integration() {
219219
}
220220

221221
validate_prerequisites
222-
install_copilot_cli
222+
install_copilot
223223
check_github_authentication
224224
setup_copilot_configurations
225225
configure_copilot_model
226226
configure_coder_integration
227227

228-
echo "Copilot CLI module setup completed."
228+
echo "Copilot module setup completed."

0 commit comments

Comments
 (0)