Skip to content

Commit 807650f

Browse files
committed
LF-error-solved
1 parent 8c43815 commit 807650f

File tree

4 files changed

+33
-27
lines changed

4 files changed

+33
-27
lines changed

.icons/sourcegraph-amp.svg

Lines changed: 7 additions & 0 deletions
Loading

registry/harsh9485/modules/sourcegraph_amp/main.tf

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ data "coder_workspace" "me" {}
1818

1919
data "coder_workspace_owner" "me" {}
2020

21-
2221
variable "order" {
2322
type = number
2423
description = "The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order)."
@@ -40,7 +39,7 @@ variable "icon" {
4039
variable "folder" {
4140
type = string
4241
description = "The folder to run sourcegraph-amp in."
43-
default = "/home/coder/sourcegraph-amp"
42+
default = "/home/coder"
4443
}
4544

4645
variable "install_sourcegraph-amp" {
@@ -87,26 +86,26 @@ variable "post_install_script" {
8786

8887
locals {
8988
base_extensions = <<-EOT
90-
{
91-
"coder": {
92-
"args": [
93-
"exp",
94-
"mcp",
95-
"server"
96-
],
97-
"command": "coder",
98-
"description": "Report ALL tasks and statuses (in progress, done, failed) you are working on.",
99-
"enabled": true,
100-
"env": {
101-
"CODER_MCP_APP_STATUS_SLUG": "${local.app_slug}",
102-
"CODER_MCP_AI_AGENTAPI_URL": "http://localhost:3284"
103-
},
104-
"name": "Coder",
105-
"timeout": 3000,
106-
"type": "stdio",
107-
"trust": true
108-
}
109-
}
89+
coder:
90+
args:
91+
- exp
92+
- mcp
93+
- server
94+
cmd: coder
95+
description: Report ALL tasks and statuses (in progress, done, failed) you are working on.
96+
enabled: true
97+
envs:
98+
CODER_MCP_APP_STATUS_SLUG: ${local.app_slug}
99+
CODER_MCP_AI_AGENTAPI_URL: http://localhost:3284
100+
name: Coder
101+
timeout: 3000
102+
type: stdio
103+
developer:
104+
display_name: Developer
105+
enabled: true
106+
name: developer
107+
timeout: 300
108+
type: builtin
110109
EOT
111110

112111
app_slug = "sourcegraph-amp"

registry/harsh9485/modules/sourcegraph_amp/scripts/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/env bash
1+
#!/bin/bash
22
set -euo pipefail
33

44
# ANSI colors
55
BOLD='\033[1m'
6-
RESET='\033[0m'
6+
77

88
# Print arguments
99
echo "--------------------------------"
@@ -28,10 +28,10 @@ function ensure_node() {
2828
function install_sourcegraph_amp() {
2929
if [[ "$ARG_INSTALL_SOURCEGRAPH_AMP" == "true" ]]; then
3030
ensure_node
31-
printf "%b Installing Sourcegraph AMP CLI...%b\n" "$BOLD" "$RESET"
31+
printf "%b Installing Sourcegraph AMP CLI...%b\n" "$BOLD"
3232
npm install -g @sourcegraph/amp
3333
export AMP_API_KEY="$SOURCEGRAPH_AMP_API_KEY"
34-
printf "%b Installation complete.%b\n" "$BOLD" "$RESET"
34+
printf "%b Installation complete.%b\n" "$BOLD"
3535
fi
3636
}
3737

registry/harsh9485/modules/sourcegraph_amp/scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/bin/bash
22
set -euo pipefail
33

44
# Load user environment

0 commit comments

Comments
 (0)