Version 2.54.0 Release: Jarvis Project Brief and Thinking Partner Response Contract
This commit is contained in:
@@ -70,6 +70,19 @@ describe('local project path preflight', () => {
|
||||
expect(agent.shouldPreflightLocalProjectPath(prompt)).toBe(true);
|
||||
});
|
||||
|
||||
it('treats architecture opinion requests with local paths as inspectable work', () => {
|
||||
const context: any = {
|
||||
globalStorageUri: { fsPath: path.join(root, '.storage') },
|
||||
workspaceState: stateStore(),
|
||||
globalState: stateStore()
|
||||
};
|
||||
const agent = new AgentExecutor(context) as any;
|
||||
const prompt = '프로젝트 경로는 /Volumes/Data/project/Antigravity/ConnectAI 이야. 그럼 이 프로젝트에 대한 설계, 아키텍처는 어떤거 같아?';
|
||||
|
||||
expect(agent.shouldPreflightLocalProjectPath(prompt)).toBe(true);
|
||||
expect(agent.isThinkingPartnerRequest(prompt)).toBe(true);
|
||||
});
|
||||
|
||||
it('removes file-structure requests when knowledge creation path access already succeeded', () => {
|
||||
const context: any = {
|
||||
globalStorageUri: { fsPath: path.join(root, '.storage') },
|
||||
@@ -299,4 +312,40 @@ describe('local project path preflight', () => {
|
||||
expect(fixed).toContain('`src/agent.ts`');
|
||||
expect(fixed).toContain('로컬 프로젝트 경로');
|
||||
});
|
||||
|
||||
it('builds a Jarvis project brief for architecture thinking-partner questions', () => {
|
||||
const context: any = {
|
||||
globalStorageUri: { fsPath: path.join(root, '.storage') },
|
||||
workspaceState: stateStore(),
|
||||
globalState: stateStore()
|
||||
};
|
||||
const agent = new AgentExecutor(context) as any;
|
||||
const localPathContext = [
|
||||
'Path: /Volumes/Data/project/Antigravity/ConnectAI',
|
||||
'Access: succeeded',
|
||||
'Type: directory',
|
||||
'Scanned tree:',
|
||||
'package.json',
|
||||
'src/agent.ts',
|
||||
'src/features/secondBrainTrace.ts',
|
||||
'Priority file previews:',
|
||||
'File: package.json',
|
||||
'{"name":"connectai"}',
|
||||
'File: src/agent.ts',
|
||||
'export class AgentExecutor {}'
|
||||
].join('\n');
|
||||
|
||||
const brief = agent.buildJarvisProjectBriefContext(
|
||||
'그럼 이 프로젝트에 대한 설계, 아키텍처는 어떤거 같아?',
|
||||
localPathContext,
|
||||
''
|
||||
);
|
||||
|
||||
expect(brief).toContain('[JARVIS PROJECT BRIEF]');
|
||||
expect(brief).toContain('/Volumes/Data/project/Antigravity/ConnectAI');
|
||||
expect(brief).toContain('src/agent.ts');
|
||||
expect(brief).toContain('Thinking partner response contract');
|
||||
expect(brief).toContain('direct verdict');
|
||||
expect(brief).toContain('decision fork');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user