seam_notes
Take review notes from seam for answering; reserves them for this session and returns each with file, lines, surrounding code, user text, and earlier replies. Select by IDs or batch; up to 20 per call.
Instructions
Take review notes the user left in seam, a terminal diff viewer, in order to answer them: without arguments the open and sent notes, leaving out notes of other branches than the checked-out one; with ids those notes; with batch the notes the user sent to this session. Giving both ids and batch fails, and so does a batch that does not exist. Taking reserves the notes for this session so that no other agent session answers them; they stay reserved until this session exits or the user gives them back, and after a crash only the user can, so take only what you will answer. Each note comes with its file, its lines and the lines around them, the user's text and earlier answers; the call returns one claim to give seam_reply with each answer. Notes it cannot take come back under refused with the reason: unknown, taken (by any session, this one too), answered, resolved, other_session (the batch went to another session) or rebatched (sent again or edited since; leave those). It takes at most 20 notes per call; when more is true, call again for the rest. To read notes without reserving them, use seam_notes_view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | the notes, by id; without ids and batch all open or sent ones of the branch checked out | |
| batch | No | the batch a message from seam's channel named; not with ids |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | Yes | more open notes are left for another call | |
| claim | Yes | to give seam_reply with each answer to these notes | |
| notes | Yes | ||
| refused | Yes | notes of ids not taken, and why |