Commit Graph

3 Commits

  • fix(install): address Codex review — guard reparse deletes and robust uninstall
    - install.ps1 (P1): refuse to delete real files/directories; only remove
      paths that are actual junctions/symlinks. Closes a data-loss path where
      Cmd-Uninstall would Remove-Item -Recurse a pre-existing user directory at
      ~/.understand-anything-plugin (Cmd-Install correctly skipped touching it,
      but uninstall did not). Cmd-Uninstall and Unlink-Skills now both go
      through Remove-Reparse, which uses DirectoryInfo.Delete() so a junction's
      target is never followed.
    
    - install.sh (P2): --uninstall no longer exits early when the checkout has
      been deleted. The per-skill unlinker falls back to scanning the target
      dir for stale symlinks pointing into the plugin tree, so users can clean
      up after manually rm -rf'ing the checkout.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
  • feat(install): unify per-platform installers into install.sh / install.ps1
    Replace 7 nearly-identical .<platform>/INSTALL.md files with one
    install.sh + install.ps1 that enumerate skills dynamically from
    understand-anything-plugin/skills/ — the previous hardcoded list of 6
    was already stale, missing understand-domain and understand-knowledge.
    
    Supported usage:
      install.sh <platform>            # gemini/codex/opencode/pi/openclaw/antigravity/vscode
      install.sh                       # interactive prompt; reads /dev/tty so curl|sh works
      install.sh --update              # git pull on the shared checkout
      install.sh --uninstall <plat>    # removes skill links for that platform
    
    Single shared checkout at ~/.understand-anything/repo (override via
    UA_DIR). Antigravity keeps its existing ~/.gemini/antigravity/skills
    path for backward compatibility; OpenClaw keeps its folder-symlink
    style. Universal ~/.understand-anything-plugin link unchanged.
    
    README.md and the 6 translated READMEs replace the old per-platform
    "Fetch and follow instructions from .../<plat>/INSTALL.md" blocks with
    a single curl|sh / iwr|iex one-liner. Compatibility tables updated.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>