Feat: Implement local path code review preflight and add system prompt tests

This commit is contained in:
g1nation
2026-05-02 18:37:39 +09:00
parent e941a3be86
commit 7643362080
5 changed files with 221 additions and 1 deletions
+12
View File
@@ -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');
});
});