refactor: update permissionMode to bypassPermissions in SDK options and tests

- Changed permissionMode from 'default' to 'bypassPermissions' in sdk-options and claude-provider unit tests.
- Added allowDangerouslySkipPermissions flag in claude-provider test to enhance permission handling.
This commit is contained in:
webdevcody
2026-01-03 23:26:26 -05:00
parent d677910f40
commit afb0937cb3
2 changed files with 3 additions and 2 deletions

View File

@@ -234,7 +234,7 @@ describe('sdk-options.ts', () => {
expect(options.cwd).toBe('/test/path');
expect(options.maxTurns).toBe(MAX_TURNS.maximum);
expect(options.allowedTools).toEqual([...TOOL_PRESETS.specGeneration]);
expect(options.permissionMode).toBe('default');
expect(options.permissionMode).toBe('bypassPermissions');
});
it('should include system prompt when provided', async () => {

View File

@@ -73,7 +73,8 @@ describe('claude-provider.ts', () => {
maxTurns: 10,
cwd: '/test/dir',
allowedTools: ['Read', 'Write'],
permissionMode: 'default',
permissionMode: 'bypassPermissions',
allowDangerouslySkipPermissions: true,
}),
});
});