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.
@@ -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
- let line = brainArt[y];
910
+ const originalLine = brainArt[y];
911
+ const chars = originalLine.split('');
911
912
 
912
913
  // Add wave effects
913
- for (let x = 0; x < line.length; x++) {
914
- const char = line[x];
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
- line = line.substring(0, x) + (pulse ? chalk.yellowBright('◉') : chalk.yellow('◯')) + line.substring(x + 1);
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
- line = line.substring(0, x) + chalk.cyanBright(char) + line.substring(x + 1);
925
+ chars[x] = chalk.cyanBright(char);
925
926
  } else if (waveValue > 0.4) {
926
- line = line.substring(0, x) + chalk.cyan(char) + line.substring(x + 1);
927
+ chars[x] = chalk.cyan(char);
927
928
  } else {
928
- line = line.substring(0, x) + chalk.cyan.dim(char) + line.substring(x + 1);
929
+ chars[x] = chalk.cyan.dim(char);
929
930
  }
930
931
  } else if (char !== ' ' && char !== '\n') {
931
932
  // Brain structure
932
- line = line.substring(0, x) + chalk.magenta(char) + line.substring(x + 1);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sam-coder-cli",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "SAM-CODER: An animated command-line AI assistant with agency capabilities.",
5
5
  "main": "bin/agi-cli.js",
6
6
  "bin": {