@@ -386,19 +386,19 @@ deploy_infrastructure() {
386386 echo " 🔧 Starting infrastructure services..."
387387 INFRA_SERVICES=" nexent-elasticsearch nexent-postgresql nexent-minio redis"
388388
389- # Add openssh-server if Terminal tool is enabled
390- if [ " $ENABLE_TERMINAL_TOOL " = " true" ]; then
389+ # Add openssh-server if Terminal tool container is enabled
390+ if [ " $ENABLE_TERMINAL_TOOL_CONTAINER " = " true" ]; then
391391 INFRA_SERVICES=" $INFRA_SERVICES nexent-openssh-server"
392- echo " 🔧 Terminal tool enabled - openssh-server will be included in infrastructure"
392+ echo " 🔧 Terminal tool container enabled - openssh-server will be included in infrastructure"
393393 fi
394394
395395 if ! ${docker_compose_command} -p nexent -f " docker-compose${COMPOSE_FILE_SUFFIX} " up -d $INFRA_SERVICES ; then
396396 echo " ❌ ERROR Failed to start infrastructure services"
397397 exit 1
398398 fi
399399
400- if [ " $ENABLE_TERMINAL_TOOL " = " true" ]; then
401- echo " 🔧 Terminal tool (openssh-server) is now available for AI agents"
400+ if [ " $ENABLE_TERMINAL_TOOL_CONTAINER " = " true" ]; then
401+ echo " 🔧 Terminal tool container (openssh-server) is now available for AI agents"
402402 fi
403403
404404 # Deploy Supabase services based on DEPLOYMENT_VERSION
@@ -514,34 +514,33 @@ wait_for_elasticsearch_healthy() {
514514}
515515
516516select_terminal_tool () {
517- # Function to ask if user wants to enable Terminal tool
518- echo " 🔧 Terminal Tool Configuration :"
517+ # Function to ask if user wants to create Terminal tool container
518+ echo " 🔧 Terminal Tool Container Setup :"
519519 echo " Terminal tool allows AI agents to execute shell commands via SSH."
520- echo " This creates an openssh-server container for secure command execution."
520+ echo " This will create an openssh-server container for secure command execution."
521521 if [ -n " $ENABLE_TERMINAL " ]; then
522522 enable_terminal=" $ENABLE_TERMINAL "
523523 else
524- read -p " 👉 Do you want to enable Terminal tool? [Y/N] (default: N): " enable_terminal
524+ read -p " 👉 Do you want to create Terminal tool container ? [Y/N] (default: N): " enable_terminal
525525 fi
526526
527527 # Sanitize potential Windows CR in input
528528 enable_terminal=$( sanitize_input " $enable_terminal " )
529529
530530 if [[ " $enable_terminal " =~ ^[Yy]$ ]]; then
531- export ENABLE_TERMINAL_TOOL =" true"
531+ export ENABLE_TERMINAL_TOOL_CONTAINER =" true"
532532 export COMPOSE_PROFILES=" ${COMPOSE_PROFILES: +$COMPOSE_PROFILES ,} terminal"
533- echo " ✅ Terminal tool enabled 🔧"
534- echo " 🔧 Deploying an openssh-server container for secure command execution"
535- update_env_var " ENABLE_TERMINAL_TOOL" " true"
533+ echo " ✅ Terminal tool container will be created 🔧"
534+ echo " 🔧 Creating openssh-server container for secure command execution"
536535
537- # Ask user to specify directory mapping
536+ # Ask user to specify directory mapping for container
538537 default_terminal_dir=" /opt/terminal"
539- echo " 📁 Terminal directory configuration :"
538+ echo " 📁 Terminal container directory mapping :"
540539 echo " • Container path: /opt/terminal (fixed)"
541540 echo " • Host path: You can specify any directory on your host machine"
542541 echo " • Default host path: /opt/terminal (recommended)"
543542 echo " "
544- read -p " 📁 Enter host directory to mount (default: /opt/terminal): " terminal_mount_dir
543+ read -p " 📁 Enter host directory to mount to container (default: /opt/terminal): " terminal_mount_dir
545544 terminal_mount_dir=$( sanitize_input " $terminal_mount_dir " )
546545 TERMINAL_MOUNT_DIR=" ${terminal_mount_dir:- $default_terminal_dir } "
547546
@@ -555,8 +554,8 @@ select_terminal_tool() {
555554 echo " • This directory will be created if it doesn't exist"
556555 echo " "
557556
558- # Setup SSH credentials for Terminal tool
559- echo " 🔐 Setting up SSH credentials for Terminal tool..."
557+ # Setup SSH credentials for Terminal tool container
558+ echo " 🔐 Setting up SSH credentials for Terminal tool container ..."
560559
561560 # Check if SSH credentials are already set
562561 if [ -n " $SSH_USERNAME " ] && [ -n " $SSH_PASSWORD " ]; then
@@ -565,7 +564,7 @@ select_terminal_tool() {
565564 echo " 🔑 Password: [HIDDEN]"
566565 else
567566 # Prompt for SSH credentials
568- echo " Please enter SSH credentials for Terminal tool:"
567+ echo " Please enter SSH credentials for Terminal tool container :"
569568 echo " "
570569
571570 # Get SSH username
@@ -609,9 +608,8 @@ select_terminal_tool() {
609608 fi
610609 echo " "
611610 else
612- export ENABLE_TERMINAL_TOOL=" false"
613- echo " 🚫 Terminal tool disabled"
614- update_env_var " ENABLE_TERMINAL_TOOL" " false"
611+ export ENABLE_TERMINAL_TOOL_CONTAINER=" false"
612+ echo " 🚫 Terminal tool container disabled"
615613 fi
616614 echo " "
617615 echo " --------------------------------"
@@ -676,7 +674,7 @@ main_deploy() {
676674 # Select deployment version, mode and image source
677675 select_deployment_version || { echo " ❌ Deployment version selection failed" ; exit 1; }
678676 select_deployment_mode || { echo " ❌ Deployment mode selection failed" ; exit 1; }
679- select_terminal_tool || { echo " ❌ Terminal tool configuration failed" ; exit 1; }
677+ select_terminal_tool || { echo " ❌ Terminal tool container configuration failed" ; exit 1; }
680678 choose_image_env || { echo " ❌ Image environment setup failed" ; exit 1; }
681679
682680 # Add permission
0 commit comments