-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathalt-test.js
More file actions
49 lines (45 loc) · 1.52 KB
/
Copy pathalt-test.js
File metadata and controls
49 lines (45 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import fs from 'fs';
function createVibeCheckRequest(id, goal, plan, userPrompt, progress, sessionId) {
return JSON.stringify({
jsonrpc: '2.0',
method: 'tools/call',
params: {
name: 'vibe_check',
arguments: {
goal: goal,
plan: plan,
userPrompt: userPrompt,
progress: progress,
sessionId: sessionId,
modelOverride: {
provider: 'openrouter',
model: 'tngtech/deepseek-r1t2-chimera:free'
}
}
},
id: id
});
}
const sessionId = 'history-test-session-phase4';
// First call
const request1 = createVibeCheckRequest(
1,
'Test new meta-mentor prompt and history functionality',
'1. Make the first call to establish history.',
'Please test the new meta-mentor prompt and history feature.',
'Starting the test.',
sessionId
);
fs.writeFileSync('request1.json', request1, 'utf-8');
console.log('Generated request1.json for the first call.');
// Second call
const request2 = createVibeCheckRequest(
2,
'Test new meta-mentor prompt and history functionality',
'2. Make the second call to verify history is included and prompt tone.',
'Please test the new meta-mentor prompt and history feature.',
'Just made the second call, expecting history context.',
sessionId
);
fs.writeFileSync('request2.json', request2, 'utf-8');
console.log('Generated request2.json for the second call.');