Skip to main content

Module install

Module install 

Source
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) to on_chunk as it arrives.
install_plugin
git clone --depth=1 <url> <dest>, then git rev-parse HEAD. dest must not already exist.
install_plugin_from_subdir
Shallow-clone marketplace_url into a temp dir sibling to dest, then move its <subdir> directly into place at dest. 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_subdir but streams git clone --progress chunks to on_chunk. See clone_repo_with_progress for callback semantics.
install_plugin_with_progress
Like install_plugin but streams git clone --progress chunks to on_chunk. See clone_repo_with_progress for 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