@xynogen/pix-runtime 0.15.0 → 0.15.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/binaries/catalog.ts +12 -0
- package/src/sections/gate.ts +12 -1
package/package.json
CHANGED
package/src/binaries/catalog.ts
CHANGED
|
@@ -181,6 +181,18 @@ export const CATALOG = {
|
|
|
181
181
|
hint: { darwin: "brew install sshpass", default: "install sshpass" },
|
|
182
182
|
},
|
|
183
183
|
sudo: { usedBy: ["pix-sudo"], os: UNIX, hint: { default: "install sudo" } },
|
|
184
|
+
python3: {
|
|
185
|
+
usedBy: ["pix-python"],
|
|
186
|
+
os: ALL,
|
|
187
|
+
// ponytail: Windows may hit the Store `python3` alias stub first. Set binary.json `python3` to a real path.
|
|
188
|
+
names: ["python3", "python", "py"],
|
|
189
|
+
hint: {
|
|
190
|
+
win32: "winget install Python.Python.3.13",
|
|
191
|
+
darwin: "brew install python",
|
|
192
|
+
android: "pkg install python",
|
|
193
|
+
default: "install python3",
|
|
194
|
+
},
|
|
195
|
+
},
|
|
184
196
|
"wl-paste": { usedBy: ["pix-ask"], os: LINUX, hint: { default: "install wl-clipboard" } },
|
|
185
197
|
xclip: {
|
|
186
198
|
usedBy: ["pix-ask"],
|
package/src/sections/gate.ts
CHANGED
|
@@ -65,7 +65,18 @@ export const gateSection = defineSection<"gate", GateConfig>({
|
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
67
|
guardrails: enumOr(raw.guardrails, ["on", "off"], DEFAULTS.guardrails),
|
|
68
|
-
autoApprove: strArr(raw.autoApprove),
|
|
68
|
+
autoApprove: strArr(raw.autoApprove).filter((pattern, i) => {
|
|
69
|
+
const err = regexError(pattern);
|
|
70
|
+
if (err) {
|
|
71
|
+
ctx.diagnostic({
|
|
72
|
+
code: "INVALID_VALUE",
|
|
73
|
+
severity: "warning",
|
|
74
|
+
path: `gate.autoApprove[${i}]`,
|
|
75
|
+
message: `invalid regex: ${err}`,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return !err;
|
|
79
|
+
}),
|
|
69
80
|
extraRules,
|
|
70
81
|
};
|
|
71
82
|
},
|