claim
Reserve the next number in a sequence (a migration, an ADR, a release) so no other agent takes it; two agents asking at once never get the same number. The hooks already claim a numbered file's number when you create it, so call this only for a number you need before writing, or for a named sequence. Returns the number, zero-padded like the files already there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | The highest number you already see in use in that directory, if any. | |
| title | No | What the number is for; teammates see it. | |
| repo_id | Yes | The repository id, e.g. github.com/org/repo (repo_id in .collide/config.json). | |
| sequence | Yes | A directory such as db/migrations/, or a name such as release. |