topos_begin_refactor
Capture a file's current source as a baseline snapshot before editing, returning a snapshot ID to query later for assessing refactoring changes.
Instructions
Persist the file's current source as a baseline snapshot before you
edit it (writes a snapshot record — its only side effect).
Returns a snapshot_id; edit the file in place, then call
topos_assess_snapshot(snapshot_id, filepath). Use this when the
baseline is not a committed git revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | File path to snapshot. | |
| preferences | No | Optional generator ranking. | |
| gitnexus_dir | No | .gitnexus directory. |