- Complete REST API with session management
- Dynamic user creation with isolated environments
- Multi-user isolation using /d/hermesai/users/{user_id}/.hermes structure
- Full command execution capabilities via Hermes CLI
- Health check and status endpoints
- Follows module development specifications
27 lines
842 B
Bash
Executable File
27 lines
842 B
Bash
Executable File
#!/bin/bash
|
|
# hermes-service build script
|
|
|
|
MODULE_NAME="hermes-service"
|
|
MODULE_PATH="/d/hermesai/repos/hermes-service"
|
|
|
|
echo "Building $MODULE_NAME module..."
|
|
|
|
# Create symbolic link to main wwwroot
|
|
if [ -d "$MODULE_PATH/wwwroot" ]; then
|
|
ln -sf "$MODULE_PATH/wwwroot" "/d/hermesai/.hermes/hermes-agent/wwwroot/$MODULE_NAME"
|
|
echo "Created wwwroot symlink for $MODULE_NAME"
|
|
fi
|
|
|
|
# Generate database DDL if models exist
|
|
if [ -d "$MODULE_PATH/models" ] && [ "$(ls -A $MODULE_PATH/models)" ]; then
|
|
echo "Generating database DDL..."
|
|
# This will be handled by the main build process
|
|
fi
|
|
|
|
# Generate CRUD UI if json exists
|
|
if [ -d "$MODULE_PATH/json" ] && [ "$(ls -A $MODULE_PATH/json)" ]; then
|
|
echo "Generating CRUD UI..."
|
|
# This will be handled by the main build process
|
|
fi
|
|
|
|
echo "$MODULE_NAME build completed successfully!" |