sam-coder-cli 1.0.50 → 1.0.52
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 +24 -24
- package/package.json +1 -1
package/bin/agi-animation.js
CHANGED
|
@@ -366,7 +366,7 @@ async function runAGIAnimation() {
|
|
|
366
366
|
|
|
367
367
|
for (const frame of sparkFrames) {
|
|
368
368
|
clearScreen();
|
|
369
|
-
safeWrite(chalk.
|
|
369
|
+
safeWrite(chalk.whiteBright(frame));
|
|
370
370
|
await sleep(frameTime);
|
|
371
371
|
frameCount++;
|
|
372
372
|
}
|
|
@@ -379,7 +379,7 @@ async function runAGIAnimation() {
|
|
|
379
379
|
const sparkToQuantumTransition = interpolator.fadeFrames(sparkFrames[sparkFrames.length - 1], false, 5);
|
|
380
380
|
for (const frame of sparkToQuantumTransition) {
|
|
381
381
|
clearScreen();
|
|
382
|
-
safeWrite(chalk.
|
|
382
|
+
safeWrite(chalk.whiteBright(frame));
|
|
383
383
|
await sleep(frameTime);
|
|
384
384
|
frameCount++;
|
|
385
385
|
}
|
|
@@ -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('┼');
|
|
@@ -908,11 +908,11 @@ async function runAGIAnimation() {
|
|
|
908
908
|
if (char === '●') {
|
|
909
909
|
// Neurons pulsing
|
|
910
910
|
const pulse = Math.sin(frame * 0.3 + x + y) > 0;
|
|
911
|
-
line = line.substring(0, x) + (pulse ? chalk.
|
|
911
|
+
line = line.substring(0, x) + (pulse ? chalk.yellowBright('◉') : chalk.yellow('◯')) + line.substring(x + 1);
|
|
912
912
|
} else if (char === '─' || char === '│' || char === '╱' || char === '╲') {
|
|
913
913
|
// Neural pathways
|
|
914
914
|
if (waveValue > 0.7) {
|
|
915
|
-
line = line.substring(0, x) + chalk.
|
|
915
|
+
line = line.substring(0, x) + chalk.cyanBright(char) + line.substring(x + 1);
|
|
916
916
|
} else if (waveValue > 0.4) {
|
|
917
917
|
line = line.substring(0, x) + chalk.cyan(char) + line.substring(x + 1);
|
|
918
918
|
} else {
|
|
@@ -951,7 +951,7 @@ async function runAGIAnimation() {
|
|
|
951
951
|
// Add consciousness level indicator
|
|
952
952
|
const consciousnessLevel = Math.floor(progress * 100);
|
|
953
953
|
const statusText = `[CONSCIOUSNESS LEVEL: ${consciousnessLevel}%]`;
|
|
954
|
-
consciousnessFrame += '\n' + centerText(chalk.
|
|
954
|
+
consciousnessFrame += '\n' + centerText(chalk.magentaBright(statusText));
|
|
955
955
|
|
|
956
956
|
consciousnessFrames.push(consciousnessFrame);
|
|
957
957
|
}
|
|
@@ -996,7 +996,7 @@ async function runAGIAnimation() {
|
|
|
996
996
|
// Stars and cosmic dust
|
|
997
997
|
if (distance < 2) {
|
|
998
998
|
// Galactic core
|
|
999
|
-
line += chalk.
|
|
999
|
+
line += chalk.yellowBright('☀');
|
|
1000
1000
|
} else if (coreIntensity > 0.5) {
|
|
1001
1001
|
line += chalk.yellow('●');
|
|
1002
1002
|
} else if (coreIntensity > 0.2) {
|
|
@@ -1006,7 +1006,7 @@ async function runAGIAnimation() {
|
|
|
1006
1006
|
const starChance = spiralValue * (1 - distance / (galaxySize / 2));
|
|
1007
1007
|
if (Math.random() < starChance * 0.3) {
|
|
1008
1008
|
const stars = ['✦', '✧', '★', '☆', '✨'];
|
|
1009
|
-
line += chalk.
|
|
1009
|
+
line += chalk.whiteBright(stars[Math.floor(Math.random() * stars.length)]);
|
|
1010
1010
|
} else if (Math.random() < starChance * 0.5) {
|
|
1011
1011
|
line += chalk.white('·');
|
|
1012
1012
|
} else if (Math.random() < starChance * 0.7) {
|
|
@@ -1028,7 +1028,7 @@ async function runAGIAnimation() {
|
|
|
1028
1028
|
// Add cosmic status
|
|
1029
1029
|
const starsFormed = Math.floor(progress * 1000000);
|
|
1030
1030
|
const statusText = `[STARS FORMED: ${starsFormed.toLocaleString()} | UNIVERSE EXPANDING]`;
|
|
1031
|
-
galaxyFrame += '\n' + centerText(chalk.
|
|
1031
|
+
galaxyFrame += '\n' + centerText(chalk.blueBright(statusText));
|
|
1032
1032
|
|
|
1033
1033
|
galaxyFrames.push(galaxyFrame);
|
|
1034
1034
|
}
|
|
@@ -1114,7 +1114,7 @@ async function runAGIAnimation() {
|
|
|
1114
1114
|
|
|
1115
1115
|
// Terminal header
|
|
1116
1116
|
compilationFrame += centerText(chalk.gray('┌' + '─'.repeat(codeWidth - 2) + '┐')) + '\n';
|
|
1117
|
-
compilationFrame += centerText(chalk.gray('│') + chalk.
|
|
1117
|
+
compilationFrame += centerText(chalk.gray('│') + chalk.greenBright(' COMPILING SAM-CODER v1.0.0 ') + ' '.repeat(codeWidth - 30) + chalk.gray('│')) + '\n';
|
|
1118
1118
|
compilationFrame += centerText(chalk.gray('├' + '─'.repeat(codeWidth - 2) + '┤')) + '\n';
|
|
1119
1119
|
|
|
1120
1120
|
// Show code with progressive compilation
|
|
@@ -1127,7 +1127,7 @@ async function runAGIAnimation() {
|
|
|
1127
1127
|
if (i < visibleLines) {
|
|
1128
1128
|
// Already compiled - syntax highlighted
|
|
1129
1129
|
displayLine = line
|
|
1130
|
-
.replace(/class|extends|constructor|super|new|async|await|return|const/g, match => chalk.
|
|
1130
|
+
.replace(/class|extends|constructor|super|new|async|await|return|const/g, match => chalk.blueBright(match))
|
|
1131
1131
|
.replace(/this\./g, chalk.yellow('this.'))
|
|
1132
1132
|
.replace(/\(/g, chalk.gray('('))
|
|
1133
1133
|
.replace(/\)/g, chalk.gray(')'))
|
|
@@ -1140,7 +1140,7 @@ async function runAGIAnimation() {
|
|
|
1140
1140
|
const charProgress = Math.floor(line.length * ((progress * codeSnippets.length - i) % 1));
|
|
1141
1141
|
displayLine = chalk.green(line.substring(0, charProgress));
|
|
1142
1142
|
if (charProgress < line.length) {
|
|
1143
|
-
displayLine += chalk.
|
|
1143
|
+
displayLine += chalk.greenBright('█');
|
|
1144
1144
|
displayLine += chalk.gray(line.substring(charProgress + 1));
|
|
1145
1145
|
}
|
|
1146
1146
|
} else {
|
|
@@ -1162,7 +1162,7 @@ async function runAGIAnimation() {
|
|
|
1162
1162
|
const progressBar = '█'.repeat(filled) + '░'.repeat(barWidth - filled);
|
|
1163
1163
|
const percentage = Math.floor(progress * 100);
|
|
1164
1164
|
|
|
1165
|
-
compilationFrame += centerText(chalk.gray('│ ') + chalk.green('Building: ') + chalk.
|
|
1165
|
+
compilationFrame += centerText(chalk.gray('│ ') + chalk.green('Building: ') + chalk.greenBright(progressBar) + chalk.green(` ${percentage}%`) + chalk.gray(' │')) + '\n';
|
|
1166
1166
|
|
|
1167
1167
|
// Status messages
|
|
1168
1168
|
let status = '';
|
|
@@ -1288,10 +1288,10 @@ async function runAGIAnimation() {
|
|
|
1288
1288
|
const waveProgress = waveRadius / maxRadius;
|
|
1289
1289
|
|
|
1290
1290
|
if (waveProgress < 0.3) {
|
|
1291
|
-
color = chalk.
|
|
1291
|
+
color = chalk.yellowBright;
|
|
1292
1292
|
char = intensity > 0.5 ? '█' : '▓';
|
|
1293
1293
|
} else if (waveProgress < 0.6) {
|
|
1294
|
-
color = chalk.
|
|
1294
|
+
color = chalk.cyanBright;
|
|
1295
1295
|
char = intensity > 0.5 ? '▓' : '▒';
|
|
1296
1296
|
} else {
|
|
1297
1297
|
color = chalk.blue;
|