# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY
version = 1
name = "api"

[setup]
script = '''
./scripts/setup.sh
'''

[setup.win32]
script = '''
powershell -ExecutionPolicy Bypass -File .\scripts\setup.ps1
'''

[[actions]]
name = "Start API"
icon = "run"
command = '''
docker compose up -d traefik redis mysql-debug php1 caddy
'''

[[actions]]
name = "Stop API"
icon = "run"
command = '''
docker compose down
'''

[[actions]]
name = "PHP logs"
icon = "debug"
command = '''
docker compose logs -f --tail=200 php1
'''

[[actions]]
name = "PHP unit tests"
icon = "test"
command = '''
docker compose exec -T php1 sh -lc "cd /var/www/html && composer test:unit"
'''

[[actions]]
name = "AI workflow check"
icon = "debug"
command = '''
node scripts/sync-ai-workflow.mjs --check
'''
