Rename the `rails/` directory to `tools/` for agent discoverability — agents frequently failed to locate helper scripts due to the non-intuitive directory name. Add backward-compat symlink `rails/ → tools/`. New tool suites: - Authentik: auth-token, user-list, user-create, group-list, app-list, flow-list, admin-status (8 scripts) - Coolify: team-list, project-list, service-list, service-status, deploy, env-set (7 scripts) - Woodpecker: pipeline-list, pipeline-status, pipeline-trigger (3 stubs) - GLPI: session-init, computer-list, ticket-list, ticket-create, user-list (6 scripts) - Health: stack-health.sh — stack-wide connectivity check Infrastructure: - Shared credential loader at tools/_lib/credentials.sh - install.sh creates symlink + chmod on tool scripts - All ~253 rails/ path references updated across 68+ files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
54 lines
1.9 KiB
PowerShell
54 lines
1.9 KiB
PowerShell
# Quality Rails Installation Script (Windows)
|
|
param(
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$Template,
|
|
|
|
[Parameter(Mandatory=$false)]
|
|
[string]$TargetDir = "."
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
$RepoRoot = Split-Path -Parent $ScriptDir
|
|
$TemplateDir = Join-Path $RepoRoot "templates\$Template"
|
|
|
|
if (-not (Test-Path $TemplateDir)) {
|
|
Write-Error "Template '$Template' not found at $TemplateDir"
|
|
Write-Host "Available templates: typescript-node, typescript-nextjs, python, monorepo"
|
|
exit 1
|
|
}
|
|
|
|
Write-Host "Installing Quality Rails: $Template"
|
|
Write-Host "Target directory: $TargetDir"
|
|
Write-Host ""
|
|
|
|
# Copy template files
|
|
Write-Host "Copying template files..."
|
|
if (Test-Path "$TemplateDir\.husky") {
|
|
Copy-Item -Path "$TemplateDir\.husky" -Destination $TargetDir -Recurse -Force
|
|
}
|
|
Copy-Item -Path "$TemplateDir\.lintstagedrc.js" -Destination $TargetDir -Force -ErrorAction SilentlyContinue
|
|
Copy-Item -Path "$TemplateDir\.eslintrc.strict.js" -Destination "$TargetDir\.eslintrc.js" -Force -ErrorAction SilentlyContinue
|
|
Copy-Item -Path "$TemplateDir\tsconfig.strict.json" -Destination "$TargetDir\tsconfig.json" -Force -ErrorAction SilentlyContinue
|
|
Copy-Item -Path "$TemplateDir\.woodpecker.yml" -Destination $TargetDir -Force -ErrorAction SilentlyContinue
|
|
|
|
Write-Host "✓ Files copied"
|
|
|
|
if (Test-Path "$TargetDir\package.json") {
|
|
Write-Host ""
|
|
Write-Host "⚠ package.json exists. Please manually merge dependencies from:"
|
|
Write-Host " $TemplateDir\package.json.snippet"
|
|
} else {
|
|
Write-Host "⚠ No package.json found. Create one and add dependencies from:"
|
|
Write-Host " $TemplateDir\package.json.snippet"
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "✓ Quality Rails installed successfully!"
|
|
Write-Host ""
|
|
Write-Host "Next steps:"
|
|
Write-Host "1. Install dependencies: npm install"
|
|
Write-Host "2. Initialize husky: npx husky install"
|
|
Write-Host "3. Run verification: ..\quality-rails\scripts\verify.ps1"
|