tupik's profile picture
tupik

revision

Public

Checks all plugins installed on your computer for available updates. This is a heavy cycle that can hang for 5 minutes. I'm still working on the progress bar. It may seem like nothing is happening, but you just need to be patient.

695 Downloads

4 stars

README

Plugin for LM Studio

It scan all installed plugins on your computer for revision number then uses endpoint @"secret LMS API v1" to get actual revisions. Compares it and return plugins ready for updating.

  • scan_plugins — Get List of installed Plugins with Author, Revision, Date. N - number of plugins. Save to file list.json and Get the up-to-date revision for each plugin from online LMS Hub endpoint. Then adds it to the file list.json and returns which plugins need to renew (heavy process:timeout=5s/plugin* N)
  • read_list — Just read file list.json content, if you want to look at the latest full table of plugins, authors, revision.
  • renew_plugin — tool for run shell lms get name/plugin -y, it will install latest revision instantly. Two arguments: name, plugin.
  • I'm planning to add a tool with non-blocking progress bar and move the process to a child worker to make it more user-friendly.

Installation: Download from LM Studio Hub

lms get tupik/revision -y

When you delete plugin, the old list.json is saved because it is located at level above the plugin.

Requirements

  • Node.js + npm install + lmstudio/sdk
  • LM Studio installed (provides lms CLI)

🗿 Theory: How to roll back to a previous version of plugin

Used endpoint (https://lmstudio.ai/api/v1/artifacts/tupik/counter/revision/-1?action=tarball&bypassVersion=1) for example.
-1 is the least. Also you can load any previous revisions of any plugin just edit URL link ... revision/1 ... revision/2 ... etc
You can't install from that loaded tar-file with lms command filename.tar.gz like or something.
Simply untar/gz all content from archive to dir. Then lms dev -i -y in that dir. Voila: the revision installed.