feat: добавить ai-cursor лаунчер (нативный Cursor CLI agent)
Генерация нативного лаунчера ai-cursor для Cursor CLI (agent) с автоустановкой через cursor.com/install, интеграцией proxychains4 в VLESS-режиме, обновлением ~/.cursorrules и флагом --force (--yolo). Очистка старого ai-cursor из ~/.local/bin при нестандартном BIN_DIR. Добавлены тест генерации и упоминания в EFFORT_MAPPING/QUICK_START/README. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ KIMI_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-kimi"/,/^KIMIEOF/' "$SCRIPT")
|
||||
GLM_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-glm"/,/^GLMEOF/' "$SCRIPT")
|
||||
GEMINI_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-gemini"/,/^GEMINIEOF/' "$SCRIPT")
|
||||
OPENCODE_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-opencode"/,/^OPENCODEEOF/' "$SCRIPT")
|
||||
CURSOR_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-cursor"/,/^CURSOREOF/' "$SCRIPT")
|
||||
HELPERS_SECTION=$(awk '/^cat > "\$HELPERS_FILE"/,/^HELPEREOF/' "$SCRIPT")
|
||||
|
||||
# ── ai-gpt: auto-install codex ────────────────────────────────────────────
|
||||
@@ -101,6 +102,16 @@ test_gemini_native_launcher() {
|
||||
fi
|
||||
}
|
||||
|
||||
# ── ai-cursor: native launcher generation ──────────────────────────────────
|
||||
test_cursor_native_launcher() {
|
||||
if echo "$CURSOR_SECTION" | grep -q 'Cursor CLI (agent)' \
|
||||
&& echo "$CURSOR_SECTION" | grep -q 'https://cursor.com/install'; then
|
||||
ok "ai-cursor: native Cursor CLI (agent) launcher is generated"
|
||||
else
|
||||
fail "ai-cursor: missing native Cursor CLI launcher generation"
|
||||
fi
|
||||
}
|
||||
|
||||
# ── global rules: Karpathy-style guidelines and native rule files ───────────
|
||||
test_global_rules_include_quality_guidelines() {
|
||||
karpathy_line=$(grep -n '^## 1\. Think Before Coding$' "$GLOBAL_RULES_SOURCE" | head -1 | cut -d: -f1)
|
||||
@@ -247,6 +258,7 @@ test_kimi_no_artemox
|
||||
test_glm_claude_launcher
|
||||
test_glm_official_api
|
||||
test_gemini_native_launcher
|
||||
test_cursor_native_launcher
|
||||
test_global_rules_include_quality_guidelines
|
||||
test_native_rule_files_generated
|
||||
test_fix7_trap_tmp
|
||||
|
||||
Reference in New Issue
Block a user