mirror of
https://github.com/coder/registry.git
synced 2026-06-03 13:08:14 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 45df4951b5 | |||
| f86c0c0742 | |||
| 18a8c7e8ee | |||
| 976691b5cb | |||
| f844c88c36 |
@@ -133,6 +133,35 @@ EOF
|
||||
}
|
||||
```
|
||||
|
||||
### Using the task_app_id Output
|
||||
|
||||
```tf
|
||||
module "auggie" {
|
||||
source = "registry.coder.com/coder-labs/auggie/coder"
|
||||
version = "0.3.0"
|
||||
agent_id = coder_agent.example.id
|
||||
folder = "/home/coder/project"
|
||||
|
||||
augment_session_token = <<-EOF
|
||||
{"accessToken":"xxxx-yyyy-zzzz-jjjj","tenantURL":"https://d1.api.augmentcode.com/","scopes":["read","write"]}
|
||||
EOF
|
||||
|
||||
report_tasks = true
|
||||
}
|
||||
|
||||
# Expose the task app ID as a template output
|
||||
output "auggie_task_app_id" {
|
||||
value = module.auggie.task_app_id
|
||||
description = "The ID of the Auggie AgentAPI web app for task reporting"
|
||||
}
|
||||
```
|
||||
|
||||
## Outputs
|
||||
|
||||
| Name | Description |
|
||||
|------|-------------|
|
||||
| `task_app_id` | The ID of the AgentAPI web app, which can be used to reference the app in other resources or for task reporting integration |
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
If you have any issues, please take a look at the log files below.
|
||||
|
||||
@@ -142,7 +142,7 @@ variable "auggie_model" {
|
||||
variable "report_tasks" {
|
||||
type = bool
|
||||
description = "Whether to enable task reporting to Coder UI via AgentAPI"
|
||||
default = false
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "cli_app" {
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
source "$HOME"/.bashrc
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
BOLD='\033[0;1m'
|
||||
@@ -13,6 +9,12 @@ command_exists() {
|
||||
command -v "$1" > /dev/null 2>&1
|
||||
}
|
||||
|
||||
if [ -f "$HOME/.nvm/nvm.sh" ]; then
|
||||
source "$HOME"/.nvm/nvm.sh
|
||||
else
|
||||
export PATH="$HOME/.npm-global/bin:$PATH"
|
||||
fi
|
||||
|
||||
ARG_AUGGIE_INSTALL=${ARG_AUGGIE_INSTALL:-true}
|
||||
ARG_AUGGIE_VERSION=${ARG_AUGGIE_VERSION:-}
|
||||
ARG_MCP_APP_STATUS_SLUG=${ARG_MCP_APP_STATUS_SLUG:-}
|
||||
@@ -29,6 +31,13 @@ printf "rules: %s\n" "$ARG_AUGGIE_RULES"
|
||||
echo "--------------------------------"
|
||||
|
||||
function check_dependencies() {
|
||||
|
||||
printf "PATH: %s\n" "${PATH}"
|
||||
|
||||
new_path=$(bash -l -c 'echo $PATH' 2>/dev/null || echo "${PATH}")
|
||||
|
||||
printf "NEW_PATH %s\n" "${new_path}"
|
||||
|
||||
if ! command_exists node; then
|
||||
printf "Error: Node.js is not installed. Please install Node.js manually or use the pre_install_script to install it.\n"
|
||||
exit 1
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
source "$HOME"/.bashrc
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
command_exists() {
|
||||
|
||||
Reference in New Issue
Block a user