sam-coder-cli 1.0.56 → 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 +12 -8
- package/package.json +1 -1
package/bin/agi-animation.js
CHANGED
|
@@ -907,32 +907,35 @@ async function runAGIAnimation() {
|
|
|
907
907
|
|
|
908
908
|
// Render brain with neural activity
|
|
909
909
|
for (let y = 0; y < brainArt.length; y++) {
|
|
910
|
-
|
|
910
|
+
const originalLine = brainArt[y];
|
|
911
|
+
const chars = originalLine.split('');
|
|
911
912
|
|
|
912
913
|
// Add wave effects
|
|
913
|
-
for (let x = 0; x <
|
|
914
|
-
const char =
|
|
914
|
+
for (let x = 0; x < chars.length; x++) {
|
|
915
|
+
const char = chars[x];
|
|
915
916
|
const waveValue = Math.sin((x * 0.2) + wavePhase + (y * 0.1)) * 0.5 + 0.5;
|
|
916
917
|
|
|
917
918
|
if (char === '●') {
|
|
918
919
|
// Neurons pulsing
|
|
919
920
|
const pulse = Math.sin(frame * 0.3 + x + y) > 0;
|
|
920
|
-
|
|
921
|
+
chars[x] = pulse ? chalk.yellowBright('◉') : chalk.yellow('◯');
|
|
921
922
|
} else if (char === '─' || char === '│' || char === '╱' || char === '╲') {
|
|
922
923
|
// Neural pathways
|
|
923
924
|
if (waveValue > 0.7) {
|
|
924
|
-
|
|
925
|
+
chars[x] = chalk.cyanBright(char);
|
|
925
926
|
} else if (waveValue > 0.4) {
|
|
926
|
-
|
|
927
|
+
chars[x] = chalk.cyan(char);
|
|
927
928
|
} else {
|
|
928
|
-
|
|
929
|
+
chars[x] = chalk.cyan.dim(char);
|
|
929
930
|
}
|
|
930
931
|
} else if (char !== ' ' && char !== '\n') {
|
|
931
932
|
// Brain structure
|
|
932
|
-
|
|
933
|
+
chars[x] = chalk.magenta(char);
|
|
933
934
|
}
|
|
934
935
|
}
|
|
935
936
|
|
|
937
|
+
const line = chars.join('');
|
|
938
|
+
|
|
936
939
|
consciousnessFrame += centerText(line) + '\n';
|
|
937
940
|
}
|
|
938
941
|
|
|
@@ -965,6 +968,7 @@ async function runAGIAnimation() {
|
|
|
965
968
|
consciousnessFrames.push(consciousnessFrame);
|
|
966
969
|
}
|
|
967
970
|
|
|
971
|
+
console.log('[DEBUG] Finished generating consciousness frames, now rendering...');
|
|
968
972
|
for (const frame of consciousnessFrames) {
|
|
969
973
|
clearScreen();
|
|
970
974
|
safeWrite(frame);
|