sam-coder-cli 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/agi-animation.js +10 -3
- package/package.json +1 -1
package/bin/agi-animation.js
CHANGED
|
@@ -1411,7 +1411,16 @@ async function runAGIAnimation() {
|
|
|
1411
1411
|
safeWrite(chalk.gray(centerText('\n\n[ SYSTEM READY ]')));
|
|
1412
1412
|
safeWrite(chalk.dim(centerText('\n\nPress any key to continue...')));
|
|
1413
1413
|
|
|
1414
|
-
|
|
1414
|
+
// Wait for actual user input
|
|
1415
|
+
await new Promise(resolve => {
|
|
1416
|
+
process.stdin.setRawMode(true);
|
|
1417
|
+
process.stdin.resume();
|
|
1418
|
+
process.stdin.once('data', () => {
|
|
1419
|
+
process.stdin.setRawMode(false);
|
|
1420
|
+
process.stdin.pause();
|
|
1421
|
+
resolve();
|
|
1422
|
+
});
|
|
1423
|
+
});
|
|
1415
1424
|
|
|
1416
1425
|
const totalTime = Date.now() - startTime;
|
|
1417
1426
|
const actualFPS = Math.round(frameCount / (totalTime / 1000));
|
|
@@ -1421,8 +1430,6 @@ async function runAGIAnimation() {
|
|
|
1421
1430
|
console.log(chalk.gray(`\n\nAnimation completed: ${frameCount} frames in ${totalTime}ms (${actualFPS} FPS)`));
|
|
1422
1431
|
}
|
|
1423
1432
|
|
|
1424
|
-
await sleep(1000);
|
|
1425
|
-
|
|
1426
1433
|
} finally {
|
|
1427
1434
|
process.stdout.write(ANSI.showCursor);
|
|
1428
1435
|
clearScreen();
|