sam-coder-cli 1.0.56 → 1.0.58
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 +17 -23
- package/package.json +1 -1
package/bin/agi-animation.js
CHANGED
|
@@ -859,24 +859,16 @@ async function runAGIAnimation() {
|
|
|
859
859
|
frameCount++;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
//
|
|
863
|
-
console.log('\n[DEBUG] Neural pathways phase completed, starting consciousness...');
|
|
864
|
-
await sleep(1000);
|
|
862
|
+
// Neural pathways phase completed
|
|
865
863
|
|
|
866
864
|
// PHASE 10: Consciousness Awakening (2 seconds - 60 frames)
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
// Temporarily disable consciousness sound to test
|
|
870
|
-
// sound.playConsciousnessSound().catch(() => {});
|
|
871
|
-
|
|
872
|
-
console.log('[DEBUG] Starting consciousness frame generation...');
|
|
865
|
+
// Play consciousness sound (non-blocking)
|
|
866
|
+
sound.playConsciousnessSound().catch(() => {});
|
|
873
867
|
const consciousnessFrames = [];
|
|
874
868
|
const brainWidth = Math.min(60, Math.floor(width * 0.7));
|
|
875
869
|
const brainHeight = Math.min(24, Math.floor(height * 0.7));
|
|
876
870
|
|
|
877
|
-
console.log('[DEBUG] About to generate 60 consciousness frames...');
|
|
878
871
|
for (let frame = 0; frame < 60; frame++) {
|
|
879
|
-
if (frame % 10 === 0) console.log(`[DEBUG] Generating consciousness frame ${frame}/60`);
|
|
880
872
|
const progress = frame / 59;
|
|
881
873
|
const wavePhase = frame * 0.1;
|
|
882
874
|
|
|
@@ -907,32 +899,35 @@ async function runAGIAnimation() {
|
|
|
907
899
|
|
|
908
900
|
// Render brain with neural activity
|
|
909
901
|
for (let y = 0; y < brainArt.length; y++) {
|
|
910
|
-
|
|
902
|
+
const originalLine = brainArt[y];
|
|
903
|
+
const chars = originalLine.split('');
|
|
911
904
|
|
|
912
905
|
// Add wave effects
|
|
913
|
-
for (let x = 0; x <
|
|
914
|
-
const char =
|
|
906
|
+
for (let x = 0; x < chars.length; x++) {
|
|
907
|
+
const char = chars[x];
|
|
915
908
|
const waveValue = Math.sin((x * 0.2) + wavePhase + (y * 0.1)) * 0.5 + 0.5;
|
|
916
909
|
|
|
917
910
|
if (char === '●') {
|
|
918
911
|
// Neurons pulsing
|
|
919
912
|
const pulse = Math.sin(frame * 0.3 + x + y) > 0;
|
|
920
|
-
|
|
913
|
+
chars[x] = pulse ? chalk.yellowBright('◉') : chalk.yellow('◯');
|
|
921
914
|
} else if (char === '─' || char === '│' || char === '╱' || char === '╲') {
|
|
922
915
|
// Neural pathways
|
|
923
916
|
if (waveValue > 0.7) {
|
|
924
|
-
|
|
917
|
+
chars[x] = chalk.cyanBright(char);
|
|
925
918
|
} else if (waveValue > 0.4) {
|
|
926
|
-
|
|
919
|
+
chars[x] = chalk.cyan(char);
|
|
927
920
|
} else {
|
|
928
|
-
|
|
921
|
+
chars[x] = chalk.cyan.dim(char);
|
|
929
922
|
}
|
|
930
923
|
} else if (char !== ' ' && char !== '\n') {
|
|
931
924
|
// Brain structure
|
|
932
|
-
|
|
925
|
+
chars[x] = chalk.magenta(char);
|
|
933
926
|
}
|
|
934
927
|
}
|
|
935
928
|
|
|
929
|
+
const line = chars.join('');
|
|
930
|
+
|
|
936
931
|
consciousnessFrame += centerText(line) + '\n';
|
|
937
932
|
}
|
|
938
933
|
|
|
@@ -965,6 +960,7 @@ async function runAGIAnimation() {
|
|
|
965
960
|
consciousnessFrames.push(consciousnessFrame);
|
|
966
961
|
}
|
|
967
962
|
|
|
963
|
+
|
|
968
964
|
for (const frame of consciousnessFrames) {
|
|
969
965
|
clearScreen();
|
|
970
966
|
safeWrite(frame);
|
|
@@ -972,9 +968,7 @@ async function runAGIAnimation() {
|
|
|
972
968
|
frameCount++;
|
|
973
969
|
}
|
|
974
970
|
|
|
975
|
-
//
|
|
976
|
-
console.log('\n[DEBUG] Consciousness phase completed, starting galaxy formation...');
|
|
977
|
-
await sleep(1000);
|
|
971
|
+
// Consciousness phase completed
|
|
978
972
|
|
|
979
973
|
// PHASE 11: Galaxy Formation (2 seconds - 60 frames)
|
|
980
974
|
// Play galaxy sound (non-blocking)
|
|
@@ -1426,7 +1420,7 @@ async function runAGIAnimation() {
|
|
|
1426
1420
|
process.stdin.resume();
|
|
1427
1421
|
process.stdin.once('data', () => {
|
|
1428
1422
|
process.stdin.setRawMode(false);
|
|
1429
|
-
|
|
1423
|
+
// Don't pause stdin here - let the CLI handle it
|
|
1430
1424
|
resolve();
|
|
1431
1425
|
});
|
|
1432
1426
|
});
|