Repository navigation
v1.3
Aperture Bot now works with the TypeScript compiler, the way the editor does: it finds where a name is used, renames it everywhere, and its reply says exactly which lines still depend on what it changed. Workflows on @v1 get this release too.
New
- Find every use of a name. Before it changes a function's arguments or what it returns, the bot can ask the compiler for every place the name is used, by file and line. That includes an import under another name (
import { listTasks as lt }), and it leaves out comments, docs, and unrelated code that happens to use the same name. - Rename everywhere. A rename goes through the compiler, as F2 does in the editor, so every use, import and re-export changes together, one edit per file. Comments and strings keep the old name.
Better
- An exact "Elsewhere:" line. The note at the end of a reply now comes from the compiler:
Elsewhere: listTasks is used in src/routes/tasks.ts (lines 2, 13), scripts/check-store.ts (lines 2, 8). It used to be a text search that named files, not lines, and could count unrelated code that used the same name. - A removed name that other code still uses is flagged. When a change deletes something another file still imports:
Elsewhere: listTasks is gone but still used in src/routes/home.ts:1.
Built from Hankaws/aperture@8b84c01. Inputs are unchanged, so nothing in an existing workflow needs to change.