Version 2.43.0 Release: Contextual Project Trace & Overrides
This commit is contained in:
@@ -215,4 +215,44 @@ describe('Second Brain Trace', () => {
|
||||
expect(trace.retrievedDocuments[0].path).not.toContain('API Gateway.md');
|
||||
expect(renderSecondBrainTraceContext(trace)).toContain('Approval likelihood is an inference');
|
||||
});
|
||||
|
||||
it('prioritizes notes for the project named in a local Antigravity path', () => {
|
||||
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'second-brain-project-target-'));
|
||||
try {
|
||||
fs.mkdirSync(path.join(root, 'Project_Logs'), { recursive: true });
|
||||
fs.writeFileSync(
|
||||
path.join(root, 'Project_Logs', '2026-04-25-Datacollector_Fix.md'),
|
||||
[
|
||||
'# Datacollector Fix',
|
||||
'',
|
||||
'Project: Datacollector',
|
||||
'Repository: `/Volumes/Data/project/Antigravity/Datacollector`',
|
||||
'project antigravity repository documentation knowledge'
|
||||
].join('\n'),
|
||||
'utf8'
|
||||
);
|
||||
fs.writeFileSync(
|
||||
path.join(root, 'Project_Logs', '2026-05-02-ConnectAI_Project_Knowledge.md'),
|
||||
[
|
||||
'# ConnectAI Project Knowledge',
|
||||
'',
|
||||
'Project: ConnectAI',
|
||||
'Repository: `/Volumes/Data/project/Antigravity/ConnectAI`',
|
||||
'ConnectAI project knowledge for local AI assistant, Second Brain Trace, and Project Chronicle.'
|
||||
].join('\n'),
|
||||
'utf8'
|
||||
);
|
||||
|
||||
const trace = buildSecondBrainTrace(
|
||||
'그러면 지금 /Volumes/Data/project/Antigravity/ConnectAI 프로젝트에 대한 지식을 만들어',
|
||||
root,
|
||||
{ force: true }
|
||||
);
|
||||
|
||||
expect(trace.retrievedDocuments[0].path).toContain('ConnectAI_Project_Knowledge.md');
|
||||
expect(trace.retrievedDocuments[0].path).not.toContain('Datacollector');
|
||||
} finally {
|
||||
fs.rmSync(root, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user