Topos Begin Refactor
topos_begin_refactorCapture a baseline snapshot of an untracked or uncommitted file before editing, then assess the change's quality using the returned snapshot ID.
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) to score the change without
re-sending the baseline. Use this when the baseline is not a committed git
revision (untracked/new files, or uncommitted prior edits); otherwise
topos_assess_worktree_change needs no snapshot at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Capture a dirty/untracked baseline before editing. |