Explicitly upsert a Gallery or Transfer Package source
figure_library_upsertValidate and create or atomically replace a stable package snapshot after content changes, keeping the scientific figure library consistent and reproducible.
Instructions
Validate and create or atomically replace one stable Gallery/Transfer Package snapshot. Use figure_library_diff first when content changed. Code is copied but never executed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| galleryPath | No | ||
| packagePath | No | ||
| sourceCommit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | ||
| title | Yes | ||
| action | Yes | ||
| warning | Yes | ||
| sourceId | Yes | ||
| directory | Yes | ||
| templateId | Yes | ||
| contentHash | Yes | ||
| reviewStatus | Yes |