Expand description
Git-backed plugin install/uninstall/update.
Functionsยง
- clone_
repo_ with_ progress - Streaming
git clone --depth=1 --progressโ forwards every chunk of stderr (split on\r/\n) toon_chunkas it arrives. - install_
plugin git clone --depth=1 <url> <dest>, thengit rev-parse HEAD.destmust not already exist.- install_
plugin_ from_ subdir - Shallow-clone
marketplace_urlinto a temp dir sibling todest, then move its<subdir>directly into place atdest. Returns the HEAD SHA of the cloned marketplace. Used for Claude-Code-style marketplaces whose plugins reference./<subdir>instead of their own standalone repos. - install_
plugin_ from_ subdir_ with_ progress - Like
install_plugin_from_subdirbut streamsgit clone --progresschunks toon_chunk. Seeclone_repo_with_progressfor callback semantics. - install_
plugin_ with_ progress - Like
install_pluginbut streamsgit clone --progresschunks toon_chunk. Seeclone_repo_with_progressfor callback semantics. - ls_
remote_ head git ls-remote <url> HEADโ first column (SHA). Network op.- plugin_
dir_ sha256 - Compute the plugin package checksum used by v1 plugin indexes.
- uninstall_
plugin rm -rf <path>. Missing path is OK.- update_
plugin git -C <path> pull --ff-only, then capture new SHA.- verify_
plugin_ dir_ checksum