@trim21/personal-pi-extensions 0.0.140 → 0.0.142

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trim21/personal-pi-extensions",
3
- "version": "0.0.140",
3
+ "version": "0.0.142",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
@@ -157,7 +157,7 @@ export async function buildDiffPreview(
157
157
  const newContent = replace(normalized, pair.oldString, pair.newString, pair.replaceAll);
158
158
  // The full path is shown in the dialog title, so the patch header only
159
159
  // carries the file name.
160
- return wrapDiff(generateUnifiedPatch(basename(resolvedPath), normalized, newContent));
160
+ return wrapDiff(generateUnifiedPatch(basename(resolvedPath), normalized, newContent, 2));
161
161
  } catch {
162
162
  const removed = pair.oldString.split("\n").map((line) => `-${line}`);
163
163
  const added = pair.newString.split("\n").map((line) => `+${line}`);
@@ -168,7 +168,7 @@ export async function buildDiffPreview(
168
168
  const newContent = applyChange(toolName, input, oldContent);
169
169
  if (newContent === undefined) return undefined;
170
170
 
171
- return wrapDiff(generateUnifiedPatch(basename(resolvedPath), oldContent, newContent));
171
+ return wrapDiff(generateUnifiedPatch(basename(resolvedPath), oldContent, newContent, 2));
172
172
  }
173
173
 
174
174
  export default function (pi: ExtensionAPI) {