restore_version
Restore a part to a saved version or commit as a new version to keep history intact; unsaved changes must be saved first.
Instructions
Bring a part (script, ref/, MEASURE.md) back to a saved version: a number from list_versions(part), or a commit id. It is saved as a NEW version, so nothing is lost: no reset, no deleted history, files added later are kept. Refused while the part has changes not saved yet (offer save_version first). Ask the user before restoring; then build_part and check. On a shared (HTTP/SSH) server: the commands for the user's project folder (version = the commit id), then write_part to put the restored script back on the server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | Yes | ||
| version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |