ucode-agent 1.45.0 → 1.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@
18
18
  import { promises as fs } from 'node:fs';
19
19
  import path from 'node:path';
20
20
  import { ToolFailure } from '../core/failure.js';
21
- import { resolveIn, guard, result, walk } from './shared.js';
21
+ import { resolveIn, guard, result, walk, writeTracked } from './shared.js';
22
22
 
23
23
  const SOURCE = /\.(?:[cm]?[jt]sx?|py)$/i;
24
24
  const IDENT = /^[A-Za-z_$][\w$]*$/;
@@ -133,7 +133,7 @@ export async function renameSymbol({ name, to, path: p = '.' }) {
133
133
  if (before === null || !before.includes(from)) continue;
134
134
  const { text, lines } = renameIn(before, from, into);
135
135
  if (!lines.length || text === before) continue;
136
- await fs.writeFile(abs, text, 'utf8');
136
+ await writeTracked(abs, text);
137
137
  changed.push({ rel: rel || target.show, lines });
138
138
  total += lines.length;
139
139
  }