mirror of
https://github.com/epoko77-ai/im-not-ai.git
synced 2026-06-21 13:18:09 +00:00
한 줄 요약 Claude Code·Codex CLI에 이어 Gemini CLI(Antigravity)에서도 전역 설치 후 /humanize-korean 커맨드로 한글 AI 티 제거 윤문을 사용할 수 있게 패키징. 변경 내용 - gemini-extension.json: Gemini CLI Extension 매니페스트 신규 - GEMINI.md: 에이전트 컨텍스트 — monolith 룰 + quick-rules 인라인 - commands/humanize-korean.toml: /humanize-korean 커스텀 명령 - commands/humanize.toml: /humanize 별칭 명령 - commands/humanize-redo.toml: /humanize-redo 2차 윤문 명령 - install.sh: gemini CLI 자동 감지 + extensions link 블록 추가 --gemini-only / --no-gemini 옵션 추가 - uninstall.sh: gemini extensions uninstall 블록 추가 - update.sh: ver() 함수에 gemini-extension.json fallback - INSTALL.md: Gemini CLI 섹션 + 도구 표 갱신 - CLAUDE.md: 디렉토리 구조에 Gemini 파일 반영 설치: gemini extensions install https://github.com/epoko77-ai/im-not-ai.git 또는: git clone ... && ./install.sh --gemini-only Gemini는 Codex와 동일하게 Fast(단일 호출) 모드만 제공. strict 5인 파이프라인은 Claude Code 전용.
47 lines
1.6 KiB
Bash
Executable file
47 lines
1.6 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Humanize KR — 전역 설치 제거 스크립트
|
|
# install.sh가 만든 "이 저장소를 가리키는 심링크"만 제거한다. 사용자가 직접 둔 파일이나
|
|
# 다른 곳을 가리키는 링크, .bak.* 백업은 건드리지 않는다. (--copy 설치본은 자동 삭제 대상 아님)
|
|
set -euo pipefail
|
|
|
|
REPO="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
CLAUDE_HOME="${CLAUDE_HOME:-$HOME/.claude}"
|
|
CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
|
|
DRYRUN=0
|
|
|
|
case "${1:-}" in
|
|
--dry-run) DRYRUN=1 ;;
|
|
-h|--help) echo "Usage: ./uninstall.sh [--dry-run]"; exit 0 ;;
|
|
"") ;;
|
|
*) echo "unknown arg: $1" >&2; exit 2 ;;
|
|
esac
|
|
|
|
remove_if_ours() {
|
|
local dest="$1" src="$2"
|
|
if [ -L "$dest" ] && [ "$(readlink "$dest")" = "$src" ]; then
|
|
echo "+ rm $dest"; [ "$DRYRUN" = 1 ] || rm "$dest"
|
|
elif [ -e "$dest" ]; then
|
|
echo "skip (우리 것 아님): $dest"
|
|
fi
|
|
}
|
|
|
|
for s in humanize-korean humanize humanize-redo; do
|
|
remove_if_ours "$CLAUDE_HOME/skills/$s" "$REPO/.claude/skills/$s"
|
|
done
|
|
remove_if_ours "$CODEX_HOME/skills/humanize-korean" "$REPO/codex/skills/humanize-korean"
|
|
for a in "$REPO/agents"/*.md; do
|
|
remove_if_ours "$CLAUDE_HOME/agents/$(basename "$a")" "$a"
|
|
done
|
|
|
|
# ---- Gemini CLI ----
|
|
if command -v gemini >/dev/null 2>&1; then
|
|
echo "Gemini extension 제거 시도..."
|
|
if [ "$DRYRUN" = 1 ]; then
|
|
echo "+ gemini extensions uninstall im-not-ai (dry-run)"
|
|
else
|
|
gemini extensions uninstall im-not-ai 2>/dev/null && echo "removed: Gemini extension (im-not-ai)" \
|
|
|| echo " (Gemini extension 미설치 또는 이미 제거됨)"
|
|
fi
|
|
fi
|
|
|
|
echo "제거 완료. (.bak.* 백업·--copy 설치본은 보존)"
|