@xynogen/pix-gate 0.1.9 → 0.1.11
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 +2 -2
- package/src/lib.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xynogen/pix-gate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Pi extension — permission gate for dangerous bash commands (confirm/block with TUI dialog)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@xynogen/pix-pretty": "
|
|
45
|
+
"@xynogen/pix-pretty": "^1.7.9"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@earendil-works/pi-coding-agent": "*",
|
package/src/lib.ts
CHANGED
|
@@ -276,8 +276,7 @@ export function extractPathsFromBash(cmd: string): string[] {
|
|
|
276
276
|
const out: string[] = [];
|
|
277
277
|
const re =
|
|
278
278
|
/(?:^|[\s=><|;&"'`(])((?:\.\.\/|\/|~\/|\.)[^\s"'`<>|;&)]+|\.env(?:\.[A-Za-z0-9_-]+)?|[A-Za-z0-9_./-]+\.(?:pem|key|p12|pfx|crt|cer|env|envrc|netrc))/g;
|
|
279
|
-
|
|
280
|
-
while ((m = re.exec(cmd)) !== null) out.push(m[1]);
|
|
279
|
+
for (const m of cmd.matchAll(re)) out.push(m[1] as string);
|
|
281
280
|
return out;
|
|
282
281
|
}
|
|
283
282
|
|