Version 2.42.0 Release: Autonomous Anti-Blocking Generation for Project Knowledge
This commit is contained in:
@@ -84,4 +84,33 @@ describe('local project path preflight', () => {
|
||||
expect(fixed).not.toContain('핵심 파일이나 구조를 저에게 제공');
|
||||
expect(fixed).not.toContain('실제 구현 근거 없이는');
|
||||
});
|
||||
|
||||
it('replaces blocking scope questions for local project knowledge creation', () => {
|
||||
const context: any = {
|
||||
globalStorageUri: { fsPath: path.join(root, '.storage') },
|
||||
workspaceState: stateStore(),
|
||||
globalState: stateStore()
|
||||
};
|
||||
const agent = new AgentExecutor(context) as any;
|
||||
const answer = '## 블로킹 질문\n1. 어떤 기능 영역을 가장 먼저 분석하고 싶으신가요? (Question reason: 범위 조정)';
|
||||
const localPathContext = [
|
||||
'Path: /Volumes/Data/project/Antigravity/ConnectAI',
|
||||
'Access: succeeded',
|
||||
'Type: directory',
|
||||
'Scanned tree:',
|
||||
'src/',
|
||||
'src/agent.ts',
|
||||
'Priority file previews:',
|
||||
'### package.json',
|
||||
'{"name":"g1nation"}',
|
||||
'### src/agent.ts',
|
||||
'export class AgentExecutor {}'
|
||||
].join('\n');
|
||||
|
||||
expect(agent.isBlockingProjectKnowledgeAnswer(answer)).toBe(true);
|
||||
const fallback = agent.buildProjectKnowledgeFallbackAnswer(localPathContext);
|
||||
expect(fallback).toContain('추가 질문으로 멈출 필요 없이');
|
||||
expect(fallback).toContain('ConnectAI Project Knowledge Overview');
|
||||
expect(fallback).not.toContain('어떤 기능 영역을 가장 먼저');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user