diff --git a/deployment/TEST_PIPELINE.md b/deployment/TEST_PIPELINE.md new file mode 100644 index 00000000..beffab1f --- /dev/null +++ b/deployment/TEST_PIPELINE.md @@ -0,0 +1 @@ +# CI/CD Pipeline Test - Sat Nov 8 11:16:01 AM CET 2025 diff --git a/src/Framework/Console/Animation/Types/SlideDirection.php b/src/Framework/Console/Animation/Types/SlideDirection.php new file mode 100644 index 00000000..5e64a9df --- /dev/null +++ b/src/Framework/Console/Animation/Types/SlideDirection.php @@ -0,0 +1,14 @@ +format !== null) { + $codes[] = $this->format->value; + } + + if ($this->foreground !== null) { + if ($capabilities->supportsTruecolor()) { + $codes[] = "38;2;{$this->foreground->r};{$this->foreground->g};{$this->foreground->b}"; + } else { + // Fallback to standard color + $fallback = $this->foreground->toNearestColor(); + $codes[] = $fallback->value; + } + } + + if ($this->background !== null) { + if ($capabilities->supportsTruecolor()) { + $codes[] = "48;2;{$this->background->r};{$this->background->g};{$this->background->b}"; + } else { + // Fallback to standard background color + $fallback = $this->background->toNearestBackgroundColor(); + $codes[] = $fallback->value; + } + } + + if (empty($codes)) { + return $text; + } + + $ansi = "\033[" . implode(';', $codes) . 'm'; + $reset = ConsoleColor::RESET->toAnsi(); + + return $ansi . $text . $reset; + } +}