0712014fcb
- ASTRA-DEBUG 정상 흐름 로그를 console.error → logInfo/console.log 로 강등 (chatHandlers, extension, slashRouter): DevTools에 ERR로 찍히던 오탐 제거 - sidebar webview에 명시적 CSP meta 추가 + font-src에 data: 허용 (sidebar.html, sidebarProvider._getHtml): VS Code outer iframe이 codicon.ttf를 data:font/ttf 로 inject하면서 기본 CSP에 막혀 매 prompt 마다 violation 경고가 찍히던 문제 해소 - 누적된 LM Studio / agent / 컨텍스트 매니저 / 테스트 갱신 동반 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
33 lines
1.4 KiB
TypeScript
33 lines
1.4 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]');
|
|
// v2.2.68: [OUTPUT FORMAT] header now annotated with "— 7 hard rules";
|
|
// [FOLLOW-UP QUESTION RULES] is absorbed into R6 of the 7-rule block.
|
|
expect(prompt).toContain('[OUTPUT FORMAT — 7 hard rules]');
|
|
expect(prompt).toContain('R1. CONCLUSION FIRST');
|
|
expect(prompt).toContain('R6. ASK ONE QUESTION ONLY WHEN');
|
|
expect(prompt).toContain('R7. GUESS-AND-ACT WITH STATED ASSUMPTION');
|
|
});
|
|
});
|