gm-oc 2.0.175 → 2.0.176
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.
|
@@ -65,6 +65,9 @@ const run = () => {
|
|
|
65
65
|
if (execMatch) {
|
|
66
66
|
const rawLang = (execMatch[1] || '').toLowerCase();
|
|
67
67
|
const code = execMatch[2];
|
|
68
|
+
if (/^\s*agent-browser\s/.test(code)) {
|
|
69
|
+
return { block: true, reason: `Do not call agent-browser via exec:bash. Use exec:agent-browser instead:\n\nexec:agent-browser\n<plain JS here>\n\nThe code is piped directly to the browser eval. No base64, no flags, no shell wrapping.` };
|
|
70
|
+
}
|
|
68
71
|
const cwd = tool_input?.cwd;
|
|
69
72
|
const detectLang = (src) => {
|
|
70
73
|
if (/^\s*(import |from |export |const |let |var |function |class |async |await |console\.|process\.)/.test(src)) return 'nodejs';
|