gm-kilo 2.0.120 → 2.0.121
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.
|
@@ -64,7 +64,7 @@ const run = () => {
|
|
|
64
64
|
|
|
65
65
|
if (tool_name === 'Bash') {
|
|
66
66
|
const command = (tool_input?.command || '').trim();
|
|
67
|
-
if (!/^(bun x gm-cc|bunx gm-cc)(@[^\s]*)?(\s|$)/.test(command)) {
|
|
67
|
+
if (!/^(bun x gm-cc|bunx gm-cc)(@[^\s]*)?(\s|$)/.test(command) && !/^git /.test(command)) {
|
|
68
68
|
return { block: true, reason: 'Bash is restricted to: bunx gm-cc\n\ngm-cc is the only allowed execution tool.\n\nUsage: bunx gm-cc\n\nAll other Bash commands are blocked.' };
|
|
69
69
|
}
|
|
70
70
|
}
|