30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import { getSystemPrompt } from '../src/utils';
|
|
|
|
describe('base system prompt', () => {
|
|
it('requires local project paths to be inspected immediately', () => {
|
|
const prompt = getSystemPrompt();
|
|
|
|
expect(prompt).toContain('[LOCAL PATH RULE]');
|
|
expect(prompt).toContain('use <list_files> or <read_file> immediately');
|
|
expect(prompt).toContain('Never say "upload the source code"');
|
|
});
|
|
|
|
it('gives Astra a stance instead of only response structure', () => {
|
|
const prompt = getSystemPrompt();
|
|
|
|
expect(prompt).toContain('[CORE BEHAVIOR]');
|
|
expect(prompt).toContain('[ENGINEERING STANCE]');
|
|
expect(prompt).toContain('Technical precision over polite filler');
|
|
expect(prompt).toContain('Collapse checklists into: verdict → reason → risk → next move');
|
|
});
|
|
|
|
it('defines clear interaction and formatting rules', () => {
|
|
const prompt = getSystemPrompt();
|
|
|
|
expect(prompt).toContain('[STRICT GLOBAL RULES]');
|
|
expect(prompt).toContain('[OUTPUT FORMAT]');
|
|
expect(prompt).toContain('[FOLLOW-UP QUESTION RULES]');
|
|
expect(prompt).toContain('Ask ONE focused question at the very end');
|
|
});
|
|
});
|