Skip to content

t1224.2: Implement localdev add/rm commands#1908

Merged
marcusquinn merged 1 commit intomainfrom
feature/t1224.2
Feb 19, 2026
Merged

t1224.2: Implement localdev add/rm commands#1908
marcusquinn merged 1 commit intomainfrom
feature/t1224.2

Conversation

@marcusquinn
Copy link
Copy Markdown
Owner

Implements localdev add/rm commands for the local development environment manager.

Changes

  • Port registry (~/.local-dev-proxy/ports.json): auto-assign ports from 3100-3999 range with jq primary / python3 fallback
  • Collision detection: rejects apps that conflict with LocalWP domains (/etc/hosts #Local Site), registered apps, or registered domains
  • mkcert wildcard cert: generates *.name.local + name.local cert pair via generate_cert()
  • Traefik route file: creates conf.d/{name}.yml with wildcard Host rule (Host(\name.local`) || Host(`*.name.local`)`)
  • /etc/hosts fallback: adds entry when dnsmasq resolver not configured; skipped when /etc/resolver/local is active
  • localdev rm: fully reverses add — removes route file, cert files, hosts entry, registry entry
  • localdev list: shows registered apps + LocalWP sites for context
  • ShellCheck zero violations, bash -n syntax OK

Testing

# Syntax check
bash -n .agents/scripts/localdev-helper.sh

# ShellCheck
shellcheck -x -S warning .agents/scripts/localdev-helper.sh

# Help output
bash .agents/scripts/localdev-helper.sh help

# Validation (no mkcert/sudo needed)
bash .agents/scripts/localdev-helper.sh add 'My App'  # rejects invalid name
bash .agents/scripts/localdev-helper.sh list           # shows empty registry

Ref #1875

- Port registry (~/.local-dev-proxy/ports.json) with auto-assign from 3100-3999
- Collision detection against LocalWP sites (/etc/hosts #Local Site) and registered apps
- mkcert wildcard cert generation (*.name.local + name.local) via generate_cert()
- Traefik conf.d/{name}.yml route file with wildcard Host rule
- /etc/hosts fallback entry when dnsmasq not configured (skipped when resolver active)
- localdev rm reverses all: removes route file, cert files, hosts entry, registry entry
- localdev list shows registered apps + LocalWP sites for context
- ShellCheck zero violations, bash -n syntax OK
- jq primary with python3 fallback for JSON registry operations
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 19, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 3 minutes and 43 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/t1224.2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 29 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Thu Feb 19 04:01:36 UTC 2026: Code review monitoring started
Thu Feb 19 04:01:36 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 29

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 29
  • VULNERABILITIES: 0

Generated on: Thu Feb 19 04:01:38 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link
Copy Markdown

@marcusquinn marcusquinn merged commit 65bc600 into main Feb 19, 2026
11 checks passed
@marcusquinn marcusquinn deleted the feature/t1224.2 branch February 19, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant