Skip to content

AI-specific enablement#186

Open
alfredsgenkins wants to merge 2 commits into
masterfrom
ai-enablement
Open

AI-specific enablement#186
alfredsgenkins wants to merge 2 commits into
masterfrom
ai-enablement

Conversation

@alfredsgenkins
Copy link
Copy Markdown
Collaborator

Bug Fixes

  • Typo fix in install-magento.js — --cache-backend-redis-db='0't → '0' (broken Redis cache
    config)
  • Xdebug session env — Added XDEBUG_SESSION: 'PHPSTORM' to phpWithXdebug container so
    debugging works out of the box
  • Changed from --no-open (default false) to --open (default true) — Yargs oversight ("no-X" => X = false) – previously "no-open" did not work
    • Retry logic in create-magento-user.js — up to 20 attempts with 1s delay, handles slow
      MariaDB startup (common on Mac)

Silent Mode / CI Support

  • Global --silent / -q flag — Suppresses Listr progress output using silent renderer
  • Auto-detection — When stdout is not a TTY (CI, pipes, scripts), silent renderer activates
    automatically
  • Applied to all 10 commands: start, stop, status, exec, import-db, cli, cleanup, link,
    logs

Non-TTY Exec (exec command)

  • Removed hard TTY requirement from execute-in-container.js — no longer exits with error in
    non-TTY
  • Conditional Docker flags — --tty and --interactive only set when process.stdin.isTTY is
    true
  • Refactored runInContainer — uses spawn() instead of run() for proper non-TTY passthrough

Non-Interactive Import DB

  • --non-interactive / -y flag on import-db command — bypasses all interactive prompts with
    defaults:
    • Delete database before import → yes
    • DB user for import → root
    • Fix utf8mb4 collation → yes (auto)
    • Install Magento on empty DB → skip
    • SSH private key → ~/.ssh/id_rsa
    • SSH passphrase → none
    • Make remote dumps → yes
    • Remote dump command → default
  • Applied across import-dump-to-database.js, ssh/index.js, ssh/regular-server.js,
    import-dump.js

AGENTS.md Auto-Generation

  • ensure-agents-md.js — on startup, writes AGENTS.md and CLAUDE.md to project directory if
    they don't exist, giving AI agents and CI a command reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants