sam-coder-cli 1.0.54 → 1.0.55
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 +9 -2
- package/package.json +1 -1
package/bin/agi-animation.js
CHANGED
|
@@ -864,8 +864,11 @@ async function runAGIAnimation() {
|
|
|
864
864
|
await sleep(1000);
|
|
865
865
|
|
|
866
866
|
// PHASE 10: Consciousness Awakening (2 seconds - 60 frames)
|
|
867
|
-
// Play consciousness sound (non-blocking)
|
|
868
|
-
|
|
867
|
+
// Play consciousness sound (completely non-blocking with timeout)
|
|
868
|
+
Promise.race([
|
|
869
|
+
sound.playConsciousnessSound().catch(() => {}),
|
|
870
|
+
new Promise(resolve => setTimeout(resolve, 1000)) // 1 second timeout
|
|
871
|
+
]).catch(() => {});
|
|
869
872
|
|
|
870
873
|
const consciousnessFrames = [];
|
|
871
874
|
const brainWidth = Math.min(60, Math.floor(width * 0.7));
|
|
@@ -967,6 +970,10 @@ async function runAGIAnimation() {
|
|
|
967
970
|
frameCount++;
|
|
968
971
|
}
|
|
969
972
|
|
|
973
|
+
// Debug: Confirm consciousness phase completed
|
|
974
|
+
console.log('\n[DEBUG] Consciousness phase completed, starting galaxy formation...');
|
|
975
|
+
await sleep(1000);
|
|
976
|
+
|
|
970
977
|
// PHASE 11: Galaxy Formation (2 seconds - 60 frames)
|
|
971
978
|
// Play galaxy sound (non-blocking)
|
|
972
979
|
sound.playGalaxySound().catch(() => {});
|