@trim21/personal-pi-extensions 0.0.155 → 0.0.156
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.
|
|
3
|
+
"version": "0.0.156",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"eslint-plugin-promise": "7.3.0",
|
|
44
44
|
"eslint-plugin-simple-import-sort": "14.0.0",
|
|
45
45
|
"eslint-plugin-tsdoc": "0.5.2",
|
|
46
|
-
"eslint-plugin-unicorn": "
|
|
46
|
+
"eslint-plugin-unicorn": "73.0.0",
|
|
47
47
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
48
48
|
"husky": "^9.1.7",
|
|
49
49
|
"lint-staged": "^17.3.0",
|
package/src/gh-readonly.ts
CHANGED
|
@@ -114,7 +114,7 @@ export function runGh(
|
|
|
114
114
|
|
|
115
115
|
proc.on("close", (code) => {
|
|
116
116
|
if (timeoutId) clearTimeout(timeoutId);
|
|
117
|
-
if (ctx.signal
|
|
117
|
+
if (onAbort && ctx.signal) {
|
|
118
118
|
ctx.signal.removeEventListener("abort", onAbort);
|
|
119
119
|
}
|
|
120
120
|
resolve({
|
|
@@ -133,7 +133,7 @@ export function runGh(
|
|
|
133
133
|
|
|
134
134
|
proc.on("error", () => {
|
|
135
135
|
if (timeoutId) clearTimeout(timeoutId);
|
|
136
|
-
if (ctx.signal
|
|
136
|
+
if (onAbort && ctx.signal) {
|
|
137
137
|
ctx.signal.removeEventListener("abort", onAbort);
|
|
138
138
|
}
|
|
139
139
|
resolve({ stdout, stderr, code: 1, killed, combined: combined.join(""), reason: killReason });
|
|
@@ -199,7 +199,7 @@ const BlockAnchorReplacer: Replacer = function* (content, find) {
|
|
|
199
199
|
bestMatch = candidate;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
if (maxSimilarity >= MULTIPLE_CANDIDATES_SIMILARITY_THRESHOLD
|
|
202
|
+
if (bestMatch && maxSimilarity >= MULTIPLE_CANDIDATES_SIMILARITY_THRESHOLD) {
|
|
203
203
|
const { startLine, endLine } = bestMatch;
|
|
204
204
|
let matchStartIndex = 0;
|
|
205
205
|
for (let k = 0; k < startLine; k++) {
|