sam-coder-cli 1.0.51 → 1.0.53
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 +25 -21
- package/package.json +1 -1
package/bin/agi-animation.js
CHANGED
|
@@ -460,7 +460,7 @@ async function runAGIAnimation() {
|
|
|
460
460
|
// Animate node activation
|
|
461
461
|
const activation = Math.sin(i * 0.3 + layer + node) * 0.5 + 0.5;
|
|
462
462
|
if (activation > 0.7) {
|
|
463
|
-
line += chalk.
|
|
463
|
+
line += chalk.cyanBright('◉');
|
|
464
464
|
} else if (activation > 0.3) {
|
|
465
465
|
line += chalk.cyan('◯');
|
|
466
466
|
} else {
|
|
@@ -539,7 +539,7 @@ async function runAGIAnimation() {
|
|
|
539
539
|
if (combined > 0.7) {
|
|
540
540
|
// Binary data
|
|
541
541
|
const bit = ((x + y + i) % 7) < 3 ? '1' : '0';
|
|
542
|
-
line += chalk.
|
|
542
|
+
line += chalk.greenBright(bit);
|
|
543
543
|
} else if (combined > 0.4) {
|
|
544
544
|
// Block characters
|
|
545
545
|
const blocks = ['█', '▓', '▒', '░'];
|
|
@@ -580,7 +580,7 @@ async function runAGIAnimation() {
|
|
|
580
580
|
for (let j = 0; j < filled; j++) {
|
|
581
581
|
const intensity = (j / filled) * 0.7 + 0.3;
|
|
582
582
|
if (intensity > 0.8) {
|
|
583
|
-
bar += chalk.
|
|
583
|
+
bar += chalk.cyanBright('█');
|
|
584
584
|
} else if (intensity > 0.5) {
|
|
585
585
|
bar += chalk.cyan('█');
|
|
586
586
|
} else {
|
|
@@ -591,7 +591,7 @@ async function runAGIAnimation() {
|
|
|
591
591
|
// Add loading cursor
|
|
592
592
|
if (remaining > 0 && i < 29) {
|
|
593
593
|
const cursor = ['▌', '▐'][i % 2];
|
|
594
|
-
bar += chalk.
|
|
594
|
+
bar += chalk.cyanBright(cursor);
|
|
595
595
|
bar += chalk.gray('░').repeat(remaining - 1);
|
|
596
596
|
} else {
|
|
597
597
|
bar += chalk.gray('░').repeat(remaining);
|
|
@@ -689,7 +689,7 @@ async function runAGIAnimation() {
|
|
|
689
689
|
// Transition from Matrix Rain to DNA
|
|
690
690
|
clearScreen();
|
|
691
691
|
const matrixToDNAText = centerText('[ DECODING GENETIC ALGORITHMS ]');
|
|
692
|
-
safeWrite(chalk.
|
|
692
|
+
safeWrite(chalk.greenBright('\n'.repeat(Math.floor(height / 2)) + matrixToDNAText));
|
|
693
693
|
await sleep(500);
|
|
694
694
|
|
|
695
695
|
// Fade out transition
|
|
@@ -732,9 +732,9 @@ async function runAGIAnimation() {
|
|
|
732
732
|
|
|
733
733
|
// DNA strands
|
|
734
734
|
if (leftDist < 1) {
|
|
735
|
-
line += chalk.
|
|
735
|
+
line += chalk.blueBright('●');
|
|
736
736
|
} else if (rightDist < 1) {
|
|
737
|
-
line += chalk.
|
|
737
|
+
line += chalk.redBright('●');
|
|
738
738
|
} else if (Math.abs(leftX - rightX) > 2 && x > Math.min(leftX, rightX) && x < Math.max(leftX, rightX)) {
|
|
739
739
|
// Connecting bonds
|
|
740
740
|
if (y % 3 === 0) {
|
|
@@ -820,15 +820,15 @@ async function runAGIAnimation() {
|
|
|
820
820
|
} else if (isNode && isHorizontalTrace) {
|
|
821
821
|
// Connection nodes with animation
|
|
822
822
|
const pulse = Math.sin(frame * 0.3 + x + y) > 0;
|
|
823
|
-
line += pulse ? chalk.
|
|
823
|
+
line += pulse ? chalk.yellowBright('◉') : chalk.yellow('◯');
|
|
824
824
|
} else if (isHorizontalTrace && !isVerticalTrace) {
|
|
825
825
|
// Horizontal traces
|
|
826
826
|
const powered = Math.sin(frame * 0.2 + x * 0.1) > 0;
|
|
827
|
-
line += powered ? chalk.
|
|
827
|
+
line += powered ? chalk.greenBright('━') : chalk.green('─');
|
|
828
828
|
} else if (isVerticalTrace && !isHorizontalTrace) {
|
|
829
829
|
// Vertical traces
|
|
830
830
|
const powered = Math.cos(frame * 0.2 + y * 0.1) > 0;
|
|
831
|
-
line += powered ? chalk.
|
|
831
|
+
line += powered ? chalk.greenBright('┃') : chalk.green('│');
|
|
832
832
|
} else if (isHorizontalTrace && isVerticalTrace) {
|
|
833
833
|
// Intersections
|
|
834
834
|
line += chalk.green('┼');
|
|
@@ -859,6 +859,10 @@ async function runAGIAnimation() {
|
|
|
859
859
|
frameCount++;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
+
// Debug: Confirm neural pathways completed
|
|
863
|
+
console.log('\n[DEBUG] Neural pathways phase completed, starting consciousness...');
|
|
864
|
+
await sleep(1000);
|
|
865
|
+
|
|
862
866
|
// PHASE 10: Consciousness Awakening (2 seconds - 60 frames)
|
|
863
867
|
// Play consciousness sound (non-blocking)
|
|
864
868
|
sound.playConsciousnessSound().catch(() => {});
|
|
@@ -908,11 +912,11 @@ async function runAGIAnimation() {
|
|
|
908
912
|
if (char === '●') {
|
|
909
913
|
// Neurons pulsing
|
|
910
914
|
const pulse = Math.sin(frame * 0.3 + x + y) > 0;
|
|
911
|
-
line = line.substring(0, x) + (pulse ? chalk.
|
|
915
|
+
line = line.substring(0, x) + (pulse ? chalk.yellowBright('◉') : chalk.yellow('◯')) + line.substring(x + 1);
|
|
912
916
|
} else if (char === '─' || char === '│' || char === '╱' || char === '╲') {
|
|
913
917
|
// Neural pathways
|
|
914
918
|
if (waveValue > 0.7) {
|
|
915
|
-
line = line.substring(0, x) + chalk.
|
|
919
|
+
line = line.substring(0, x) + chalk.cyanBright(char) + line.substring(x + 1);
|
|
916
920
|
} else if (waveValue > 0.4) {
|
|
917
921
|
line = line.substring(0, x) + chalk.cyan(char) + line.substring(x + 1);
|
|
918
922
|
} else {
|
|
@@ -951,7 +955,7 @@ async function runAGIAnimation() {
|
|
|
951
955
|
// Add consciousness level indicator
|
|
952
956
|
const consciousnessLevel = Math.floor(progress * 100);
|
|
953
957
|
const statusText = `[CONSCIOUSNESS LEVEL: ${consciousnessLevel}%]`;
|
|
954
|
-
consciousnessFrame += '\n' + centerText(chalk.
|
|
958
|
+
consciousnessFrame += '\n' + centerText(chalk.magentaBright(statusText));
|
|
955
959
|
|
|
956
960
|
consciousnessFrames.push(consciousnessFrame);
|
|
957
961
|
}
|
|
@@ -996,7 +1000,7 @@ async function runAGIAnimation() {
|
|
|
996
1000
|
// Stars and cosmic dust
|
|
997
1001
|
if (distance < 2) {
|
|
998
1002
|
// Galactic core
|
|
999
|
-
line += chalk.
|
|
1003
|
+
line += chalk.yellowBright('☀');
|
|
1000
1004
|
} else if (coreIntensity > 0.5) {
|
|
1001
1005
|
line += chalk.yellow('●');
|
|
1002
1006
|
} else if (coreIntensity > 0.2) {
|
|
@@ -1028,7 +1032,7 @@ async function runAGIAnimation() {
|
|
|
1028
1032
|
// Add cosmic status
|
|
1029
1033
|
const starsFormed = Math.floor(progress * 1000000);
|
|
1030
1034
|
const statusText = `[STARS FORMED: ${starsFormed.toLocaleString()} | UNIVERSE EXPANDING]`;
|
|
1031
|
-
galaxyFrame += '\n' + centerText(chalk.
|
|
1035
|
+
galaxyFrame += '\n' + centerText(chalk.blueBright(statusText));
|
|
1032
1036
|
|
|
1033
1037
|
galaxyFrames.push(galaxyFrame);
|
|
1034
1038
|
}
|
|
@@ -1114,7 +1118,7 @@ async function runAGIAnimation() {
|
|
|
1114
1118
|
|
|
1115
1119
|
// Terminal header
|
|
1116
1120
|
compilationFrame += centerText(chalk.gray('┌' + '─'.repeat(codeWidth - 2) + '┐')) + '\n';
|
|
1117
|
-
compilationFrame += centerText(chalk.gray('│') + chalk.
|
|
1121
|
+
compilationFrame += centerText(chalk.gray('│') + chalk.greenBright(' COMPILING SAM-CODER v1.0.0 ') + ' '.repeat(codeWidth - 30) + chalk.gray('│')) + '\n';
|
|
1118
1122
|
compilationFrame += centerText(chalk.gray('├' + '─'.repeat(codeWidth - 2) + '┤')) + '\n';
|
|
1119
1123
|
|
|
1120
1124
|
// Show code with progressive compilation
|
|
@@ -1127,7 +1131,7 @@ async function runAGIAnimation() {
|
|
|
1127
1131
|
if (i < visibleLines) {
|
|
1128
1132
|
// Already compiled - syntax highlighted
|
|
1129
1133
|
displayLine = line
|
|
1130
|
-
.replace(/class|extends|constructor|super|new|async|await|return|const/g, match => chalk.
|
|
1134
|
+
.replace(/class|extends|constructor|super|new|async|await|return|const/g, match => chalk.blueBright(match))
|
|
1131
1135
|
.replace(/this\./g, chalk.yellow('this.'))
|
|
1132
1136
|
.replace(/\(/g, chalk.gray('('))
|
|
1133
1137
|
.replace(/\)/g, chalk.gray(')'))
|
|
@@ -1140,7 +1144,7 @@ async function runAGIAnimation() {
|
|
|
1140
1144
|
const charProgress = Math.floor(line.length * ((progress * codeSnippets.length - i) % 1));
|
|
1141
1145
|
displayLine = chalk.green(line.substring(0, charProgress));
|
|
1142
1146
|
if (charProgress < line.length) {
|
|
1143
|
-
displayLine += chalk.
|
|
1147
|
+
displayLine += chalk.greenBright('█');
|
|
1144
1148
|
displayLine += chalk.gray(line.substring(charProgress + 1));
|
|
1145
1149
|
}
|
|
1146
1150
|
} else {
|
|
@@ -1162,7 +1166,7 @@ async function runAGIAnimation() {
|
|
|
1162
1166
|
const progressBar = '█'.repeat(filled) + '░'.repeat(barWidth - filled);
|
|
1163
1167
|
const percentage = Math.floor(progress * 100);
|
|
1164
1168
|
|
|
1165
|
-
compilationFrame += centerText(chalk.gray('│ ') + chalk.green('Building: ') + chalk.
|
|
1169
|
+
compilationFrame += centerText(chalk.gray('│ ') + chalk.green('Building: ') + chalk.greenBright(progressBar) + chalk.green(` ${percentage}%`) + chalk.gray(' │')) + '\n';
|
|
1166
1170
|
|
|
1167
1171
|
// Status messages
|
|
1168
1172
|
let status = '';
|
|
@@ -1288,10 +1292,10 @@ async function runAGIAnimation() {
|
|
|
1288
1292
|
const waveProgress = waveRadius / maxRadius;
|
|
1289
1293
|
|
|
1290
1294
|
if (waveProgress < 0.3) {
|
|
1291
|
-
color = chalk.
|
|
1295
|
+
color = chalk.yellowBright;
|
|
1292
1296
|
char = intensity > 0.5 ? '█' : '▓';
|
|
1293
1297
|
} else if (waveProgress < 0.6) {
|
|
1294
|
-
color = chalk.
|
|
1298
|
+
color = chalk.cyanBright;
|
|
1295
1299
|
char = intensity > 0.5 ? '▓' : '▒';
|
|
1296
1300
|
} else {
|
|
1297
1301
|
color = chalk.blue;
|