Address additional review feedback:
- Guard default plugin path resolution with friendly error message
suggesting explicit path when cli-anything-plugin dir not found
- Create backup of existing ~/.qoder.json before modification
to allow easy revert if update is undesired
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Address Copilot review feedback:
- Add explicit JSON validation with jq empty before modifying config
- Create temp file in same directory as config for atomic mv
- Add trap cleanup function to remove temp files on error
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Move jq check from global scope to only where needed, allowing
config creation to work without jq installed
- Add json_escape_path() helper for safe JSON string escaping
- Fix unsafe string interpolation in jq filter (use --arg instead)
- Use jq -n --arg for safe JSON generation when jq is available
- Properly escape paths with special characters (quotes, backslashes)
in fallback heredoc when jq is unavailable
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Per code review feedback: cli-anything-plugin/ should only contain
Claude Code related files. Created new top-level qoder-plugin/
directory following the same organization pattern as opencode-commands/.
Changes:
- Create qoder-plugin/ directory with setup-qodercli.sh
- Update script's PLUGIN_DIR to resolve to ../cli-anything-plugin
- Add Qodercli platform section to README.md and README_CN.md
- Update .gitignore to track qoder-plugin/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>