@xynogen/pix-edit 0.2.1 → 0.2.2
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.
- package/package.json +1 -1
- package/src/edit.ts +3 -2
package/package.json
CHANGED
package/src/edit.ts
CHANGED
|
@@ -133,6 +133,7 @@ export function registerEditTool(
|
|
|
133
133
|
try {
|
|
134
134
|
result = (await origEdit.execute(
|
|
135
135
|
tid,
|
|
136
|
+
// SAFETY: EditParams preserves the built-in edit schema and only adds legacy aliases.
|
|
136
137
|
params as unknown as Parameters<typeof origEdit.execute>[1],
|
|
137
138
|
sig,
|
|
138
139
|
upd,
|
|
@@ -202,7 +203,7 @@ export function registerEditTool(
|
|
|
202
203
|
)
|
|
203
204
|
)
|
|
204
205
|
return text;
|
|
205
|
-
const hdr = `${theme.fg("toolTitle", theme.bold("edit"))} ${theme.fg("
|
|
206
|
+
const hdr = `${theme.fg("toolTitle", theme.bold("edit"))} ${theme.fg("dim", sp(fp))}`;
|
|
206
207
|
|
|
207
208
|
if (operations.length === 0) {
|
|
208
209
|
text.setText(fillToolBackground(hdr));
|
|
@@ -211,7 +212,7 @@ export function registerEditTool(
|
|
|
211
212
|
|
|
212
213
|
const { summary } = summarizeEditOperations(operations);
|
|
213
214
|
const coloredSummary = renderDiffSummary(summary, theme);
|
|
214
|
-
const paint = (s: string) => theme.fg("
|
|
215
|
+
const paint = (s: string) => theme.fg("muted", s);
|
|
215
216
|
const suffix = dotJoin(
|
|
216
217
|
[
|
|
217
218
|
hdr,
|