Release v1.01 Enhanced: Vi Control, TUI Gen5, Core Stability

This commit is contained in:
Gemini AI
2025-12-20 01:12:45 +04:00
Unverified
parent 2407c42eb9
commit 142aaeee1e
254 changed files with 44888 additions and 31025 deletions

View File

@@ -687,11 +687,17 @@ function showProjectMenu() {
(async () => {
const qwen = getQwen();
const authed = await qwen.checkAuth();
if (!authed) {
if (!authed || !authed.authenticated) {
print(`\n${c.yellow}Authentication required. Launching web login...${c.reset}\n`);
// Use node bin/auth.js - the working method
const authScript = path.join(__dirname, 'auth.js');
if (!fs.existsSync(authScript)) {
print(`${c.red}auth.js not found at: ${authScript}${c.reset}\n`);
process.exit(1);
}
await new Promise((resolve) => {
const child = spawn('node', [authScript], {
stdio: 'inherit',
@@ -704,14 +710,16 @@ function showProjectMenu() {
resolve();
} else {
print(`\n${c.red}Authentication failed or was cancelled.${c.reset}\n`);
print(`${c.dim}You can try: node bin/auth.js${c.reset}\n`);
process.exit(1);
}
});
});
// Re-check auth
const recheck = await qwen.checkAuth();
if (!recheck) {
if (!recheck || !recheck.authenticated) {
process.exit(1);
}
}