sam-coder-cli 1.0.55 → 1.0.57
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 +19 -13
- package/package.json +1 -1
package/bin/agi-animation.js
CHANGED
|
@@ -864,17 +864,19 @@ async function runAGIAnimation() {
|
|
|
864
864
|
await sleep(1000);
|
|
865
865
|
|
|
866
866
|
// PHASE 10: Consciousness Awakening (2 seconds - 60 frames)
|
|
867
|
-
|
|
868
|
-
Promise.race([
|
|
869
|
-
sound.playConsciousnessSound().catch(() => {}),
|
|
870
|
-
new Promise(resolve => setTimeout(resolve, 1000)) // 1 second timeout
|
|
871
|
-
]).catch(() => {});
|
|
867
|
+
console.log('[DEBUG] About to start consciousness sound...');
|
|
872
868
|
|
|
869
|
+
// Temporarily disable consciousness sound to test
|
|
870
|
+
// sound.playConsciousnessSound().catch(() => {});
|
|
871
|
+
|
|
872
|
+
console.log('[DEBUG] Starting consciousness frame generation...');
|
|
873
873
|
const consciousnessFrames = [];
|
|
874
874
|
const brainWidth = Math.min(60, Math.floor(width * 0.7));
|
|
875
875
|
const brainHeight = Math.min(24, Math.floor(height * 0.7));
|
|
876
876
|
|
|
877
|
+
console.log('[DEBUG] About to generate 60 consciousness frames...');
|
|
877
878
|
for (let frame = 0; frame < 60; frame++) {
|
|
879
|
+
if (frame % 10 === 0) console.log(`[DEBUG] Generating consciousness frame ${frame}/60`);
|
|
878
880
|
const progress = frame / 59;
|
|
879
881
|
const wavePhase = frame * 0.1;
|
|
880
882
|
|
|
@@ -905,32 +907,35 @@ async function runAGIAnimation() {
|
|
|
905
907
|
|
|
906
908
|
// Render brain with neural activity
|
|
907
909
|
for (let y = 0; y < brainArt.length; y++) {
|
|
908
|
-
|
|
910
|
+
const originalLine = brainArt[y];
|
|
911
|
+
const chars = originalLine.split('');
|
|
909
912
|
|
|
910
913
|
// Add wave effects
|
|
911
|
-
for (let x = 0; x <
|
|
912
|
-
const char =
|
|
914
|
+
for (let x = 0; x < chars.length; x++) {
|
|
915
|
+
const char = chars[x];
|
|
913
916
|
const waveValue = Math.sin((x * 0.2) + wavePhase + (y * 0.1)) * 0.5 + 0.5;
|
|
914
917
|
|
|
915
918
|
if (char === '●') {
|
|
916
919
|
// Neurons pulsing
|
|
917
920
|
const pulse = Math.sin(frame * 0.3 + x + y) > 0;
|
|
918
|
-
|
|
921
|
+
chars[x] = pulse ? chalk.yellowBright('◉') : chalk.yellow('◯');
|
|
919
922
|
} else if (char === '─' || char === '│' || char === '╱' || char === '╲') {
|
|
920
923
|
// Neural pathways
|
|
921
924
|
if (waveValue > 0.7) {
|
|
922
|
-
|
|
925
|
+
chars[x] = chalk.cyanBright(char);
|
|
923
926
|
} else if (waveValue > 0.4) {
|
|
924
|
-
|
|
927
|
+
chars[x] = chalk.cyan(char);
|
|
925
928
|
} else {
|
|
926
|
-
|
|
929
|
+
chars[x] = chalk.cyan.dim(char);
|
|
927
930
|
}
|
|
928
931
|
} else if (char !== ' ' && char !== '\n') {
|
|
929
932
|
// Brain structure
|
|
930
|
-
|
|
933
|
+
chars[x] = chalk.magenta(char);
|
|
931
934
|
}
|
|
932
935
|
}
|
|
933
936
|
|
|
937
|
+
const line = chars.join('');
|
|
938
|
+
|
|
934
939
|
consciousnessFrame += centerText(line) + '\n';
|
|
935
940
|
}
|
|
936
941
|
|
|
@@ -963,6 +968,7 @@ async function runAGIAnimation() {
|
|
|
963
968
|
consciousnessFrames.push(consciousnessFrame);
|
|
964
969
|
}
|
|
965
970
|
|
|
971
|
+
console.log('[DEBUG] Finished generating consciousness frames, now rendering...');
|
|
966
972
|
for (const frame of consciousnessFrames) {
|
|
967
973
|
clearScreen();
|
|
968
974
|
safeWrite(frame);
|