Feat: Implement local path code review preflight and add system prompt tests
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { getSystemPrompt } from '../src/utils';
|
||||
|
||||
describe('base system prompt', () => {
|
||||
it('requires local project paths to be inspected before upload requests', () => {
|
||||
const prompt = getSystemPrompt();
|
||||
|
||||
expect(prompt).toContain('Local Path Handling Rule');
|
||||
expect(prompt).toContain('inspect the path before asking for uploads');
|
||||
expect(prompt).toContain('Do not say "upload the source code"');
|
||||
expect(prompt).toContain('For code review requests, first confirm path access');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user