"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
refactor: move Qodercli setup script to dedicated qoder-plugin/ directory
shengwei.psw52dc2fb7de2d
diff --git a/.gitignore b/.gitignoreindex bfeb417e0..059602d7d 100644--- a/.gitignore+++ b/.gitignore@@ -89,4 +89,5 @@assets/gen_typing_gif.py!README_CN.md-!opencode-commands/\ No newline at end of file+!opencode-commands/+!/qoder-plugin/\ No newline at end of filediff --git a/README.md b/README.mdindex 906e2e180..a17b16920 100644--- a/README.md+++ b/README.md@@ -56,7 +56,7 @@ CLI is the universal interface for both humans and AI agents:- **Python 3.10+**- Target software installed (e.g., GIMP, Blender, LibreOffice, or your own application)-- A supported AI coding agent: [Claude Code](#-claude-code) | [OpenCode](#-opencode) | [More Platforms](#-more-platforms-coming-soon)+- A supported AI coding agent: [Claude Code](#-claude-code) | [OpenCode](#-opencode) | [Qodercli](#-qodercli) | [More Platforms](#-more-platforms-coming-soon)### Pick Your Platform@@ -182,6 +182,28 @@ The command runs as a subtask and follows the same 7-phase methodology as Claude</details>+<details>+<summary><h4 id="-qodercli">โก Qodercli</h4></summary>++**Step 1: Register the Plugin**++```bash+git clone https://github.com/HKUDS/CLI-Anything.git+bash CLI-Anything/qoder-plugin/setup-qodercli.sh+```++This registers the cli-anything plugin in `~/.qoder.json`. Start a new Qodercli session after registration.++**Step 2: Use CLI-Anything from Qodercli**++```bash+/cli-anything:cli-anything ./gimp+/cli-anything:refine ./gimp "batch processing and filters"+/cli-anything:validate ./gimp+```++</details>+<details><summary><h4 id="-more-platforms-coming-soon">๐ฎ More Platforms (Coming Soon)</h4></summary>diff --git a/README_CN.md b/README_CN.mdindex 09cef2fc1..0738e92a8 100644--- a/README_CN.md+++ b/README_CN.md@@ -56,7 +56,7 @@ CLI ๆฏไบบ็ฑปๅ AI Agent ๅ ฑ้็ไธ่ฝๆฅๅฃ๏ผ- **Python 3.10+**- ็ฎๆ ่ฝฏไปถๅทฒๅฎ่ฃ ๏ผๅฆ GIMPใBlenderใLibreOffice ๆไฝ ่ชๅทฑ็ๅบ็จ๏ผ-- ๆฏๆ็ AI ็ผ็จๅทฅๅ ทไนไธ๏ผ[Claude Code](#-claude-code) | [OpenCode](#-opencode) | [ๆดๅคๅนณๅฐ](#-ๆดๅคๅนณๅฐๅณๅฐๆฏๆ)+- ๆฏๆ็ AI ็ผ็จๅทฅๅ ทไนไธ๏ผ[Claude Code](#-claude-code) | [OpenCode](#-opencode) | [Qodercli](#-qodercli) | [ๆดๅคๅนณๅฐ](#-ๆดๅคๅนณๅฐๅณๅฐๆฏๆ)### ้ๆฉไฝ ็ๅนณๅฐ@@ -182,6 +182,28 @@ cp CLI-Anything/cli-anything-plugin/HARNESS.md .opencode/commands/</details>+<details>+<summary><h4 id="-qodercli">โก Qodercli</h4></summary>++**็ฌฌไธๆญฅ๏ผๆณจๅๆไปถ**++```bash+git clone https://github.com/HKUDS/CLI-Anything.git+bash CLI-Anything/qoder-plugin/setup-qodercli.sh+```++่ๆฌไผๅฐ cli-anything ๆไปถๆณจๅๅฐ `~/.qoder.json`ใๆณจๅๅๅผๅฏๆฐ็ Qodercli ไผ่ฏๅณๅฏไฝฟ็จใ++**็ฌฌไบๆญฅ๏ผๅจ Qodercli ไธญไฝฟ็จ CLI-Anything**++```bash+/cli-anything:cli-anything ./gimp+/cli-anything:refine ./gimp "ๆนๅค็ๅๆปค้"+/cli-anything:validate ./gimp+```++</details>+<details><summary><h4 id="-ๆดๅคๅนณๅฐๅณๅฐๆฏๆ">๐ฎ ๆดๅคๅนณๅฐ๏ผๅณๅฐๆฏๆ๏ผ</h4></summary>diff --git a/qoder-plugin/setup-qodercli.sh b/qoder-plugin/setup-qodercli.shnew file mode 100755index 000000000..3ffe7f1a7--- /dev/null+++ b/qoder-plugin/setup-qodercli.sh@@ -0,0 +1,98 @@+#!/usr/bin/env bash+# Register cli-anything plugin for Qodercli+#+# Usage:+# bash setup-qodercli.sh # Auto-detect plugin path+# bash setup-qodercli.sh /custom/path # Use custom plugin path++set -euo pipefail++# Colors+GREEN='\033[0;32m'+YELLOW='\033[1;33m'+BLUE='\033[0;34m'+NC='\033[0m'++# Determine plugin path+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+# Default to cli-anything-plugin relative to qoder-plugin directory+PLUGIN_DIR="${1:-$(cd "${SCRIPT_DIR}/../cli-anything-plugin" && pwd)}"++# Validate plugin directory+if [ ! -f "${PLUGIN_DIR}/.claude-plugin/plugin.json" ]; then+ echo -e "${YELLOW}Error: plugin.json not found at ${PLUGIN_DIR}/.claude-plugin/${NC}"+ exit 1+fi++# Qodercli config file+QODER_CONFIG="${QODER_HOME:-$HOME}/.qoder.json"++echo -e "${BLUE}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${NC}"+echo -e "${BLUE} cli-anything Plugin for Qodercli${NC}"+echo -e "${BLUE}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${NC}"+echo ""+echo "Plugin path: ${PLUGIN_DIR}"+echo "Config file: ${QODER_CONFIG}"+echo ""++# Check if jq is available+if ! command -v jq &> /dev/null; then+ echo -e "${YELLOW}jq not found. Please install jq or manually add to ${QODER_CONFIG}:${NC}"+ echo ""+ echo '{'+ echo ' "plugins": {'+ echo ' "sources": {'+ echo ' "local": [{"path": "'"${PLUGIN_DIR}"'"}]'+ echo ' }'+ echo ' }'+ echo '}'+ echo ""+ exit 1+fi++# Create or update config+if [ -f "${QODER_CONFIG}" ]; then+ # Check if plugin already registered+ if jq -e ".plugins.sources.local[]? | select(.path == \"${PLUGIN_DIR}\")" "${QODER_CONFIG}" > /dev/null 2>&1; then+ echo -e "${GREEN}โ Plugin already registered in ${QODER_CONFIG}${NC}"+ else+ # Add plugin to existing config+ TMP_CONFIG=$(mktemp)+ jq --arg path "${PLUGIN_DIR}" '+ .plugins //= {} |+ .plugins.sources //= {} |+ .plugins.sources.local //= [] |+ .plugins.sources.local += [{"path": $path}]+ ' "${QODER_CONFIG}" > "${TMP_CONFIG}"+ mv "${TMP_CONFIG}" "${QODER_CONFIG}"+ echo -e "${GREEN}โ Plugin added to ${QODER_CONFIG}${NC}"+ fi+else+ # Create new config+ cat > "${QODER_CONFIG}" << EOF+{+ "plugins": {+ "sources": {+ "local": [{"path": "${PLUGIN_DIR}"}]+ }+ }+}+EOF+ echo -e "${GREEN}โ Created ${QODER_CONFIG} with plugin registered${NC}"+fi++echo ""+echo -e "${GREEN}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${NC}"+echo -e "${GREEN} Installation complete!${NC}"+echo -e "${GREEN}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${NC}"+echo ""+echo "Start a new Qodercli session to use the plugin."+echo ""+echo "Available commands:"+echo ""+echo -e " ${BLUE}/cli-anything:cli-anything${NC} <path> - Build complete CLI harness"+echo -e " ${BLUE}/cli-anything:refine${NC} <path> [focus] - Refine existing harness"+echo -e " ${BLUE}/cli-anything:test${NC} <path> - Run tests"+echo -e " ${BLUE}/cli-anything:validate${NC} <path> - Validate harness"+echo -e " ${BLUE}/cli-anything:list${NC} - List CLI tools"+echo ""