forked from Handit-AI/handit-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-applied-flag-fix.js
More file actions
33 lines (26 loc) Β· 1.18 KB
/
test-applied-flag-fix.js
File metadata and controls
33 lines (26 loc) Β· 1.18 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
#!/usr/bin/env node
/**
* Test script to verify the applied flag fix
*/
console.log('π§ͺ Testing Applied Flag Fix...\n');
// Simulate the projectInfo that should be returned
const projectInfo = {
agentName: 'ttt',
entryFile: 'examples/loan-risk-document-agent/agent/src/risk_analysis_workflow/workflow.py',
entryFunction: 'analyze_risk', // This was missing before
applied: true // This was undefined before
};
console.log('π Expected Project Info:');
console.log(JSON.stringify(projectInfo, null, 2));
console.log('\nπ Testing the check:');
console.log('projectInfo.applied =', projectInfo.applied);
if (projectInfo.applied) {
console.log('β
Setup already completed in Ink wizard');
console.log('π All steps including code generation, repository URL update, and setup instructions have been completed.');
console.log('πͺ Exiting without running fallback logic');
} else {
console.log('β This should not run - fallback logic triggered');
console.log('π Would run language detection and code generation...');
}
console.log('\nβ
Applied flag fix test completed!');
console.log('π― The applied flag should now be true and prevent fallback logic from running');