Commit c76e501
🤖 feat: add guard-anchored file_edit_insert tool (#579)
## Summary
- implement file_edit_insert with optional before/after substring guards
plus line_offset fallback, including new runtime tool + unit coverage
- wire the tool through type defs, tokenizer accounting, redaction, and
UI rendering so agents can call it safely
- refresh tool policy + runtime IPC tests to favor file_edit_insert and
ensure redactors/tests understand the new tool
## Testing
- make typecheck
- make test
_Generated with `mux`_
---------
Co-authored-by: root <root@ovh-1.tailc2a514.ts.net>1 parent 6cefc20 commit c76e501
File tree
8 files changed
+256
-442
lines changed- src
- components/Messages
- services/tools
- types
- utils
- messages
- tools
- tests/ipcMain
8 files changed
+256
-442
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments