update
Interactively update your blocks to the latest code in the registry.
Usage
Choose which blocks to update.
Update a specific block.
✨ Update with AI ✨
jsrepo now supports updating your components using an LLM. This is great for when you have updated local components and overwriting from remote is not an option.
Now after viewing the diff between the local and remote file you have 3 options. "Accept", "Reject" and "Update with AI". If you choose "Update with AI" you will be prompted to choose a model and provide the an API token. Once you have provided your API token jsrepo prompts the LLM to update the file then returns the diff of the local file to the updated remote file.
See the demo below:
The models in the demo above may not be up to date see the model list below.
- - Claude 3.5 Sonnet (API Key required)
- - ChatGPT 4o (API Key required)
- - ChatGPT 4o-mini (API Key required)
- - Phi4 (via Ollama)
Options
Update all installed components.
Usage
Expands the diff past the limit set by --max-unchanged so that you can see the entire file.
Usage
Sets a limit on the maximum unchanged lines to display in a diff before it is collapsed. default: 3
Usage
Do update any blocks.
Usage
The repository to download the blocks from.
Usage
Allow jsrepo to download code from the provided repo. This skips the initial confirmation prompt when attempting to download a block from a registry not listed in the jsrepo.json file.
Usage
Skips confirmation prompts. (Not including permissions prompts)
Usage
More verbose logging. (May be used to troubleshoot issues)
Usage
Run the current command on the provided directory absolute or relative.
Usage
Help with the command.