aidevops 2.79.2 → 2.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/aidevops.sh +1 -1
- package/package.json +1 -1
- package/setup.sh +66 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.80.0
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# AI Assistant Server Access Framework Setup Script
|
|
4
4
|
# Helps developers set up the framework for their infrastructure
|
|
5
5
|
#
|
|
6
|
-
# Version: 2.
|
|
6
|
+
# Version: 2.80.0
|
|
7
7
|
#
|
|
8
8
|
# Quick Install (one-liner):
|
|
9
9
|
# bash <(curl -fsSL https://aidevops.dev/install)
|
|
@@ -2994,6 +2994,70 @@ setup_google_analytics_mcp() {
|
|
|
2994
2994
|
return 0
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
+
# Setup multi-tenant credential storage
|
|
2998
|
+
setup_multi_tenant_credentials() {
|
|
2999
|
+
print_info "Multi-tenant credential storage..."
|
|
3000
|
+
|
|
3001
|
+
local credential_helper="$HOME/.aidevops/agents/scripts/credential-helper.sh"
|
|
3002
|
+
|
|
3003
|
+
if [[ ! -f "$credential_helper" ]]; then
|
|
3004
|
+
# Try local script if deployed version not available yet
|
|
3005
|
+
credential_helper=".agent/scripts/credential-helper.sh"
|
|
3006
|
+
fi
|
|
3007
|
+
|
|
3008
|
+
if [[ ! -f "$credential_helper" ]]; then
|
|
3009
|
+
print_warning "credential-helper.sh not found - skipping"
|
|
3010
|
+
return 0
|
|
3011
|
+
fi
|
|
3012
|
+
|
|
3013
|
+
# Check if already initialized
|
|
3014
|
+
if [[ -d "$HOME/.config/aidevops/tenants" ]]; then
|
|
3015
|
+
local tenant_count
|
|
3016
|
+
tenant_count=$(find "$HOME/.config/aidevops/tenants" -maxdepth 1 -type d | wc -l)
|
|
3017
|
+
# Subtract 1 for the tenants/ dir itself
|
|
3018
|
+
tenant_count=$((tenant_count - 1))
|
|
3019
|
+
print_success "Multi-tenant already initialized ($tenant_count tenant(s))"
|
|
3020
|
+
bash "$credential_helper" status
|
|
3021
|
+
return 0
|
|
3022
|
+
fi
|
|
3023
|
+
|
|
3024
|
+
# Check if there are existing credentials to migrate
|
|
3025
|
+
if [[ -f "$HOME/.config/aidevops/mcp-env.sh" ]]; then
|
|
3026
|
+
local key_count
|
|
3027
|
+
key_count=$(grep -c "^export " "$HOME/.config/aidevops/mcp-env.sh" 2>/dev/null || echo "0")
|
|
3028
|
+
print_info "Found $key_count existing API keys in mcp-env.sh"
|
|
3029
|
+
print_info "Multi-tenant enables managing separate credential sets for:"
|
|
3030
|
+
echo " - Multiple clients (agency/freelance work)"
|
|
3031
|
+
echo " - Multiple environments (production, staging)"
|
|
3032
|
+
echo " - Multiple accounts (personal, work)"
|
|
3033
|
+
echo ""
|
|
3034
|
+
print_info "Your existing keys will be migrated to a 'default' tenant."
|
|
3035
|
+
print_info "Everything continues to work as before - this is non-breaking."
|
|
3036
|
+
echo ""
|
|
3037
|
+
|
|
3038
|
+
read -r -p "Enable multi-tenant credential storage? (y/n): " enable_mt
|
|
3039
|
+
enable_mt=$(echo "$enable_mt" | tr '[:upper:]' '[:lower:]')
|
|
3040
|
+
|
|
3041
|
+
if [[ "$enable_mt" == "y" || "$enable_mt" == "yes" ]]; then
|
|
3042
|
+
bash "$credential_helper" init
|
|
3043
|
+
print_success "Multi-tenant credential storage enabled"
|
|
3044
|
+
echo ""
|
|
3045
|
+
print_info "Quick start:"
|
|
3046
|
+
echo " credential-helper.sh create client-name # Create a tenant"
|
|
3047
|
+
echo " credential-helper.sh switch client-name # Switch active tenant"
|
|
3048
|
+
echo " credential-helper.sh set KEY val --tenant X # Add key to tenant"
|
|
3049
|
+
echo " credential-helper.sh status # Show current state"
|
|
3050
|
+
else
|
|
3051
|
+
print_info "Skipped. Enable later: credential-helper.sh init"
|
|
3052
|
+
fi
|
|
3053
|
+
else
|
|
3054
|
+
print_info "No existing credentials found. Multi-tenant available when needed."
|
|
3055
|
+
print_info "Enable later: credential-helper.sh init"
|
|
3056
|
+
fi
|
|
3057
|
+
|
|
3058
|
+
return 0
|
|
3059
|
+
}
|
|
3060
|
+
|
|
2997
3061
|
# Check for tool updates after setup
|
|
2998
3062
|
check_tool_updates() {
|
|
2999
3063
|
print_info "Checking for tool updates..."
|
|
@@ -3139,6 +3203,7 @@ main() {
|
|
|
3139
3203
|
confirm_step "Extract OpenCode prompts" && extract_opencode_prompts
|
|
3140
3204
|
confirm_step "Check OpenCode prompt drift" && check_opencode_prompt_drift
|
|
3141
3205
|
confirm_step "Deploy aidevops agents to ~/.aidevops/agents/" && deploy_aidevops_agents
|
|
3206
|
+
confirm_step "Setup multi-tenant credential storage" && setup_multi_tenant_credentials
|
|
3142
3207
|
confirm_step "Generate agent skills (SKILL.md files)" && generate_agent_skills
|
|
3143
3208
|
confirm_step "Create symlinks for imported skills" && create_skill_symlinks
|
|
3144
3209
|
confirm_step "Check for skill updates from upstream" && check_skill_updates
|