chore: revert claude changes

This commit is contained in:
35C4n0r 2026-02-04 14:16:28 +00:00
parent b580ec2abb
commit 3d4d24bdfc
2 changed files with 6 additions and 26 deletions

View File

@ -362,8 +362,8 @@ locals {
}
module "agentapi" {
source = "git::https://github.com/coder/registry.git//registry/coder/modules/agentapi?ref=35C4n0r/feat-agentapi-architecture-improv"
# version = "2.0.0"
source = "registry.coder.com/coder/agentapi/coder"
version = "2.0.0"
agent_id = var.agent_id
web_app_slug = local.app_slug
@ -377,7 +377,6 @@ module "agentapi" {
cli_app_display_name = var.cli_app ? var.cli_app_display_name : null
agentapi_subdomain = var.subdomain
module_dir_name = local.module_dir_name
agentapi_server_type = "claude"
install_agentapi = var.install_agentapi
agentapi_version = var.agentapi_version
pre_install_script = var.pre_install_script
@ -386,7 +385,6 @@ module "agentapi" {
#!/bin/bash
set -o errexit
set -o pipefail
echo -n '${base64encode(local.start_script)}' | base64 -d > /tmp/start.sh
chmod +x /tmp/start.sh

View File

@ -6,7 +6,6 @@ command_exists() {
command -v "$1" > /dev/null 2>&1
}
MODULE_PATH="$HOME/.claude-module"
ARG_RESUME_SESSION_ID=${ARG_RESUME_SESSION_ID:-}
ARG_CONTINUE=${ARG_CONTINUE:-false}
ARG_DANGEROUSLY_SKIP_PERMISSIONS=${ARG_DANGEROUSLY_SKIP_PERMISSIONS:-}
@ -217,7 +216,6 @@ function start_agentapi() {
printf "Running claude code with args: %s\n" "$(printf '%q ' "${ARGS[@]}")"
# Write the agent command to agent-command.sh
if [ "$ARG_ENABLE_BOUNDARY" = "true" ]; then
install_boundary
@ -240,28 +238,12 @@ function start_agentapi() {
BOUNDARY_CMD=("$CODER_NO_CAPS" "boundary")
fi
# Build properly quoted command arguments
boundary_cmd=$(printf '%q ' "${BOUNDARY_CMD[@]}" "${BOUNDARY_ARGS[@]}")
claude_args=$(printf '%q ' "${ARGS[@]}")
# Write command to agent-command.sh with boundary
cat > "$MODULE_PATH/agent-command.sh" << EOF
#!/bin/bash
${BOUNDARY_CMD[@]} -- claude ${ARGS[@]}
EOF
agentapi server --type claude --term-width 67 --term-height 1190 -- \
"${BOUNDARY_CMD[@]}" "${BOUNDARY_ARGS[@]}" -- \
claude "${ARGS[@]}"
else
# Build properly quoted command arguments
claude_args=$(printf '%q ' "${ARGS[@]}")
# Write command to agent-command.sh without boundary
cat > "$MODULE_PATH/agent-command.sh" << EOF
#!/bin/bash
claude ${ARGS[@]}
EOF
agentapi server --type claude --term-width 67 --term-height 1190 -- claude "${ARGS[@]}"
fi
chmod +x "$MODULE_PATH/agent-command.sh"
printf "Agent command written to %s\n" "$MODULE_PATH/agent-command.sh"
}
validate_claude_installation