Skip to content

Commit 4f00b0b

Browse files
committed
allow commit command aswell
1 parent 8d92c57 commit 4f00b0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

electron/ipc/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const absolutePathRegex = /^(?:[A-Za-z]:\\[^<>:"|?*\n\r\t]+|\/[^\n\r\t]+)$/;
55
const branchRegex = /^[a-zA-Z0-9][a-zA-Z0-9._/-]{0,199}$/;
66
const commitHashRegex = /^[0-9a-fA-F]{40}$/;
77
const dangerousChars = /[;&|`$(){}\[\]<>"'\n\r\t]/;
8-
const allowedCommands = ['generate', 'expand', 'improve', 'help'];
8+
const allowedCommands = ['generate', 'expand', 'improve', 'help', 'commit'];
99

1010
// Validation helpers
1111
function validatePath(path) {

tests/unit/validation.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ describe('IPC Validation Schemas', () => {
167167
});
168168

169169
it('should validate command names', () => {
170-
const validCommands = ['generate', 'expand', 'improve', 'help'];
170+
const validCommands = ['generate', 'expand', 'improve', 'help', 'commit'];
171171

172172
validCommands.forEach(command => {
173173
expect(() => VibeExecuteSchema.parse({

0 commit comments

Comments
 (0)