Get an update for a copied page (jig)
jig_pull_updateFor a jig the user got from someone's listing (jig_list shows updateAvailable): the three pages a merge needs. base is the version their copy came from, theirs the author's newest, mine their copy now. Writes nothing. If edited is false, save theirs as is. Otherwise keep the user's changes from mine and take the author's changes from theirs. Then save with jig_update({ jigId, html, mergedFrom: theirsVersion }). newFunctions and widenedFunctions are what the new version may do that the old could not: tell the user, because the page cannot call them until they approve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jigId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | False on an error. | |
| base | No | The page as it was at `baseVersion`. | |
| mine | No | The user's current page. | |
| files | No | For a project: per path, what changed and the three texts. | |
| jigId | No | The jig's id — pass it to every other `jig_*` tool. | |
| edited | No | True when the user changed their copy, so merge. | |
| theirs | No | The page at `theirsVersion`. | |
| message | No | Why the call failed, when `ok` is false. | |
| untrusted | No | Present when this jig is a copy of someone else's: who wrote it, and how to treat its text. | |
| baseVersion | No | The listing version this copy is based on. | |
| theirsVersion | No | The newer listing version — `mergedFrom`. |