Version 2.47.0 Release: Recursive Project Knowledge Flow and Follow-up Context Injection

This commit is contained in:
g1nation
2026-05-03 01:22:15 +09:00
parent fadf867978
commit ecec7556da
4 changed files with 233 additions and 1 deletions
+30
View File
@@ -174,4 +174,34 @@ describe('local project path preflight', () => {
expect(content).toContain('package.json');
expect(content).toContain('src/features/game/systems/CombatSystem.ts');
});
it('uses the latest project knowledge record for architecture follow-up questions without a path', () => {
const context: any = {
globalStorageUri: { fsPath: path.join(root, '.storage') },
workspaceState: stateStore(),
globalState: stateStore()
};
const agent = new AgentExecutor(context) as any;
const recordDir = path.join(root, 'docs', 'records', path.basename(root), 'development');
fs.mkdirSync(recordDir, { recursive: true });
const recordPath = path.join(recordDir, '2026-05-02_project_knowledge_overview.md');
fs.writeFileSync(
recordPath,
[
'# Project Knowledge Overview',
'',
'## Confirmed Structure',
'- `src/agent.ts`: 에이전트 실행 흐름의 중심.',
'- `src/sidebarProvider.ts`: Webview UI를 담당.'
].join('\n'),
'utf8'
);
const followup = agent.buildRecentProjectKnowledgeContext('이젠 아키텍처에 대한 조사도 해주면 좋을 것 같아.', root);
expect(followup).toContain('[RECENT LOCAL PROJECT KNOWLEDGE]');
expect(followup).toContain(recordPath);
expect(followup).toContain('src/agent.ts');
expect(followup).toContain('recently generated project knowledge record');
});
});