repo stringlengths 5 53 | pr_number int32 1 321k | task_type stringclasses 2
values | issue_text stringlengths 0 81.2k | pr_title stringlengths 1 319 | pr_body stringlengths 0 105k | base_sha stringlengths 40 40 | head_sha stringlengths 40 40 | gold_diff stringlengths 0 202M | changed_files listlengths 0 100 | review_threads listlengths 0 100 | test_patch stringlengths 0 23.4M | merged bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
IceWhaleTech/CasaOS | 1,268 | issue_to_patch | chore: add Contributor | 😆add me to the contributor list🤫
My Code in https://github.com/IceWhaleTech/CasaOS-AppManagement
My Document in https://github.com/IceWhaleTech/CasaOS-AppStore/pull/187 | 89a0ea34b02e14fe10719d345d4aab4509c43a57 | d00fe6a37ec252a062183d765a12ac4828c6ffef | diff --git a/README.md b/README.md
index e71df8fb..c1f80e7f 100644
--- a/README.md
+++ b/README.md
@@ -200,6 +200,9 @@ Everyone's contribution is greatly appreciated. ([Emoji Key](https://allcontribu
<tr>
<td align="center"><a href="https://github.com/llwaini"><img src="https://avatars.githubusercontent.com/u/5... | [
"README.md"
] | [] | true | ||
IceWhaleTech/CasaOS | 1,243 | issue_to_patch | Update push_test_server.yml | 760882e1470a1d84573b483313f4a0715c004c67 | 8e0428655b3741b34bfd004000428f140a4502ea | [
".github/workflows/push_test_server.yml"
] | [] | diff --git a/.github/workflows/push_test_server.yml b/.github/workflows/push_test_server.yml
index bafef85a..d43e4aa6 100644
--- a/.github/workflows/push_test_server.yml
+++ b/.github/workflows/push_test_server.yml
@@ -3,6 +3,8 @@ on:
push:
branches:
- main
+ workflow_dispatch:
+
permissions:
co... | true | |||
Intervention/image | 1,495 | issue_to_patch | Feature/coding standards | f5cef5907076942e7e47c41f2cbbd0cfe1b106f1 | 5dcdf21849958016fe291f52f68c50ef7b1489ac | diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index dd9979573..382ef8f78 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -15,10 +15,11 @@
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel"/>
- <rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"/>
<rule ref="Slev... | [
"phpcs.xml.dist",
"src/Analyzers/PixelColorAnalyzer.php",
"src/Analyzers/PixelColorsAnalyzer.php",
"src/Collection.php",
"src/Colors/AbstractColor.php",
"src/Colors/Cmyk/Color.php",
"src/Colors/Cmyk/Colorspace.php",
"src/Colors/Hsl/Color.php",
"src/Colors/Hsl/Colorspace.php",
"src/Colors/Hsv/Color... | [] | diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php
index db66285d0..b048a2c92 100644
--- a/tests/BaseTestCase.php
+++ b/tests/BaseTestCase.php
@@ -34,7 +34,7 @@ protected function assertColor(int $r, int $g, int $b, int $a, ColorInterface $c
'Failed asserting that color',
$co... | true | ||
Intervention/image | 1,492 | issue_to_patch | Add github workflow permissions | 2582234b91770527a0e69d659594ae84fde0b324 | e831f0ee039f3b9380350929c9c82f83a72a7ce7 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index a327133f..f421f945 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -2,6 +2,9 @@ name: Tests
on: [ push, pull_request ]
+permissions:
+ contents: read
+
jobs:
run:
runs-on: ubuntu-22.... | [
".github/workflows/run-tests.yml"
] | [] | true | |||
Intervention/image | 1,489 | issue_to_patch | Stop GD insert filling watermark bbox with black (optimized) | insertTransparent() copied the base region into an opaque-black scratch canvas, layered the watermark on top, and merged it back with imagecopymerge(). Two problems: the black fill stuck wherever the base was transparent, so the watermark's bbox came out black on alpha PNGs; and imagecopymerge ignores source alpha, so ... | fb795553f76afbe55c80d32b6bfe2090a6b1a0af | 9b1392bdff59241b875dd32527ecd70d8b0e28de | diff --git a/src/Config.php b/src/Config.php
index ec8fc750..8e04ac26 100644
--- a/src/Config.php
+++ b/src/Config.php
@@ -44,7 +44,7 @@ public function setOptions(mixed ...$options): self
* array instead of named parameters.
*
* @param array<mixed> $options
- * @return array<string, mixed>
+ ... | [
"src/Config.php",
"src/Drivers/Gd/Modifiers/InsertModifier.php",
"tests/GdTestCase.php",
"tests/Unit/Drivers/Gd/Modifiers/InsertModifierTest.php"
] | [] | diff --git a/tests/GdTestCase.php b/tests/GdTestCase.php
index b9dc5b9f..cefcf118 100644
--- a/tests/GdTestCase.php
+++ b/tests/GdTestCase.php
@@ -32,6 +32,22 @@ public static function createTestImage(int $width, int $height): Image
);
}
+ public static function createTestImageTransparent(int $width,... | true | |
Intervention/image | 1,488 | issue_to_patch | Implement Size::orientation() with enum result | 969abf8aca22dcf5eab174bc84a20093481f7335 | 7317709586cd5ec8c68402af3f2a2b37f7e3ef4f | diff --git a/src/Orientation.php b/src/Orientation.php
new file mode 100644
index 00000000..b5ddd889
--- /dev/null
+++ b/src/Orientation.php
@@ -0,0 +1,23 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Intervention\Image;
+
+use Intervention\Image\Interfaces\SizeInterface;
+
+enum Orientation: string
+{
+ case P... | [
"src/Orientation.php",
"src/Size.php",
"tests/Unit/OrientationTest.php",
"tests/Unit/SizeTest.php"
] | [] | diff --git a/tests/Unit/OrientationTest.php b/tests/Unit/OrientationTest.php
new file mode 100644
index 00000000..6bb19e4e
--- /dev/null
+++ b/tests/Unit/OrientationTest.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Intervention\Image\Tests\Unit;
+
+use Intervention\Image\Orientation;
+use Interv... | true | ||
Intervention/image | 1,487 | issue_to_patch | Enable array destructuring of Size::class with width & height
## Describe the feature you'd like
Destructure a Size::class and be able to get width & height.
```php
[$width, $height] = $image->size(); // (int) $width, (int) $height
```
## Is your feature request related to a problem? Please describe.
Currently, a ... | Implement Size destructuring | By decoupling Size from Polygon.
```php
[$width, $height] = $image->size();
['width' => $width, 'height' => $height] = $image->size();
```
Closes #1480 | f58d379b1f13c036b2ef5c3c26eb4b0c88b647ed | d15f2299ab4a92891989d500c991796724cee554 | diff --git a/src/Drivers/AbstractFontProcessor.php b/src/Drivers/AbstractFontProcessor.php
index 09dbb9ae3..b45b219c0 100644
--- a/src/Drivers/AbstractFontProcessor.php
+++ b/src/Drivers/AbstractFontProcessor.php
@@ -7,6 +7,7 @@
use Intervention\Image\Alignment;
use Intervention\Image\Exceptions\InvalidArgumentExcept... | [
"src/Drivers/AbstractFontProcessor.php",
"src/Drivers/Gd/Modifiers/RotateModifier.php",
"src/Geometry/Factories/RectangleFactory.php",
"src/Geometry/Polygon.php",
"src/Geometry/Rectangle.php",
"src/Size.php",
"tests/Unit/Geometry/PolygonTest.php",
"tests/Unit/SizeTest.php"
] | [] | diff --git a/tests/Unit/Geometry/PolygonTest.php b/tests/Unit/Geometry/PolygonTest.php
index 492a0ed7d..9656f01f7 100644
--- a/tests/Unit/Geometry/PolygonTest.php
+++ b/tests/Unit/Geometry/PolygonTest.php
@@ -14,6 +14,7 @@
use PHPUnit\Framework\Attributes\CoversClass;
use Intervention\Image\Geometry\Point;
use Inter... | true |
Intervention/image | 1,484 | issue_to_patch | Stop Imagick contrast from lifting every pixel | `sigmoidalContrastImage` takes its midpoint in QuantumRange units, not normalized 0..1. Passing 0 anchors the curve at pure black, which lifts every pixel including the midtone. That's brightness, not contrast. GD's `IMG_FILTER_CONTRAST` is midtone-symmetric, so the same `$image->contrast(N)` gave different output acro... | 76d4e5a48b78f7b48f84d90160e6973b1e800832 | 5396fb5e278ded6e11b15392892c8ccd1e8e35cf | diff --git a/src/Drivers/Imagick/Modifiers/ContrastModifier.php b/src/Drivers/Imagick/Modifiers/ContrastModifier.php
index c56ee8d7..fec20b7b 100644
--- a/src/Drivers/Imagick/Modifiers/ContrastModifier.php
+++ b/src/Drivers/Imagick/Modifiers/ContrastModifier.php
@@ -4,6 +4,7 @@
namespace Intervention\Image\Drivers\I... | [
"src/Drivers/Imagick/Modifiers/ContrastModifier.php",
"tests/Unit/Drivers/Imagick/Modifiers/ContrastModifierTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Imagick/Modifiers/ContrastModifierTest.php b/tests/Unit/Drivers/Imagick/Modifiers/ContrastModifierTest.php
index e7f91c30..91e35dd9 100644
--- a/tests/Unit/Drivers/Imagick/Modifiers/ContrastModifierTest.php
+++ b/tests/Unit/Drivers/Imagick/Modifiers/ContrastModifierTest.php
@@ -4,6 +4,11... | true | |
Intervention/image | 1,482 | issue_to_patch | Preserve alpha channel in Imagick invert modifier | negateImage() defaults to CHANNEL_DEFAULT, which has the alpha bit set, so invert() was turning transparent pixels opaque and flipping partial alpha (0.8 became 0.2). The GD driver uses IMG_FILTER_NEGATE and leaves alpha alone, so the same call produced different bytes on the two drivers.
Mask CHANNEL_ALPHA off so onl... | 3c449518c7782ea7454d18c4a7a54e6c2250e889 | bb4a84cd1d8845c4270a040e55adf694461ccfab | diff --git a/src/Drivers/Imagick/Modifiers/InvertModifier.php b/src/Drivers/Imagick/Modifiers/InvertModifier.php
index 74a37efb..b96e0b7f 100644
--- a/src/Drivers/Imagick/Modifiers/InvertModifier.php
+++ b/src/Drivers/Imagick/Modifiers/InvertModifier.php
@@ -4,6 +4,7 @@
namespace Intervention\Image\Drivers\Imagick\M... | [
"src/Drivers/Imagick/Modifiers/InvertModifier.php",
"tests/Unit/Drivers/Imagick/Modifiers/InvertModifierTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Imagick/Modifiers/InvertModifierTest.php b/tests/Unit/Drivers/Imagick/Modifiers/InvertModifierTest.php
index 44919ec3..18749e91 100644
--- a/tests/Unit/Drivers/Imagick/Modifiers/InvertModifierTest.php
+++ b/tests/Unit/Drivers/Imagick/Modifiers/InvertModifierTest.php
@@ -23,4 +23,14 @@ pu... | true | |
Intervention/image | 1,481 | issue_to_patch | Fix bug when drawing without background color | d2c753a4d360867ad6dc49532439d60d683676aa | a67688c084ad37355a25172b7104395fbe7feb83 | diff --git a/src/Drivers/Imagick/Modifiers/DrawBezierModifier.php b/src/Drivers/Imagick/Modifiers/DrawBezierModifier.php
index d1a5f92f..17a1e0e9 100644
--- a/src/Drivers/Imagick/Modifiers/DrawBezierModifier.php
+++ b/src/Drivers/Imagick/Modifiers/DrawBezierModifier.php
@@ -7,6 +7,8 @@
use ImagickDraw;
use ImagickDra... | [
"src/Drivers/Imagick/Modifiers/DrawBezierModifier.php",
"src/Drivers/Imagick/Modifiers/DrawEllipseModifier.php",
"src/Drivers/Imagick/Modifiers/DrawRectangleModifier.php",
"tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php",
"tests/Unit/Drivers/Gd/Modifiers/DrawEllipseModifierTest.php",
"tests/Un... | [] | diff --git a/tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php b/tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php
index 2eb14358..e1ee9759 100644
--- a/tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php
+++ b/tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php
@@ -30,4 +30,20 @@ public... | true | ||
Intervention/image | 1,479 | issue_to_patch | Add missing exception type hints | 389e702abe41d439559115490ab348c9b3af4d1e | 5203a79f9f1dd1901f9162f65f74151a30c1bc4b | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 5b934120..a327133f 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -16,7 +16,7 @@ jobs:
steps:
- name: Checkout project
- uses: actions/checkout@v4
+ uses: actions/check... | [
".github/workflows/run-tests.yml",
"src/EncodedImage.php"
] | [] | true | |||
Intervention/image | 1,476 | issue_to_patch | Add exception type hints | 6f3379485c27bc79390cbbab05dd33db12cb4f54 | 4030d02ee14b6543ad612b57ab569241fe896058 | diff --git a/phpstan.dist.neon b/phpstan.dist.neon
index 6e451faa1..dbeb85f30 100644
--- a/phpstan.dist.neon
+++ b/phpstan.dist.neon
@@ -2,3 +2,6 @@ parameters:
level: 6
paths:
- src
+ exceptions:
+ check:
+ missingCheckedExceptionInThrows: true
diff --git a/src/AnimationFactory.... | [
"phpstan.dist.neon",
"src/AnimationFactory.php",
"src/Color.php",
"src/Colors/AbstractColor.php",
"src/Colors/AlphaChannel.php",
"src/Colors/Cmyk/Color.php",
"src/Colors/Cmyk/Colorspace.php",
"src/Colors/FloatColorChannel.php",
"src/Colors/Hsl/Color.php",
"src/Colors/Hsl/Colorspace.php",
"src/Co... | [] | diff --git a/tests/Unit/Colors/Cmyk/ColorTest.php b/tests/Unit/Colors/Cmyk/ColorTest.php
index fa512a32c..9187688d4 100644
--- a/tests/Unit/Colors/Cmyk/ColorTest.php
+++ b/tests/Unit/Colors/Cmyk/ColorTest.php
@@ -16,7 +16,6 @@
use Intervention\Image\Colors\Rgb\Color as RgbColor;
use Intervention\Image\Colors\Rgb\Colo... | true | ||
Intervention/image | 1,475 | issue_to_patch | Add parse() to every color class of all color spaces | 5b621028b4e42bee4b820b212ba644117cbc3605 | 9eb084fd27a8174a5031b9df617a635f2d9a9b88 | diff --git a/src/Colors/Cmyk/Color.php b/src/Colors/Cmyk/Color.php
index 35ca586d1..643c74c3c 100644
--- a/src/Colors/Cmyk/Color.php
+++ b/src/Colors/Cmyk/Color.php
@@ -7,14 +7,16 @@
use Intervention\Image\Colors\AbstractColor;
use Intervention\Image\Colors\Cmyk\Channels\Alpha;
use Intervention\Image\Colors\Cmyk\Cha... | [
"src/Colors/Cmyk/Color.php",
"src/Colors/Hsl/Color.php",
"src/Colors/Hsv/Color.php",
"src/Colors/Oklab/Color.php",
"src/Colors/Oklch/Color.php",
"src/Colors/Rgb/Color.php",
"src/Modifiers/ColorspaceModifier.php",
"src/Typography/TextBlock.php",
"tests/Unit/Colors/Cmyk/ColorTest.php",
"tests/Unit/C... | [] | diff --git a/tests/Unit/Colors/Cmyk/ColorTest.php b/tests/Unit/Colors/Cmyk/ColorTest.php
index 9d028bd7d..fa512a32c 100644
--- a/tests/Unit/Colors/Cmyk/ColorTest.php
+++ b/tests/Unit/Colors/Cmyk/ColorTest.php
@@ -19,6 +19,8 @@
use Intervention\Image\Exceptions\NotSupportedException;
use Intervention\Image\Interfaces\... | true | ||
Intervention/image | 1,474 | issue_to_patch | Adjust docker test runner to compile imagemagick from source | c073d1c93a111a3f37b6423e57edd14265f19214 | 5bb9b9f074c0f8c9c1eefce65bdc384c8b13e42f | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index d4fc4efbf..73bbfdde1 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
- imagemagi... | [
".github/workflows/run-tests.yml",
"Dockerfile",
"docker-compose.yml",
"entrypoint.sh",
"tests/Unit/Drivers/Imagick/Modifiers/TrimModifierTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Imagick/Modifiers/TrimModifierTest.php b/tests/Unit/Drivers/Imagick/Modifiers/TrimModifierTest.php
index cd2bafddc..fe9859d08 100644
--- a/tests/Unit/Drivers/Imagick/Modifiers/TrimModifierTest.php
+++ b/tests/Unit/Drivers/Imagick/Modifiers/TrimModifierTest.php
@@ -31,8 +31,8 @@ public fu... | true | ||
Intervention/image | 1,439 | issue_to_patch | PHP 8.5 support | 9c77d8f2a43ba54c507884683aa7eb1a15302477 | e8950ca36feab8056f9fc2d7432bfcc19a31b5e2 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 6e81829c1..04e04b903 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- php: [ '8.1', '8.2', '8.3', '8.4' ]
+ p... | [
".github/workflows/run-tests.yml"
] | [] | true | |||
Intervention/image | 1,453 | issue_to_patch | Feature/allow all driver namespaces | See #1452 | a1e382ec494d8655f55068c0a498a8c8c4db991d | 28ce915e6cb224ad0324796054098cd6d1def6c7 | diff --git a/src/Drivers/AbstractDriver.php b/src/Drivers/AbstractDriver.php
index 36b2ab3ea..f5d702405 100644
--- a/src/Drivers/AbstractDriver.php
+++ b/src/Drivers/AbstractDriver.php
@@ -77,13 +77,21 @@ public function specialize(
}
// resolve classname for specializable object
- $driver_na... | [
"src/Drivers/AbstractDriver.php",
"src/Interfaces/DriverInterface.php",
"src/Traits/CanBeDriverSpecialized.php",
"tests/Unit/Drivers/Gd/DriverTest.php",
"tests/Unit/Drivers/Imagick/DriverTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Gd/DriverTest.php b/tests/Unit/Drivers/Gd/DriverTest.php
index 366653c50..1b23ed2be 100644
--- a/tests/Unit/Drivers/Gd/DriverTest.php
+++ b/tests/Unit/Drivers/Gd/DriverTest.php
@@ -5,15 +5,27 @@
namespace Intervention\Image\Tests\Unit\Drivers\Gd;
use Generator;
+use Intervention\Imag... | true | |
Intervention/image | 1,447 | issue_to_patch | Update imagemagick/imagick test workflow dependencies | e332f242295882828cd1da0b45c9dc21d49e2350 | 729cdc7ba7ae441a1ca87a43783b024464b2a701 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 1fece5d66..6e81829c1 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -9,8 +9,8 @@ jobs:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3', '8.4' ]
- imagemagick: [ '... | [
".github/workflows/run-tests.yml"
] | [] | true | |||
Intervention/image | 1,446 | issue_to_patch | Simplify GIF magic number detection | Removed unnecessary `bin2hex()` conversion.
Follow-up to ac9734129478be387c1914f1c2856d623341128c and #1441. | f98f4d8aae9eb2582a93be23d9c266a198e62394 | ccf607e1897a16fb3a448c16639da6e5716efe07 | diff --git a/src/Drivers/AbstractDecoder.php b/src/Drivers/AbstractDecoder.php
index 029761ba0..cdf943523 100644
--- a/src/Drivers/AbstractDecoder.php
+++ b/src/Drivers/AbstractDecoder.php
@@ -24,10 +24,7 @@ protected function isGifFormat(string $input): bool
{
$head = substr($input, 0, 6);
- ret... | [
"src/Drivers/AbstractDecoder.php"
] | [] | true | ||
Intervention/image | 1,441 | issue_to_patch | GIF detection: Only check the first 6 bytes of the input | This reduces memory usage and speeds up the detection. | ae61c580aeceea382d443cfbed7455cc1a6309e1 | 423a8f296d4b37995b835bf6f73d83be44e15f72 | diff --git a/src/Drivers/AbstractDecoder.php b/src/Drivers/AbstractDecoder.php
index 46567171a..029761ba0 100644
--- a/src/Drivers/AbstractDecoder.php
+++ b/src/Drivers/AbstractDecoder.php
@@ -22,9 +22,11 @@ abstract class AbstractDecoder implements DecoderInterface
*/
protected function isGifFormat(string $... | [
"src/Drivers/AbstractDecoder.php"
] | [
{
"comment": "I guess the second `substr` call can then be omitted.\r\n\r\n```suggestion\r\n strtoupper(bin2hex($head))\r\n```",
"path": "src/Drivers/AbstractDecoder.php",
"hunk": "@@ -22,9 +22,11 @@ abstract class AbstractDecoder implements DecoderInterface\n */\n protected function... | true | ||
Intervention/image | 1,441 | comment_to_fix | GIF detection: Only check the first 6 bytes of the input | I guess the second `substr` call can then be omitted.
```suggestion
strtoupper(bin2hex($head))
``` | ae61c580aeceea382d443cfbed7455cc1a6309e1 | 423a8f296d4b37995b835bf6f73d83be44e15f72 | diff --git a/src/Drivers/AbstractDecoder.php b/src/Drivers/AbstractDecoder.php
index 46567171a..029761ba0 100644
--- a/src/Drivers/AbstractDecoder.php
+++ b/src/Drivers/AbstractDecoder.php
@@ -22,9 +22,11 @@ abstract class AbstractDecoder implements DecoderInterface
*/
protected function isGifFormat(string $... | [
"src/Drivers/AbstractDecoder.php"
] | [
{
"comment": "I guess the second `substr` call can then be omitted.\r\n\r\n```suggestion\r\n strtoupper(bin2hex($head))\r\n```",
"path": "src/Drivers/AbstractDecoder.php",
"hunk": "@@ -22,9 +22,11 @@ abstract class AbstractDecoder implements DecoderInterface\n */\n protected function... | true | ||
Intervention/image | 1,444 | issue_to_patch | Text wrapping does not work for chinese texts
## Description
Text is not wrapping for chinese texts
- Font Used: [Noto Serif Simplified Chinese](https://fonts.google.com/noto/specimen/Noto+Serif+SC?query=noto+serif+sc)
## Code Example
```php
$textSettings = [
// text settings here
];
$image->text($text, $width / 2, ... | Enable non western text wrapping | 9659e761caaa4a63b9a6996ef89ec877bc716ebc | e0305efa8776947c0fdbd0eda2dd72692079a3ac | diff --git a/src/Typography/Line.php b/src/Typography/Line.php
index f9630cbc4..626521923 100644
--- a/src/Typography/Line.php
+++ b/src/Typography/Line.php
@@ -36,7 +36,7 @@ public function __construct(
protected PointInterface $position = new Point()
) {
if (is_string($text)) {
- $th... | [
"src/Typography/Line.php",
"tests/Unit/Typography/LineTest.php"
] | [] | diff --git a/tests/Unit/Typography/LineTest.php b/tests/Unit/Typography/LineTest.php
index b68bb3da5..b876e567e 100644
--- a/tests/Unit/Typography/LineTest.php
+++ b/tests/Unit/Typography/LineTest.php
@@ -4,10 +4,12 @@
namespace Intervention\Image\Tests\Unit\Typography;
+use Generator;
use Intervention\Image\Geom... | true | |
Intervention/image | 1,440 | issue_to_patch | Add libraqm-dev as dependency for testing | 4116933f487b2b362738de43598fd508b68126c1 | 7682d4b940fac37a5e807668c7dd0b8f76d77fa3 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 6e5acb38e..1fece5d66 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -30,8 +30,7 @@ jobs:
sudo apt remove -y imagemagick imagemagick-6-common libmagic-dev
sudo apt update --al... | [
".github/workflows/run-tests.yml"
] | [] | true | |||
Intervention/image | 1,428 | issue_to_patch | Using the imagick driver to crop and resize a png will create artifacts in the output
## Describe the bug
When using the Imagick driver to crop and resize an image the output contains artifacts, most noticeable in transparent areas (the transparent area is mostly black with random noise).
This does not happen in ver... | Fix/crop resize png | Resolves #1426 | f6165cda94ffe2f642ad0697da9d1b2083bc904a | b851f0aef08f97b32c67d87026415744d7dfe3f5 | diff --git a/src/Drivers/Imagick/Modifiers/CropModifier.php b/src/Drivers/Imagick/Modifiers/CropModifier.php
index df5a30afa..6a2e8d31a 100644
--- a/src/Drivers/Imagick/Modifiers/CropModifier.php
+++ b/src/Drivers/Imagick/Modifiers/CropModifier.php
@@ -5,7 +5,7 @@
namespace Intervention\Image\Drivers\Imagick\Modifiers... | [
"src/Drivers/Imagick/Modifiers/CropModifier.php",
"tests/BaseTestCase.php",
"tests/Feature/Imagick/CropResizePngTest.php"
] | [] | diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php
index 2010d474d..17c4b2ad6 100644
--- a/tests/BaseTestCase.php
+++ b/tests/BaseTestCase.php
@@ -100,7 +100,7 @@ protected function assertTransparency(ColorInterface $color)
{
$this->assertInstanceOf(RgbColor::class, $color);
$channel = ... | true |
Intervention/image | 1,425 | issue_to_patch | Revert github workflow but keep older ubuntu version | 6b9ce4fc4485d30117e13935b25bc55a8b894a79 | 4a425a18fd388739d0a6378fc37830f6869f6913 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 0b1498738..6f43b3ba4 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -10,14 +10,21 @@ jobs:
matrix:
php: [ '8.1', '8.2', '8.3', '8.4' ]
imagemagick: [ '6.9.12-55', '7.1.1-3... | [
".github/workflows/run-tests.yml"
] | [] | true | |||
Intervention/image | 1,421 | issue_to_patch | feature/strip encoder parameter | 49c7cd089037a6eb2ca78f919ef0e51f40477118 | 61315da116d3a10428fd8865765dd8b5f5ea6a43 | diff --git a/src/Config.php b/src/Config.php
index da8edf017..0bd1b3b77 100644
--- a/src/Config.php
+++ b/src/Config.php
@@ -14,13 +14,16 @@ class Config
* @param bool $autoOrientation
* @param bool $decodeAnimation
* @param mixed $blendingColor
+ * @param bool $strip
* @return void
*/... | [
"src/Config.php",
"src/Drivers/Imagick/Encoders/AvifEncoder.php",
"src/Drivers/Imagick/Encoders/HeicEncoder.php",
"src/Drivers/Imagick/Encoders/Jpeg2000Encoder.php",
"src/Drivers/Imagick/Encoders/JpegEncoder.php",
"src/Drivers/Imagick/Encoders/TiffEncoder.php",
"src/Drivers/Imagick/Encoders/WebpEncoder.... | [
{
"comment": "```suggestion\r\n * @param null|bool $strip Strip EXIF metadata\r\n```\r\n",
"path": "src/Encoders/AvifEncoder.php",
"hunk": "@@ -12,9 +12,13 @@ class AvifEncoder extends SpecializableEncoder\n * Create new encoder object\n *\n * @param int $quality\n+ * @param null|... | diff --git a/tests/Unit/ConfigTest.php b/tests/Unit/ConfigTest.php
index 6a1683bd7..06555c3af 100644
--- a/tests/Unit/ConfigTest.php
+++ b/tests/Unit/ConfigTest.php
@@ -24,11 +24,13 @@ public function testConstructor(): void
autoOrientation: false,
decodeAnimation: false,
blending... | true | ||
Intervention/image | 1,421 | comment_to_fix | feature/strip encoder parameter | ```suggestion
* @param null|bool $strip Strip EXIF metadata
```
| 49c7cd089037a6eb2ca78f919ef0e51f40477118 | 61315da116d3a10428fd8865765dd8b5f5ea6a43 | diff --git a/src/Encoders/AvifEncoder.php b/src/Encoders/AvifEncoder.php
index 7799950da..8a724247e 100644
--- a/src/Encoders/AvifEncoder.php
+++ b/src/Encoders/AvifEncoder.php
@@ -12,9 +12,13 @@ class AvifEncoder extends SpecializableEncoder
* Create new encoder object
*
* @param int $quality
+ *... | [
"src/Encoders/AvifEncoder.php"
] | [
{
"comment": "```suggestion\r\n * @param null|bool $strip Strip EXIF metadata\r\n```\r\n",
"path": "src/Encoders/AvifEncoder.php",
"hunk": "@@ -12,9 +12,13 @@ class AvifEncoder extends SpecializableEncoder\n * Create new encoder object\n *\n * @param int $quality\n+ * @param null|... | true | ||
Intervention/image | 1,421 | comment_to_fix | feature/strip encoder parameter | ```suggestion
* @param null|bool $strip Strip EXIF metadata
``` | 49c7cd089037a6eb2ca78f919ef0e51f40477118 | 61315da116d3a10428fd8865765dd8b5f5ea6a43 | diff --git a/src/Encoders/HeicEncoder.php b/src/Encoders/HeicEncoder.php
index 2d129a355..965d07fa7 100644
--- a/src/Encoders/HeicEncoder.php
+++ b/src/Encoders/HeicEncoder.php
@@ -12,9 +12,13 @@ class HeicEncoder extends SpecializableEncoder
* Create new encoder object
*
* @param int $quality
+ *... | [
"src/Encoders/HeicEncoder.php"
] | [
{
"comment": "```suggestion\r\n * @param null|bool $strip Strip EXIF metadata\r\n```",
"path": "src/Encoders/HeicEncoder.php",
"hunk": "@@ -12,9 +12,13 @@ class HeicEncoder extends SpecializableEncoder\n * Create new encoder object\n *\n * @param int $quality\n+ * @param null|bool... | true | ||
Intervention/image | 1,421 | comment_to_fix | feature/strip encoder parameter | ```suggestion
* @param null|bool $strip Strip EXIF metadata
``` | 49c7cd089037a6eb2ca78f919ef0e51f40477118 | 61315da116d3a10428fd8865765dd8b5f5ea6a43 | diff --git a/src/Encoders/Jpeg2000Encoder.php b/src/Encoders/Jpeg2000Encoder.php
index dea11ef26..8d89a070e 100644
--- a/src/Encoders/Jpeg2000Encoder.php
+++ b/src/Encoders/Jpeg2000Encoder.php
@@ -12,9 +12,13 @@ class Jpeg2000Encoder extends SpecializableEncoder
* Create new encoder object
*
* @param ... | [
"src/Encoders/Jpeg2000Encoder.php"
] | [
{
"comment": "```suggestion\r\n * @param null|bool $strip Strip EXIF metadata\r\n```",
"path": "src/Encoders/Jpeg2000Encoder.php",
"hunk": "@@ -12,9 +12,13 @@ class Jpeg2000Encoder extends SpecializableEncoder\n * Create new encoder object\n *\n * @param int $quality\n+ * @param n... | true | ||
Intervention/image | 1,421 | comment_to_fix | feature/strip encoder parameter | ```suggestion
* @param null|bool $strip Strip EXIF metadata
``` | 49c7cd089037a6eb2ca78f919ef0e51f40477118 | 61315da116d3a10428fd8865765dd8b5f5ea6a43 | diff --git a/src/Encoders/JpegEncoder.php b/src/Encoders/JpegEncoder.php
index eaf520e1a..cbc5bc3e2 100644
--- a/src/Encoders/JpegEncoder.php
+++ b/src/Encoders/JpegEncoder.php
@@ -13,11 +13,14 @@ class JpegEncoder extends SpecializableEncoder
*
* @param int $quality
* @param bool $progressive
+ *... | [
"src/Encoders/JpegEncoder.php"
] | [
{
"comment": "```suggestion\r\n * @param null|bool $strip Strip EXIF metadata\r\n```",
"path": "src/Encoders/JpegEncoder.php",
"hunk": "@@ -13,11 +13,14 @@ class JpegEncoder extends SpecializableEncoder\n *\n * @param int $quality\n * @param bool $progressive\n+ * @param null|bool... | true | ||
Intervention/image | 1,421 | comment_to_fix | feature/strip encoder parameter | ```suggestion
* @param null|bool $strip Strip EXIF metadata
``` | 49c7cd089037a6eb2ca78f919ef0e51f40477118 | 61315da116d3a10428fd8865765dd8b5f5ea6a43 | diff --git a/src/Encoders/TiffEncoder.php b/src/Encoders/TiffEncoder.php
index 203baf8c7..a5fe0c82b 100644
--- a/src/Encoders/TiffEncoder.php
+++ b/src/Encoders/TiffEncoder.php
@@ -12,9 +12,13 @@ class TiffEncoder extends SpecializableEncoder
* Create new encoder object
*
* @param int $quality
+ *... | [
"src/Encoders/TiffEncoder.php"
] | [
{
"comment": "```suggestion\r\n * @param null|bool $strip Strip EXIF metadata\r\n```",
"path": "src/Encoders/TiffEncoder.php",
"hunk": "@@ -12,9 +12,13 @@ class TiffEncoder extends SpecializableEncoder\n * Create new encoder object\n *\n * @param int $quality\n+ * @param null|bool... | true | ||
Intervention/image | 1,421 | comment_to_fix | feature/strip encoder parameter | ```suggestion
* @param null|bool $strip Strip EXIF metadata
``` | 49c7cd089037a6eb2ca78f919ef0e51f40477118 | 61315da116d3a10428fd8865765dd8b5f5ea6a43 | diff --git a/src/Encoders/WebpEncoder.php b/src/Encoders/WebpEncoder.php
index 5530b6e6a..7a9b570b5 100644
--- a/src/Encoders/WebpEncoder.php
+++ b/src/Encoders/WebpEncoder.php
@@ -12,9 +12,12 @@ class WebpEncoder extends SpecializableEncoder
* Create new encoder object
*
* @param int $quality
+ *... | [
"src/Encoders/WebpEncoder.php"
] | [
{
"comment": "```suggestion\r\n * @param null|bool $strip Strip EXIF metadata\r\n```",
"path": "src/Encoders/WebpEncoder.php",
"hunk": "@@ -12,9 +12,12 @@ class WebpEncoder extends SpecializableEncoder\n * Create new encoder object\n *\n * @param int $quality\n+ * @param null|bool... | true | ||
Intervention/image | 1,423 | issue_to_patch | Fix/GitHub workflow | 5d64da97fd15a2f5258ad76874b68d5919c1f25a | 4502ea07d8919d29cdce39acbc7fef95e2670bb9 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 7fdf0fbd4..0b1498738 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -4,13 +4,12 @@ on: [ push, pull_request ]
jobs:
run:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
strategy:... | [
".github/workflows/run-tests.yml",
"tests/BaseTestCase.php"
] | [] | diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php
index 7a083c400..2010d474d 100644
--- a/tests/BaseTestCase.php
+++ b/tests/BaseTestCase.php
@@ -112,7 +112,10 @@ protected function assertMediaType(string|array $allowed, string|EncodedImage $i
fclose($pointer);
$allowed = is_string($allow... | true | ||
Intervention/image | 1,418 | issue_to_patch | Feature/refactor resize canvas | Depends on #1415 | f6e00abf6b56a8514a4162be6543eb3efbe7e9fe | 6d7b4fb564ead8a3e6a40da6f6f55f69f5d45b7f | diff --git a/src/Collection.php b/src/Collection.php
index 539855a83..a5ae6d82d 100644
--- a/src/Collection.php
+++ b/src/Collection.php
@@ -185,7 +185,7 @@ public function map(callable $callback): self
return new self(
array_map(
- fn($item) => $callback($item),
+ ... | [
"src/Collection.php",
"src/Colors/Cmyk/Colorspace.php",
"src/Colors/Hsl/Colorspace.php",
"src/Colors/Hsv/Colorspace.php",
"src/Colors/Rgb/Colorspace.php",
"src/Drivers/Gd/Modifiers/CropModifier.php",
"src/Drivers/Gd/Modifiers/ResizeCanvasModifier.php",
"src/Drivers/Imagick/Modifiers/CropModifier.php",... | [] | diff --git a/tests/ImagickTestCase.php b/tests/ImagickTestCase.php
index bef7b6745..274890971 100644
--- a/tests/ImagickTestCase.php
+++ b/tests/ImagickTestCase.php
@@ -5,6 +5,7 @@
namespace Intervention\Image\Tests;
use Imagick;
+use ImagickException;
use ImagickPixel;
use Intervention\Image\Decoders\FilePathIma... | true | |
Intervention/image | 1,417 | issue_to_patch | Implement Driver::version() | 72daad8b89eeebebc4c3428c90636446d78f83ca | 87e6811f18634b3494d1c83c87bfe269de4ba08c | diff --git a/src/Drivers/Gd/Driver.php b/src/Drivers/Gd/Driver.php
index 3ce1bec26..13d6f721c 100644
--- a/src/Drivers/Gd/Driver.php
+++ b/src/Drivers/Gd/Driver.php
@@ -149,4 +149,14 @@ public function supports(string|Format|FileExtension|MediaType $identifier): boo
default => false,
};
}
+
+... | [
"src/Drivers/Gd/Driver.php",
"src/Drivers/Imagick/Driver.php",
"tests/Unit/Drivers/Gd/DriverTest.php",
"tests/Unit/Drivers/Imagick/DriverTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Gd/DriverTest.php b/tests/Unit/Drivers/Gd/DriverTest.php
index ce009584b..174a52931 100644
--- a/tests/Unit/Drivers/Gd/DriverTest.php
+++ b/tests/Unit/Drivers/Gd/DriverTest.php
@@ -206,4 +206,9 @@ public static function supportsDataProvider(): Generator
yield [false, 'foo'];
... | true | ||
Intervention/image | 1,412 | issue_to_patch | Feature/code modernization | 3374d75384847b8ec9ea7c000810d0adcb4fec1c | d4f2b50e70f4a21cf515c6c4169462e2502dc8b8 | diff --git a/composer.json b/composer.json
index 04090e76d..cc42f8f68 100644
--- a/composer.json
+++ b/composer.json
@@ -26,7 +26,7 @@
"require-dev": {
"phpunit/phpunit": "^10.0 || ^11.0",
"mockery/mockery": "^1.6",
- "phpstan/phpstan": "^2",
+ "phpstan/phpstan": "^2.1",
"s... | [
"composer.json",
"src/Collection.php",
"src/Colors/AbstractColor.php",
"src/Colors/AbstractColorChannel.php",
"src/Colors/Cmyk/Decoders/StringColorDecoder.php",
"src/Colors/Hsl/Colorspace.php",
"src/Colors/Hsl/Decoders/StringColorDecoder.php",
"src/Colors/Hsv/Colorspace.php",
"src/Colors/Hsv/Decoder... | [] | true | |||
Intervention/image | 1,410 | issue_to_patch | The result of reduceColors(1) followed by pickColor(0, 0)->toString() only returns rgb(0, 0, 0).
## Describe the bug
The result of reduceColors(1) followed by pickColor(0, 0)->toString() only returns rgb(0, 0, 0).
## Code Example
```php
$file_path = 'img.jpg';
$image = \Intervention\Image\ImageManager::gd()->re... | Fix incorrect color results after color reduction | Resolves https://github.com/Intervention/image/issues/1409 | 2a62d490cc98b1ee1200afd7455e267e6f5b3203 | 3457c0230dd3d562f37558d36a60a7890e1f2386 | diff --git a/src/Drivers/Gd/Analyzers/PixelColorAnalyzer.php b/src/Drivers/Gd/Analyzers/PixelColorAnalyzer.php
index b27583a3c..80542f3cb 100644
--- a/src/Drivers/Gd/Analyzers/PixelColorAnalyzer.php
+++ b/src/Drivers/Gd/Analyzers/PixelColorAnalyzer.php
@@ -36,6 +36,10 @@ protected function colorAt(ColorspaceInterface $... | [
"src/Drivers/Gd/Analyzers/PixelColorAnalyzer.php",
"src/Drivers/Gd/ColorProcessor.php",
"tests/Unit/Drivers/Gd/ColorProcessorTest.php",
"tests/Unit/Drivers/Gd/Modifiers/QuantizeColorsModifierTest.php",
"tests/Unit/Drivers/Imagick/Modifiers/QuantizeColorsModifierTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Gd/ColorProcessorTest.php b/tests/Unit/Drivers/Gd/ColorProcessorTest.php
index 9d574360b..80f079ee4 100644
--- a/tests/Unit/Drivers/Gd/ColorProcessorTest.php
+++ b/tests/Unit/Drivers/Gd/ColorProcessorTest.php
@@ -26,7 +26,7 @@ public function testColorToNative(): void
$this->ass... | true |
Intervention/image | 1,411 | issue_to_patch | Fix incorrect resolution conversion | 2a62d490cc98b1ee1200afd7455e267e6f5b3203 | d0d8d8632a454edcf7d6c8bfcde7fa02f7f16d25 | diff --git a/src/Drivers/Imagick/Analyzers/ResolutionAnalyzer.php b/src/Drivers/Imagick/Analyzers/ResolutionAnalyzer.php
index 6bd4731e6..1a1b6321c 100644
--- a/src/Drivers/Imagick/Analyzers/ResolutionAnalyzer.php
+++ b/src/Drivers/Imagick/Analyzers/ResolutionAnalyzer.php
@@ -13,6 +13,13 @@ class ResolutionAnalyzer ext... | [
"src/Drivers/Imagick/Analyzers/ResolutionAnalyzer.php",
"src/Resolution.php",
"tests/Unit/Drivers/Gd/Analyzers/ResolutionAnalyzerTest.php",
"tests/Unit/Drivers/Imagick/Analyzers/ResolutionAnalyzerTest.php",
"tests/Unit/ResolutionTest.php",
"tests/resources/300dpi.png"
] | [] | diff --git a/tests/Unit/Drivers/Gd/Analyzers/ResolutionAnalyzerTest.php b/tests/Unit/Drivers/Gd/Analyzers/ResolutionAnalyzerTest.php
index 7b63c31af..fb1dde47e 100644
--- a/tests/Unit/Drivers/Gd/Analyzers/ResolutionAnalyzerTest.php
+++ b/tests/Unit/Drivers/Gd/Analyzers/ResolutionAnalyzerTest.php
@@ -17,10 +17,12 @@ fin... | true | ||
Intervention/image | 1,408 | issue_to_patch | Fix bug in PadModifier | 1e8f3dc43e61a6d5661c10ca0286ca4c8f142290 | b651b7ebd066a3326ab4be69d3e0e26cb82cff2b | diff --git a/src/Drivers/Gd/Modifiers/PadModifier.php b/src/Drivers/Gd/Modifiers/PadModifier.php
index 73e11b4af..52a6acb03 100644
--- a/src/Drivers/Gd/Modifiers/PadModifier.php
+++ b/src/Drivers/Gd/Modifiers/PadModifier.php
@@ -4,6 +4,21 @@
namespace Intervention\Image\Drivers\Gd\Modifiers;
+use Intervention\Imag... | [
"src/Drivers/Gd/Modifiers/PadModifier.php",
"src/Drivers/Imagick/Modifiers/PadModifier.php",
"tests/Unit/Drivers/Gd/Modifiers/PadModifierTest.php",
"tests/Unit/Drivers/Imagick/Modifiers/PadModifierTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Gd/Modifiers/PadModifierTest.php b/tests/Unit/Drivers/Gd/Modifiers/PadModifierTest.php
new file mode 100644
index 000000000..feb4e4a43
--- /dev/null
+++ b/tests/Unit/Drivers/Gd/Modifiers/PadModifierTest.php
@@ -0,0 +1,42 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Intervention\Ima... | true | ||
Intervention/image | 1,406 | issue_to_patch | Implement __debugInfo() | Implement __debugInfo() on the following classes:
- `Intervention\Image\Image`
- `Intervention\Image\Origin`
- `Intervention\Image\EncodedImage`
- `Intervention\Image\Drivers\Gd\Frame`
- `Intervention\Image\Drivers\Imagick\Frame`
- `Intervention\Image\Geometry\Rectangle`
- `Intervention\Image\Colors\Rgb\Color`... | 1493a2b71b03379c4cef54873013f5a506083f18 | 032266b62c87afb9985ca36fcb4f951e05015091 | diff --git a/src/Colors/AbstractColor.php b/src/Colors/AbstractColor.php
index e69278858..ef9d7be72 100644
--- a/src/Colors/AbstractColor.php
+++ b/src/Colors/AbstractColor.php
@@ -8,6 +8,7 @@
use Intervention\Image\Interfaces\ColorChannelInterface;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\... | [
"src/Colors/AbstractColor.php",
"src/Drivers/AbstractFrame.php",
"src/Drivers/Gd/Frame.php",
"src/Drivers/Imagick/Frame.php",
"src/EncodedImage.php",
"src/Geometry/Rectangle.php",
"src/Image.php",
"tests/Unit/Colors/Cmyk/ColorTest.php",
"tests/Unit/Colors/Hsl/ColorTest.php",
"tests/Unit/Colors/Hsv... | [] | diff --git a/tests/Unit/Colors/Cmyk/ColorTest.php b/tests/Unit/Colors/Cmyk/ColorTest.php
index f860bba8f..08a028a2f 100644
--- a/tests/Unit/Colors/Cmyk/ColorTest.php
+++ b/tests/Unit/Colors/Cmyk/ColorTest.php
@@ -115,4 +115,13 @@ public function testIsClear(): void
$color = new Color(0, 0, 0, 0);
$thi... | true | |
Intervention/image | 1,401 | issue_to_patch | Allow PHPUnit 11 | Refs #1383 | b496d1f6b9f812f96166623358dfcafb8c3b1683 | 2763c23bcd4b79d5872ea8b87ddaf34bdf7f6023 | diff --git a/composer.json b/composer.json
index b1ef3608f..c5164c461 100644
--- a/composer.json
+++ b/composer.json
@@ -24,7 +24,7 @@
"intervention/gif": "^4.2"
},
"require-dev": {
- "phpunit/phpunit": "^10.0",
+ "phpunit/phpunit": "^10.0 || ^11.0",
"mockery/mockery": "^1.6",
... | [
"composer.json"
] | [] | true | ||
Intervention/image | 1,399 | issue_to_patch | Fix typo in mime type. | 3618c8fbaf0e1019cb96dc41cc8ba811c5a8682e | c7fe580fbccbd83f9b838353d10b9c9fa0b1b910 | diff --git a/src/Drivers/Gd/Encoders/AvifEncoder.php b/src/Drivers/Gd/Encoders/AvifEncoder.php
index 6361e7ae4..f7106a7ec 100644
--- a/src/Drivers/Gd/Encoders/AvifEncoder.php
+++ b/src/Drivers/Gd/Encoders/AvifEncoder.php
@@ -20,6 +20,6 @@ public function encode(ImageInterface $image): EncodedImage
{
retur... | [
"src/Drivers/Gd/Encoders/AvifEncoder.php"
] | [] | true | |||
Intervention/image | 1,397 | issue_to_patch | Temporary stream resource for EncodedImage::class | 8e14e9932455eef286356fec8c77ce48d5235ec3 | b0d7566273dc640e31a923b05667b7947ad2f0c1 | diff --git a/composer.json b/composer.json
index 10248768d..b1ef3608f 100644
--- a/composer.json
+++ b/composer.json
@@ -21,7 +21,7 @@
"require": {
"php": "^8.1",
"ext-mbstring": "*",
- "intervention/gif": "^4.1"
+ "intervention/gif": "^4.2"
},
"require-dev": {
"p... | [
"composer.json",
"src/Drivers/AbstractEncoder.php",
"src/Drivers/Gd/Decoders/NativeObjectDecoder.php",
"src/Drivers/Gd/Encoders/AvifEncoder.php",
"src/Drivers/Gd/Encoders/BmpEncoder.php",
"src/Drivers/Gd/Encoders/GifEncoder.php",
"src/Drivers/Gd/Encoders/JpegEncoder.php",
"src/Drivers/Gd/Encoders/PngE... | [] | diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php
index 9aa89c0c9..b9b21b260 100644
--- a/tests/BaseTestCase.php
+++ b/tests/BaseTestCase.php
@@ -9,6 +9,7 @@
use Intervention\Image\Colors\Rgb\Channels\Green;
use Intervention\Image\Colors\Rgb\Channels\Red;
use Intervention\Image\Colors\Rgb\Color as RgbColo... | true | ||
Intervention/image | 1,387 | issue_to_patch | Implement new method ColorInterface::isClear() | ```php
/**
* Determine whether the current color is completely transparent
*
* @return bool
*/
public function isClear(): bool;
``` | 5e9b4aa681800809cec61dcc87074a489ce63aaa | 9564d595b773dece175c2aaa3d48765ce01d9b56 | diff --git a/src/Colors/Cmyk/Color.php b/src/Colors/Cmyk/Color.php
index 5aad25a4d..d3229e6c9 100644
--- a/src/Colors/Cmyk/Color.php
+++ b/src/Colors/Cmyk/Color.php
@@ -152,4 +152,14 @@ public function isTransparent(): bool
{
return false;
}
+
+ /**
+ * {@inheritdoc}
+ *
+ * @see Color... | [
"src/Colors/Cmyk/Color.php",
"src/Colors/Hsl/Color.php",
"src/Colors/Hsv/Color.php",
"src/Colors/Rgb/Color.php",
"src/Interfaces/ColorInterface.php",
"tests/Unit/Colors/Cmyk/ColorTest.php",
"tests/Unit/Colors/Hsl/ColorTest.php",
"tests/Unit/Colors/Hsv/ColorTest.php",
"tests/Unit/Colors/Rgb/ColorTest... | [] | diff --git a/tests/Unit/Colors/Cmyk/ColorTest.php b/tests/Unit/Colors/Cmyk/ColorTest.php
index 3ae51d7dd..7fae9ea41 100644
--- a/tests/Unit/Colors/Cmyk/ColorTest.php
+++ b/tests/Unit/Colors/Cmyk/ColorTest.php
@@ -111,4 +111,10 @@ public function testIsTransparent(): void
$color = new Color(100, 50, 50, 0);
... | true | |
Intervention/image | 1,385 | issue_to_patch | Add option to encode indexed color palette PNG format | ### Example
```php
$encoded = $image->toPng(indexed: true);
``` | 9f5e0624d4b8d073f58f8bfef71ba8363d9fb688 | e7554ec04828a565a0c6b9dec99fe6fad6742293 | diff --git a/src/Drivers/Gd/Encoders/PngEncoder.php b/src/Drivers/Gd/Encoders/PngEncoder.php
index 6b20ea91b..ebd2d50d9 100644
--- a/src/Drivers/Gd/Encoders/PngEncoder.php
+++ b/src/Drivers/Gd/Encoders/PngEncoder.php
@@ -4,22 +4,54 @@
namespace Intervention\Image\Drivers\Gd\Encoders;
+use GdImage;
+use Interventio... | [
"src/Drivers/Gd/Encoders/PngEncoder.php",
"src/Drivers/Imagick/Encoders/PngEncoder.php",
"src/Encoders/PngEncoder.php",
"src/Interfaces/ImageInterface.php",
"tests/BaseTestCase.php",
"tests/GdTestCase.php",
"tests/ImagickTestCase.php",
"tests/Traits/CanDetectInterlacedPng.php",
"tests/Traits/CanInsp... | [] | diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php
index 41caa2aa3..9aa89c0c9 100644
--- a/tests/BaseTestCase.php
+++ b/tests/BaseTestCase.php
@@ -25,7 +25,7 @@ public static function getTestResourceData($filename = 'test.jpg'): string
return file_get_contents(self::getTestResourcePath($filename));
... | true | |
Intervention/image | 1,394 | issue_to_patch | Fix bug with overlapping colors in ResizeCanvasModifier | See #1393 | 54aa51efda8b9f6d6d3d82c7c35a52fa681d3837 | a2cb24c8c19fe0816adbd44bb52ad3bbc7c67d10 | diff --git a/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php b/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php
index c5bae4e8a..be780dd91 100644
--- a/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php
+++ b/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php
@@ -33,23 +33,25 @@ public function app... | [
"src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php",
"tests/Unit/Drivers/Imagick/Modifiers/ResizeCanvasModifierTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Imagick/Modifiers/ResizeCanvasModifierTest.php b/tests/Unit/Drivers/Imagick/Modifiers/ResizeCanvasModifierTest.php
index 3f57b0b6b..a4d940e04 100644
--- a/tests/Unit/Drivers/Imagick/Modifiers/ResizeCanvasModifierTest.php
+++ b/tests/Unit/Drivers/Imagick/Modifiers/ResizeCanvasModifierTest... | true | |
Intervention/image | 1,321 | issue_to_patch | PHP 8.4 support | e7554ec04828a565a0c6b9dec99fe6fad6742293 | 9c042ee3d9e07323da7669eb58d9f262a43cbae3 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 22223f703..7fdf0fbd4 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- php: [ '8.1', '8.2', '8.3' ]
+ php: [ '... | [
".github/workflows/run-tests.yml"
] | [] | true | |||
Intervention/image | 1,388 | issue_to_patch | Fix bug in cloner transparency | See #1389
If an image has been cloned with cloneEmpty() and a completely transparent color e.g. "rgba(255, 255, 255, 0)" was specified as the background, the end result is an opaque white, for certain image formats. Observed with GIF.
This patch sets the background color as fully transparent if it has an alpha c... | 31779d02636a315ec3b53225308ddb95083539d4 | 6a4607dd9a4db77b838bf4426d95e9cd532310e2 | diff --git a/src/Drivers/Gd/Cloner.php b/src/Drivers/Gd/Cloner.php
index 8edc2023c..8723006a5 100644
--- a/src/Drivers/Gd/Cloner.php
+++ b/src/Drivers/Gd/Cloner.php
@@ -5,6 +5,7 @@
namespace Intervention\Image\Drivers\Gd;
use GdImage;
+use Intervention\Image\Colors\Rgb\Channels\Alpha;
use Intervention\Image\Colors... | [
"src/Drivers/Gd/Cloner.php"
] | [] | true | ||
Intervention/image | 1,386 | issue_to_patch | Add ability to read instances of EncodedImaged::class | ce4d2bc75c012d03962a06ab02427ebba8b59757 | b6d815458cc3ccfc31893dc54faa5305313252fb | diff --git a/src/Decoders/EncodedImageObjectDecoder.php b/src/Decoders/EncodedImageObjectDecoder.php
new file mode 100644
index 000000000..daddff2dd
--- /dev/null
+++ b/src/Decoders/EncodedImageObjectDecoder.php
@@ -0,0 +1,11 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Intervention\Image\Decoders;
+
+use Interve... | [
"src/Decoders/EncodedImageObjectDecoder.php",
"src/Drivers/Gd/Decoders/EncodedImageObjectDecoder.php",
"src/Drivers/Imagick/Decoders/EncodedImageObjectDecoder.php",
"src/InputHandler.php",
"tests/Unit/Drivers/Gd/Decoders/EncodedImageObjectDecoderTest.php",
"tests/Unit/Drivers/Imagick/Decoders/EncodedImage... | [] | diff --git a/tests/Unit/Drivers/Gd/Decoders/EncodedImageObjectDecoderTest.php b/tests/Unit/Drivers/Gd/Decoders/EncodedImageObjectDecoderTest.php
new file mode 100644
index 000000000..f75762f19
--- /dev/null
+++ b/tests/Unit/Drivers/Gd/Decoders/EncodedImageObjectDecoderTest.php
@@ -0,0 +1,32 @@
+<?php
+
+declare(strict_... | true | ||
Intervention/image | 1,365 | issue_to_patch | Feature/draw methods accept objects | 410d98002a60d4268834c8ffd1f2e6f86261fa0c | b07e565b1c763f5a624189843bf53110f6cfde9d | diff --git a/src/Geometry/Bezier.php b/src/Geometry/Bezier.php
index 66ba9b9f8..1dabfde0a 100644
--- a/src/Geometry/Bezier.php
+++ b/src/Geometry/Bezier.php
@@ -46,6 +46,18 @@ public function position(): PointInterface
return $this->pivot;
}
+ /**
+ * {@inheritdoc}
+ *
+ * @see DrawableIn... | [
"src/Geometry/Bezier.php",
"src/Geometry/Ellipse.php",
"src/Geometry/Factories/BezierFactory.php",
"src/Geometry/Factories/CircleFactory.php",
"src/Geometry/Factories/EllipseFactory.php",
"src/Geometry/Factories/LineFactory.php",
"src/Geometry/Factories/PolygonFactory.php",
"src/Geometry/Factories/Rec... | [] | true | |||
Intervention/image | 1,375 | issue_to_patch | Allow animated WEBP's | The current logic merges all the layers when using WEBP and Imagick. In an animated image, these layers are the separate frames. Not merging the layers when we're dealing with an animation allows for the creation of animated webp files.
Note: this still does only work with Imagick, GD has no animated webp support ye... | 115d2ad3bed41e64e411317216666a3da81e6d42 | bd1cbb8565dfda2c42d43721af122325faab6da0 | diff --git a/src/Drivers/Imagick/Encoders/WebpEncoder.php b/src/Drivers/Imagick/Encoders/WebpEncoder.php
index 552b23ab7..93a26fd9a 100644
--- a/src/Drivers/Imagick/Encoders/WebpEncoder.php
+++ b/src/Drivers/Imagick/Encoders/WebpEncoder.php
@@ -21,7 +21,10 @@ public function encode(ImageInterface $image): EncodedImage
... | [
"src/Drivers/Imagick/Encoders/WebpEncoder.php"
] | [
{
"comment": "```suggestion\r\n if (!$image->isAnimated()) {\r\n```",
"path": "src/Drivers/Imagick/Encoders/WebpEncoder.php",
"hunk": "@@ -21,7 +21,10 @@ public function encode(ImageInterface $image): EncodedImage\n $imagick = $image->core()->native();\n $imagick->setImageBackgrou... | true | ||
Intervention/image | 1,375 | comment_to_fix | Allow animated WEBP's | ```suggestion
if (!$image->isAnimated()) {
``` | 115d2ad3bed41e64e411317216666a3da81e6d42 | bd1cbb8565dfda2c42d43721af122325faab6da0 | diff --git a/src/Drivers/Imagick/Encoders/WebpEncoder.php b/src/Drivers/Imagick/Encoders/WebpEncoder.php
index 552b23ab7..93a26fd9a 100644
--- a/src/Drivers/Imagick/Encoders/WebpEncoder.php
+++ b/src/Drivers/Imagick/Encoders/WebpEncoder.php
@@ -21,7 +21,10 @@ public function encode(ImageInterface $image): EncodedImage
... | [
"src/Drivers/Imagick/Encoders/WebpEncoder.php"
] | [
{
"comment": "```suggestion\r\n if (!$image->isAnimated()) {\r\n```",
"path": "src/Drivers/Imagick/Encoders/WebpEncoder.php",
"hunk": "@@ -21,7 +21,10 @@ public function encode(ImageInterface $image): EncodedImage\n $imagick = $image->core()->native();\n $imagick->setImageBackgrou... | true | ||
Intervention/image | 1,372 | issue_to_patch | Handle non-standard but still in use image/x-jpeg mimetype as JPEG | I stumbled upon this issue for the second time recently, so I decided to try to submit a PR: I sometimes have to deal with image/x-jpeg files (seems that it's a non-standard mime type, but some use it...).
Without this PR, the code breaks with
`"image/x-jpeg" is not a valid backing value for enum Intervention\Image... | 137bdb356aacc01409d22aee3f0904497616cf3c | a4c1fdba9dff9260b0eab74e18c7bc9557149051 | diff --git a/src/MediaType.php b/src/MediaType.php
index 910127153..5fa468c48 100644
--- a/src/MediaType.php
+++ b/src/MediaType.php
@@ -9,6 +9,7 @@ enum MediaType: string
case IMAGE_JPEG = 'image/jpeg';
case IMAGE_JPG = 'image/jpg';
case IMAGE_PJPEG = 'image/pjpeg';
+ case IMAGE_X_JPEG = 'image/x-jpe... | [
"src/MediaType.php",
"tests/Unit/FormatTest.php",
"tests/Unit/MediaTypeTest.php"
] | [] | diff --git a/tests/Unit/FormatTest.php b/tests/Unit/FormatTest.php
index ca6a2319c..afc70cc61 100644
--- a/tests/Unit/FormatTest.php
+++ b/tests/Unit/FormatTest.php
@@ -43,7 +43,7 @@ public function testMediaTypesJpeg(): void
$format = Format::JPEG;
$mediaTypes = $format->mediaTypes();
$this-... | true | |
Intervention/image | 1,371 | issue_to_patch | Avoid unnecessary exif_read_data calls | EXIF data extraction makes only sense for JPEG and TIFF format. This patch checks the format and calls exif_read_data only for appropriate formats.
Previously, the function was also called with formats that can not contain EXIF data. This resulted in warnings.
See #1370 | c7fb60e6c94dc016a23507d30296f71edde8c205 | f2083a54e50bc0ecc0df474bb6946d3b947a813f | diff --git a/src/Drivers/Gd/Decoders/BinaryImageDecoder.php b/src/Drivers/Gd/Decoders/BinaryImageDecoder.php
index 5eddf07f5..5d30acccd 100644
--- a/src/Drivers/Gd/Decoders/BinaryImageDecoder.php
+++ b/src/Drivers/Gd/Decoders/BinaryImageDecoder.php
@@ -9,6 +9,7 @@
use Intervention\Image\Interfaces\DecoderInterface;
u... | [
"src/Drivers/Gd/Decoders/BinaryImageDecoder.php",
"src/Drivers/Gd/Decoders/FilePathImageDecoder.php",
"src/Drivers/Imagick/Decoders/BinaryImageDecoder.php",
"src/Drivers/Imagick/Decoders/FilePathImageDecoder.php"
] | [] | true | ||
Intervention/image | 1,366 | issue_to_patch | Fix bug when centering non-latin characters | See #1356 | 27512eedb325313f3646d64605c23d7de9a46056 | c8ee299b666dc89cf119166fcad60dae19ba7955 | diff --git a/src/Drivers/AbstractFontProcessor.php b/src/Drivers/AbstractFontProcessor.php
index e7817af86..6ffef5653 100644
--- a/src/Drivers/AbstractFontProcessor.php
+++ b/src/Drivers/AbstractFontProcessor.php
@@ -30,14 +30,16 @@ public function textBlock(string $text, FontInterface $font, PointInterface $pos
... | [
"src/Drivers/AbstractFontProcessor.php",
"src/Drivers/Gd/FontProcessor.php",
"tests/Unit/Drivers/AbstractFontProcessorTest.php"
] | [] | diff --git a/tests/Unit/Drivers/AbstractFontProcessorTest.php b/tests/Unit/Drivers/AbstractFontProcessorTest.php
index 56e530936..ac819563e 100644
--- a/tests/Unit/Drivers/AbstractFontProcessorTest.php
+++ b/tests/Unit/Drivers/AbstractFontProcessorTest.php
@@ -19,19 +19,63 @@ class AbstractFontProcessorTest extends Bas... | true | |
Intervention/image | 1,368 | issue_to_patch | Fix discarded alpha channel of watermark in PlaceModifier | #1367 | 13c166d104ced1c3bc5293cee8a774103128b264 | 1dcc68f7924cec9676619ce15034ca5c27b13b62 | diff --git a/src/Drivers/Imagick/Modifiers/PlaceModifier.php b/src/Drivers/Imagick/Modifiers/PlaceModifier.php
index aa2c6e869..eb5b72258 100644
--- a/src/Drivers/Imagick/Modifiers/PlaceModifier.php
+++ b/src/Drivers/Imagick/Modifiers/PlaceModifier.php
@@ -18,7 +18,7 @@ public function apply(ImageInterface $image): Ima... | [
"src/Drivers/Imagick/Modifiers/PlaceModifier.php",
"tests/Unit/Drivers/Gd/Modifiers/PlaceModifierTest.php",
"tests/Unit/Drivers/Imagick/Modifiers/PlaceModifierTest.php"
] | [] | diff --git a/tests/Unit/Drivers/Gd/Modifiers/PlaceModifierTest.php b/tests/Unit/Drivers/Gd/Modifiers/PlaceModifierTest.php
index 7fcc1b88a..ad8195bed 100644
--- a/tests/Unit/Drivers/Gd/Modifiers/PlaceModifierTest.php
+++ b/tests/Unit/Drivers/Gd/Modifiers/PlaceModifierTest.php
@@ -8,10 +8,11 @@
use PHPUnit\Framework\At... | true | |
Intervention/image | 1,364 | issue_to_patch | Feature/drawable improvements | 56a92c714421e9b636483f8d4de5a362e21363aa | 79d12d987eb6b9b3eb5b2d304ac3b4b55b83d063 | diff --git a/src/Drivers/Imagick/Modifiers/TextModifier.php b/src/Drivers/Imagick/Modifiers/TextModifier.php
index 51f30bf78..42cf7a076 100644
--- a/src/Drivers/Imagick/Modifiers/TextModifier.php
+++ b/src/Drivers/Imagick/Modifiers/TextModifier.php
@@ -15,6 +15,7 @@
use Intervention\Image\Interfaces\FontInterface;
us... | [
"src/Drivers/Imagick/Modifiers/TextModifier.php",
"src/Geometry/Bezier.php",
"src/Geometry/Factories/BezierFactory.php",
"src/Geometry/Factories/CircleFactory.php",
"src/Geometry/Factories/Drawable.php",
"src/Geometry/Factories/EllipseFactory.php",
"src/Geometry/Factories/LineFactory.php",
"src/Geomet... | [] | diff --git a/tests/Unit/Geometry/Factories/DrawableTest.php b/tests/Unit/Geometry/Factories/DrawableTest.php
new file mode 100644
index 000000000..a0bbec778
--- /dev/null
+++ b/tests/Unit/Geometry/Factories/DrawableTest.php
@@ -0,0 +1,47 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Intervention\Image\Tests\Unit\G... | true | ||
Intervention/image | 1,363 | issue_to_patch | Add bezier curve drawing tool | This commit adds a new bezier curve drawing tool as discussed in #1335.
The following code can be used to generate the sample image below:
```php
require('./vendor/autoload.php');
use Intervention\Image\ImageManager;
use Intervention\Image\Drivers\Gd\Driver;
use Intervention\Image\Geometry\Factories\BezierF... | 6d0d0b200266f57efff029881a83af030b5716af | c2fdcfd98ecf7b156691108d2c430f1aa22664f8 | diff --git a/src/Drivers/Gd/Modifiers/DrawBezierModifier.php b/src/Drivers/Gd/Modifiers/DrawBezierModifier.php
new file mode 100644
index 000000000..802e2fa59
--- /dev/null
+++ b/src/Drivers/Gd/Modifiers/DrawBezierModifier.php
@@ -0,0 +1,230 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Intervention\Image\Drivers\... | [
"src/Drivers/Gd/Modifiers/DrawBezierModifier.php",
"src/Drivers/Imagick/Modifiers/DrawBezierModifier.php",
"src/Geometry/Bezier.php",
"src/Geometry/Factories/BezierFactory.php",
"src/Image.php",
"src/Interfaces/ImageInterface.php",
"src/Modifiers/DrawBezierModifier.php",
"tests/Unit/Drivers/Gd/Modifie... | [
{
"comment": "This method can be private to make it clear that it is only used locally.\r\n\r\n```suggestion\r\n private function calculateQuadraticBezierInterpolationPoint(float $t = 0.05): array\r\n```",
"path": "src/Drivers/Gd/Modifiers/DrawBezierModifier.php",
"hunk": "@@ -0,0 +1,230 @@\n+<?php\n... | diff --git a/tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php b/tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php
new file mode 100644
index 000000000..26414fd31
--- /dev/null
+++ b/tests/Unit/Drivers/Gd/Modifiers/DrawBezierModifierTest.php
@@ -0,0 +1,33 @@
+<?php
+
+declare(strict_types=1);
+
+names... | true | |
Intervention/image | 1,361 | issue_to_patch | Fix bug in cover modifiers | See: https://github.com/Intervention/image/issues/1359 | 193324ec88bc5ad4039e57ce9b926ae28dfde813 | 1efc04e5fc4d8301784867b58ce469e63ba47216 | diff --git a/src/Drivers/AbstractDriver.php b/src/Drivers/AbstractDriver.php
index bbef4608f..215946f6f 100644
--- a/src/Drivers/AbstractDriver.php
+++ b/src/Drivers/AbstractDriver.php
@@ -64,6 +64,7 @@ public function specialize(
/**
* {@inheritdoc}
*
+ * @throws NotSupportedException
* @see... | [
"src/Drivers/AbstractDriver.php",
"src/Drivers/Gd/Driver.php",
"src/Drivers/Gd/Modifiers/CoverDownModifier.php",
"src/Drivers/Imagick/Driver.php",
"src/Drivers/Imagick/Modifiers/CoverDownModifier.php",
"src/Modifiers/CoverModifier.php",
"tests/Unit/Drivers/Gd/Modifiers/CoverDownModifierTest.php",
"tes... | [] | diff --git a/tests/Unit/Drivers/Gd/Modifiers/CoverDownModifierTest.php b/tests/Unit/Drivers/Gd/Modifiers/CoverDownModifierTest.php
new file mode 100644
index 000000000..4b08306ac
--- /dev/null
+++ b/tests/Unit/Drivers/Gd/Modifiers/CoverDownModifierTest.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+namespac... | true | |
Intervention/image | 1,350 | issue_to_patch | Configuration API | ### Available Configuration Options
Currently the following options are available.
| Name | Type | Description |
| - | - | - |
| autoOrientation | bool | (optional) Decides whether the image should be automatically aligned based on the Exif data. Default: `true` |
| decodeAnimation | bool | (optional) Whether ... | e0e11d0670dfbf9787d0a87b2ddd07624ef572ee | 5e4f74f3b3bb7263158c6e2beae04372a95fe2f6 | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 31947a5d7..af59d644a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -68,7 +68,7 @@ testing, it must also run without errors.
Check the analyzer by running the following command.
```bash
-./vendor/bin/phpstan analyze --memory-limit=512M --level=4 ./src
+./v... | [
"CONTRIBUTING.md",
"readme.md",
"src/Colors/Cmyk/Color.php",
"src/Colors/Hsl/Color.php",
"src/Colors/Hsv/Color.php",
"src/Colors/Rgb/Color.php",
"src/Config.php",
"src/Decoders/ColorObjectDecoder.php",
"src/Decoders/ImageObjectDecoder.php",
"src/Drivers/AbstractDecoder.php",
"src/Drivers/Abstrac... | [] | diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php
index 7416909f0..41caa2aa3 100644
--- a/tests/BaseTestCase.php
+++ b/tests/BaseTestCase.php
@@ -15,20 +15,20 @@
abstract class BaseTestCase extends MockeryTestCase
{
- public function getTestResourcePath($filename = 'test.jpg'): string
+ public stat... | true | |
Intervention/image | 1,354 | issue_to_patch | Update doctype ImageManagerInterface | The [example](https://image.intervention.io/v3/basics/instantiation#examples) uses an array of strings.
It seems to be fine either way when you look at it.
https://github.com/Intervention/image/blob/267d588eb100d5cf36c91fffa3642087aa4c1028/src/Drivers/AbstractDriver.php#L69-L79 | 267d588eb100d5cf36c91fffa3642087aa4c1028 | 6d144c3bb4d1695ead7049ac9827f458e0fbd801 | diff --git a/src/Interfaces/ImageManagerInterface.php b/src/Interfaces/ImageManagerInterface.php
index e79d0235f..4fe99177f 100644
--- a/src/Interfaces/ImageManagerInterface.php
+++ b/src/Interfaces/ImageManagerInterface.php
@@ -44,7 +44,7 @@ public function create(int $width, int $height): ImageInterface;
*
... | [
"src/Interfaces/ImageManagerInterface.php"
] | [] | true | ||
ItzCrazyKns/Vane | 1,097 | issue_to_patch | fix: add missing break statements in weather code switch | The weather API route has switch fall-through bugs — 15 out of 25 WMO weather codes display the wrong condition text in the widget.
Each group of related codes (e.g. 61 Slight Rain, 63 Moderate Rain, 65 Heavy Rain) was meant to share an icon while showing a distinct condition label, but missing `break` statements caus... | 9e8d883768c43520464345fefe58654f5cee451b | e0aac65e6477168101a3f9b6ddedfbe03d4f38ae | diff --git a/src/app/api/weather/route.ts b/src/app/api/weather/route.ts
index afaf8a654..860823ef6 100644
--- a/src/app/api/weather/route.ts
+++ b/src/app/api/weather/route.ts
@@ -62,57 +62,79 @@ export const POST = async (req: Request) => {
break;
case 1:
+ weather.icon = `cloudy-1-${dayOrNig... | [
"src/app/api/weather/route.ts"
] | [
{
"comment": "WMO weather codes do not include 87 (Open‑Meteo follows WMO); code 86 corresponds to heavy snow showers. With the new break here, code 86 will now display \"Moderate Snow Showers\", which is likely incorrect and code 87 is likely unreachable. Consider mapping 86 to the heavy label (and optionally ... | true | ||
ItzCrazyKns/Vane | 1,082 | issue_to_patch | unable to upload pdf file
unable to upload pdf file, it just spins.
expected should be to ingest the file and be able to search the content.
<img width="1065" height="655" alt="Image" src="https://github.com/user-attachments/assets/2879336a-fca4-4f2b-b967-dbd2d01201a0" />
Environment - vane running on docker - us... | fix: prevent stuck spinner on failed file uploads | ## Summary
- add robust error handling in Attach.tsx and AttachSmall.tsx upload flows
- always clear loading state with finally so spinner cannot remain stuck
- handle non-OK upload responses and invalid response shapes gracefully
- show user-facing toast messages for upload failures
## Verification
- corepack yarn ex... | 8c061f20a5c4941711370a3ed2dad11f299e331d | 0e33641927ed8a830f2f7e7a44c2609f1838c5ab | diff --git a/src/components/MessageInputActions/Attach.tsx b/src/components/MessageInputActions/Attach.tsx
index 84d7152a1..cf97664d2 100644
--- a/src/components/MessageInputActions/Attach.tsx
+++ b/src/components/MessageInputActions/Attach.tsx
@@ -18,6 +18,7 @@ import { Fragment, useRef, useState } from 'react';
impo... | [
"src/components/MessageInputActions/Attach.tsx",
"src/components/MessageInputActions/AttachSmall.tsx"
] | [] | true | |
ItzCrazyKns/Vane | 1,076 | issue_to_patch | fix: guard against non-array searching queries in research steps | ## Bug
https://github.com/ItzCrazyKns/Vane/issues/1075 — Client crashes with `t.searching.map is not a function` during web search, causing an application error page.
## Root Cause
The search action handlers (web, academic, social) pass `input.queries` directly to the `searching` field in research substeps. The Zod sc... | b02f5aa37fcb487c68e4f115ffea55c21526efd2 | 21bd88787e9ea88a79e9fa424c831e342e401526 | diff --git a/src/components/AssistantSteps.tsx b/src/components/AssistantSteps.tsx
index c715a9248..748463f64 100644
--- a/src/components/AssistantSteps.tsx
+++ b/src/components/AssistantSteps.tsx
@@ -37,7 +37,8 @@ const getStepTitle = (
if (step.type === 'reasoning') {
return isStreaming && !step.reasoning ? '... | [
"src/components/AssistantSteps.tsx",
"src/lib/agents/search/researcher/actions/academicSearch.ts",
"src/lib/agents/search/researcher/actions/socialSearch.ts",
"src/lib/agents/search/researcher/actions/webSearch.ts"
] | [] | true | ||
ItzCrazyKns/Vane | 1,015 | issue_to_patch | feat: improve search resilience with timeouts and widget error handling | I noticed that the current search implementation is susceptible to network hangs if the SearXNG backend is slow or unreachable, as there are no explicit timeouts in the fetch call. Additionally, failures in secondary widgets (like weather or stock) could cause the entire search process to fail.
This PR introduces:
- A... | 86274326e9900a701df64c1bb5cf463e50d2e523 | a2f2ac532ee728d7856e74ed8fb5631b404394b8 | diff --git a/src/lib/agents/search/api.ts b/src/lib/agents/search/api.ts
index 924bc68f4..94b70ae9b 100644
--- a/src/lib/agents/search/api.ts
+++ b/src/lib/agents/search/api.ts
@@ -19,6 +19,9 @@ class APISearchAgent {
chatHistory: input.chatHistory,
followUp: input.followUp,
llm: input.config.llm,
... | [
"src/lib/agents/search/api.ts",
"src/lib/searxng.ts"
] | [] | true | ||
ItzCrazyKns/Vane | 1,041 | issue_to_patch | fix: add typing_extensions to Dockerfile to resolve build error | Add typing_extensions to the list of installed packages to prevent build error
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fix Docker build by installing `typing_extensions` in the venv, ensuring `msgspec` and other deps have required typing backports and the `searxng` install comp... | 86274326e9900a701df64c1bb5cf463e50d2e523 | 80d4f23765e30cb87c31de3002c37581acda6b70 | diff --git a/Dockerfile b/Dockerfile
index b94fc3d29..e0feeaf80 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -54,7 +54,7 @@ RUN git clone "https://github.com/searxng/searxng" \
"/usr/local/searxng/searxng-src"
RUN python3 -m venv "/usr/local/searxng/searx-pyenv"
-RUN "/usr/local/searxng/searx-pyen... | [
"Dockerfile"
] | [] | true | ||
ItzCrazyKns/Vane | 957 | issue_to_patch | Release v1.12.0 |
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Release v1.12.0 rebuilds search and streaming with a new agent-driven pipeline, source-based search, and smart widgets for richer answers and a smoother UI. It includes breaking API changes (focusMode → sources) and a new message/storage sch... | fdaa2f0646e89f106806aa0f59f19de37d28e90d | 0987ee4370571c78b5d349bb854043bb2de0f58c | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 04416e1d3..6b4ce5b65 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -11,33 +11,63 @@ Perplexica's codebase is organized as follows:
- **UI Components and Pages**:
- **Components (`src/components`)**: Reusable UI components.
- **Pages and Routes (`src/ap... | [
"CONTRIBUTING.md",
"README.md",
"docker-compose.yaml",
"docs/API/SEARCH.md",
"docs/architecture/README.md",
"docs/architecture/WORKING.md",
"docs/installation/UPDATING.md",
"drizzle/0002_daffy_wrecker.sql",
"drizzle/meta/0002_snapshot.json",
"drizzle/meta/_journal.json",
"next-env.d.ts",
"next... | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new TypeScript types file for a search agent, I'll analyze the type definitions for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key areas of this new types file:\\n\\n1... | true | ||
ItzCrazyKns/Vane | 950 | issue_to_patch | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more |
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Rebuilt the search architecture with custom LLM/provider classes, removed LangChain, and added a deep research workflow with streaming blocks, widgets, and source controls. Adds function call... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 04416e1d3..6b4ce5b65 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -11,33 +11,63 @@ Perplexica's codebase is organized as follows:
- **UI Components and Pages**:
- **Components (`src/components`)**: Reusable UI components.
- **Pages and Routes (`src/ap... | [
"CONTRIBUTING.md",
"README.md",
"docker-compose.yaml",
"docs/API/SEARCH.md",
"docs/architecture/README.md",
"docs/architecture/WORKING.md",
"docs/installation/UPDATING.md",
"drizzle/0002_daffy_wrecker.sql",
"drizzle/meta/0002_snapshot.json",
"drizzle/meta/_journal.json",
"next-env.d.ts",
"next... | [
{
"comment": "<!-- metadata:{\"confidence\":10,\"steps\":[]} -->\nP1: Hardcoded 'Mars' location appears to be debug/test code that was accidentally committed. This should use `location.city` to display the user's actual location.\n\n<details>\n<summary>Prompt for AI agents</summary>\n\n```text\nCheck if this is... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this migration file, I see a SQL migration file that contains only a placeholder comment `/* do nothing */`. The PR description states this migration should \"move messages to the block-based schema (responseBlocks, status, backendId, query)\" but the actual fi... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/drizzle/0002_daffy_wrecker.sql b/drizzle/0002_daffy_wrecker.sql
new file mode 100644
index 000000000..1520a6578
--- /dev/null
+++ b/drizzle/0002_daffy_wrecker.sql
@@ -0,0 +1,1 @@
+/* do nothing */
\ No newline at end of file
| [
"drizzle/0002_daffy_wrecker.sql"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this migration file, I see a SQL migration file that contains only a placeholder comment `/* do nothing */`. The PR description states this migration should \\\"move messages to the block-based schema (responseBlocks, status, backen... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new `ActionRegistry` class, I need to analyze for potential issues in the implementation.\n\nI see two potential issues:\n\n1. **Line 29**: Using `.filter()` directly on an iterator from `Map.values()` - Iterator helper methods like `.filter()` on iterator... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/researcher/actions/registry.ts b/src/lib/agents/search/researcher/actions/registry.ts
new file mode 100644
index 000000000..a8de51329
--- /dev/null
+++ b/src/lib/agents/search/researcher/actions/registry.ts
@@ -0,0 +1,105 @@
+import { Tool, ToolCall } from '@/lib/models/types';
+impor... | [
"src/lib/agents/search/researcher/actions/registry.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new `ActionRegistry` class, I need to analyze for potential issues in the implementation.\\n\\nI see two potential issues:\\n\\n1. **Line 29**: Using `.filter()` directly on an iterator from `Map.values()` - Iterator helper met... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this migration code, I need to analyze the message migration logic in the '0002' migration block carefully.","toolCalls":[{"toolName":"think","input":{"thought":"Let me trace through the message migration logic:\n\n1. When `msg.type === 'user' && lastCompleted`... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/db/migrate.ts b/src/lib/db/migrate.ts
index e4c698714..e0efb7c9e 100644
--- a/src/lib/db/migrate.ts
+++ b/src/lib/db/migrate.ts
@@ -18,12 +18,18 @@ db.exec(`
`);
function sanitizeSql(content: string) {
- return content
- .split(/\r?\n/)
- .filter(
- (l) => !l.trim().startsWith('-->'... | [
"src/lib/db/migrate.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this migration code, I need to analyze the message migration logic in the '0002' migration block carefully.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me trace through the message migration logic:\\n\\n1. ... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"I'll analyze this code change carefully. The main changes involve migrating from LangChain to a custom session-based architecture. Let me investigate a potential race condition I see.","toolCalls":[{"toolName":"readFile","input":{"filePath":"src/lib/session/index.ts"}},{"... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/app/api/search/route.ts b/src/app/api/search/route.ts
index bc7255f72..099126840 100644
--- a/src/app/api/search/route.ts
+++ b/src/app/api/search/route.ts
@@ -1,12 +1,13 @@
-import { AIMessage, BaseMessage, HumanMessage } from '@langchain/core/messages';
-import { MetaSearchAgentType } from '@/lib/sea... | [
"src/app/api/search/route.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"I'll analyze this code change carefully. The main changes involve migrating from LangChain to a custom session-based architecture. Let me investigate a potential race condition I see.\",\"toolCalls\":[{\"toolName\":\"readFile\",\"input\":{\"fi... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this Drizzle ORM migration snapshot file, I need to analyze the database schema definition for the `chats` and `messages` tables.\n\nLet me examine the schema structure for potential issues:\n\n1. **Missing Foreign Key Constraint**: The `messages.chatId` column... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/drizzle/meta/0002_snapshot.json b/drizzle/meta/0002_snapshot.json
new file mode 100644
index 000000000..feb820c83
--- /dev/null
+++ b/drizzle/meta/0002_snapshot.json
@@ -0,0 +1,132 @@
+{
+ "version": "6",
+ "dialect": "sqlite",
+ "id": "1c5eb804-d6b4-48ec-9a8f-75fb729c8e52",
+ "prevId": "6dedf55f-0e44-... | [
"drizzle/meta/0002_snapshot.json"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this Drizzle ORM migration snapshot file, I need to analyze the database schema definition for the `chats` and `messages` tables.\\n\\nLet me examine the schema structure for potential issues:\\n\\n1. **Missing Foreign Key Constrain... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"I'll analyze this new file for potential issues. Let me first check how SessionManager is typically used to understand if the pattern at line 28 is correct.","toolCalls":[{"toolName":"bash","input":{"command":"rg -n SessionManager src/lib --glob '*.ts' -A 3 | head -60"}},... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/api.ts b/src/lib/agents/search/api.ts
new file mode 100644
index 000000000..924bc68f4
--- /dev/null
+++ b/src/lib/agents/search/api.ts
@@ -0,0 +1,99 @@
+import { ResearcherOutput, SearchAgentInput } from './types';
+import SessionManager from '@/lib/session';
+import { classify } from... | [
"src/lib/agents/search/api.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"I'll analyze this new file for potential issues. Let me first check how SessionManager is typically used to understand if the pattern at line 28 is correct.\",\"toolCalls\":[{\"toolName\":\"bash\",\"input\":{\"command\":\"rg -n SessionManager ... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":10,"steps":[{"text":"Looking at this new file, I need to analyze the code for potential issues.\n\nThe key areas to examine:\n1. The `enabled` function logic\n2. The deduplication logic\n3. Any potential bugs or code quality issues\n\nLet me analyze the `enabled` function more closely:\n\n``... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/researcher/actions/uploadsSearch.ts b/src/lib/agents/search/researcher/actions/uploadsSearch.ts
new file mode 100644
index 000000000..819506395
--- /dev/null
+++ b/src/lib/agents/search/researcher/actions/uploadsSearch.ts
@@ -0,0 +1,102 @@
+import z from 'zod';
+import { ResearchActio... | [
"src/lib/agents/search/researcher/actions/uploadsSearch.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":10,\"steps\":[{\"text\":\"Looking at this new file, I need to analyze the code for potential issues.\\n\\nThe key areas to examine:\\n1. The `enabled` function logic\\n2. The deduplication logic\\n3. Any potential bugs or code quality issues\\n\\nLet me analyze the `e... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new CodeBlock component, I need to analyze it for potential issues.\n\nI can see a clear bug in the code - the button is already positioned with `absolute top-2 right-2`, but the icons inside the button also have `absolute top-2 right-2` classes. This crea... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/MessageRenderer/CodeBlock/index.tsx b/src/components/MessageRenderer/CodeBlock/index.tsx
new file mode 100644
index 000000000..493a0d025
--- /dev/null
+++ b/src/components/MessageRenderer/CodeBlock/index.tsx
@@ -0,0 +1,64 @@
+'use client';
+
+import { CheckIcon, CopyIcon } from '@phosphor-ic... | [
"src/components/MessageRenderer/CodeBlock/index.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new CodeBlock component, I need to analyze it for potential issues.\\n\\nI can see a clear bug in the code - the button is already positioned with `absolute top-2 right-2`, but the icons inside the button also have `absolute to... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new file `calculationWidget.ts`, I need to analyze the code for potential issues.\n\nKey observations from the diff:\n1. Line 4 imports `exp` from mathjs but it's never used\n2. The `execute` function doesn't check `output.notPresent` before calling `mathE... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/widgets/calculationWidget.ts b/src/lib/agents/search/widgets/calculationWidget.ts
new file mode 100644
index 000000000..3e280152e
--- /dev/null
+++ b/src/lib/agents/search/widgets/calculationWidget.ts
@@ -0,0 +1,71 @@
+import z from 'zod';
+import { Widget } from '../types';
+import f... | [
"src/lib/agents/search/widgets/calculationWidget.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new file `calculationWidget.ts`, I need to analyze the code for potential issues.\\n\\nKey observations from the diff:\\n1. Line 4 imports `exp` from mathjs but it's never used\\n2. The `execute` function doesn't check `output.... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at the diff, I'll analyze the changed lines for potential issues.","toolCalls":[{"toolName":"goToDefinition","input":{"file":"src/lib/hooks/useChat.ts","symbol":"Section","line":1}},{"toolName":"goToDefinition","input":{"file":"src/lib/types.ts","symbol":"SourceBl... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx
index bbcd470a4..6d3e77c25 100644
--- a/src/components/Navbar.tsx
+++ b/src/components/Navbar.tsx
@@ -11,6 +11,7 @@ import {
} from '@headlessui/react';
import jsPDF from 'jspdf';
import { useChat, Section } from '@/lib/hooks/useChat';
+import { Sour... | [
"src/components/Navbar.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at the diff, I'll analyze the changed lines for potential issues.\",\"toolCalls\":[{\"toolName\":\"goToDefinition\",\"input\":{\"file\":\"src/lib/hooks/useChat.ts\",\"symbol\":\"Section\",\"line\":1}},{\"toolName\":\"goToDefinition\",\... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new React component for displaying research progress steps, I need to analyze for potential issues in the changed lines.\n\nLet me identify the key concerns:\n\n1. **useEffect dependency array** (line 72-74): The effect uses `isLast` but it's not in the de... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/AssistantSteps.tsx b/src/components/AssistantSteps.tsx
new file mode 100644
index 000000000..c715a9248
--- /dev/null
+++ b/src/components/AssistantSteps.tsx
@@ -0,0 +1,266 @@
+'use client';
+
+import {
+ Brain,
+ Search,
+ FileText,
+ ChevronDown,
+ ChevronUp,
+ BookSearch,
+} from 'lu... | [
"src/components/AssistantSteps.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new React component for displaying research progress steps, I need to analyze for potential issues in the changed lines.\\n\\nLet me identify the key concerns:\\n\\n1. **useEffect dependency array** (line 72-74): The effect use... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new `SearchAgent` class, I need to analyze the code for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the key issues in this code:\n\n1. **Error handling**: The `searchAsync` method performs many async operations (D... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/index.ts b/src/lib/agents/search/index.ts
new file mode 100644
index 000000000..859183293
--- /dev/null
+++ b/src/lib/agents/search/index.ts
@@ -0,0 +1,186 @@
+import { ResearcherOutput, SearchAgentInput } from './types';
+import SessionManager from '@/lib/session';
+import { classify... | [
"src/lib/agents/search/index.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new `SearchAgent` class, I need to analyze the code for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key issues in this code:\\n\\n1. **Error handling**: The `searchAsyn... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at the diff, I need to analyze the changed lines for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the key changes in this diff:\n\n1. New imports: CornerDownRight, RuleType, changed Citation path, AssistantSteps, ResearchB... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/MessageBox.tsx b/src/components/MessageBox.tsx
index 062bb906b..19e354616 100644
--- a/src/components/MessageBox.tsx
+++ b/src/components/MessageBox.tsx
@@ -10,8 +10,9 @@ import {
StopCircle,
Layers3,
Plus,
+ CornerDownRight,
} from 'lucide-react';
-import Markdown, { MarkdownToJS... | [
"src/components/MessageBox.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at the diff, I need to analyze the changed lines for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key changes in this diff:\\n\\n1. New imports: CornerDownRight, RuleType, chang... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at the changed code in this chat API route refactoring, I need to analyze for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the key changes:\n\n1. **Abort handler issue**: Looking at lines 233-236:\n```javascript\nreq.signa... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/app/api/chat/route.ts b/src/app/api/chat/route.ts
index 25b8104c9..6362ebc7b 100644
--- a/src/app/api/chat/route.ts
+++ b/src/app/api/chat/route.ts
@@ -1,14 +1,14 @@
-import crypto from 'crypto';
-import { AIMessage, BaseMessage, HumanMessage } from '@langchain/core/messages';
-import { EventEmitter } ... | [
"src/app/api/chat/route.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at the changed code in this chat API route refactoring, I need to analyze for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key changes:\\n\\n1. **Abort handler issue**: Looking ... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this Stock widget component, I need to analyze the code for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the key issues I've identified:\n\n1. **Bug in isPositive/icon logic (lines 241, 349-354)**:\n - `isPositive = (... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/Widgets/Stock.tsx b/src/components/Widgets/Stock.tsx
new file mode 100644
index 000000000..57fba1af7
--- /dev/null
+++ b/src/components/Widgets/Stock.tsx
@@ -0,0 +1,517 @@
+'use client';
+
+import { Clock, ArrowUpRight, ArrowDownRight, Minus } from 'lucide-react';
+import { useEffect, useRef... | [
"src/components/Widgets/Stock.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this Stock widget component, I need to analyze the code for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key issues I've identified:\\n\\n1. **Bug in isPositive/icon logic (l... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new reconnect API route, I need to analyze potential issues with the stream handling and resource cleanup.","toolCalls":[{"toolName":"think","input":{"thought":"Analyzing the reconnect route for issues:\n\n1. **Double close on writer**: Looking at the code... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/app/api/reconnect/[id]/route.ts b/src/app/api/reconnect/[id]/route.ts
new file mode 100644
index 000000000..08be11b16
--- /dev/null
+++ b/src/app/api/reconnect/[id]/route.ts
@@ -0,0 +1,93 @@
+import SessionManager from '@/lib/session';
+
+export const POST = async (
+ req: Request,
+ { params }: { pa... | [
"src/app/api/reconnect/[id]/route.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new reconnect API route, I need to analyze potential issues with the stream handling and resource cleanup.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Analyzing the reconnect route for issues:\\n\\n1. **Do... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this Weather component code, I need to analyze for potential issues. Let me first check the `getMeasurementUnit` function since it's called during render and could potentially cause issues with SSR/hydration in Next.js.","toolCalls":[{"toolName":"goToDefinition... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/Widgets/Weather.tsx b/src/components/Widgets/Weather.tsx
new file mode 100644
index 000000000..159c15ef0
--- /dev/null
+++ b/src/components/Widgets/Weather.tsx
@@ -0,0 +1,422 @@
+'use client';
+
+import { getMeasurementUnit } from '@/lib/config/clientRegistry';
+import { Wind, Droplets, Gaug... | [
"src/components/Widgets/Weather.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this Weather component code, I need to analyze for potential issues. Let me first check the `getMeasurementUnit` function since it's called during render and could potentially cause issues with SSR/hydration in Next.js.\",\"toolCall... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":8,"steps":[{"text":"Looking at this migration code, I need to analyze the message migration logic in the '0002' migration block carefully.","toolCalls":[{"toolName":"think","input":{"thought":"Let me trace through the message migration logic:\n\n1. When `msg.type === 'user' && lastCompleted`... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/db/migrate.ts b/src/lib/db/migrate.ts
index e4c698714..e0efb7c9e 100644
--- a/src/lib/db/migrate.ts
+++ b/src/lib/db/migrate.ts
@@ -18,12 +18,18 @@ db.exec(`
`);
function sanitizeSql(content: string) {
- return content
- .split(/\r?\n/)
- .filter(
- (l) => !l.trim().startsWith('-->'... | [
"src/lib/db/migrate.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":8,\"steps\":[{\"text\":\"Looking at this migration code, I need to analyze the message migration logic in the '0002' migration block carefully.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me trace through the message migration logic:\\n\\n1. ... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new React component for displaying research progress steps, I need to analyze for potential issues in the changed lines.\n\nLet me identify the key concerns:\n\n1. **useEffect dependency array** (line 72-74): The effect uses `isLast` but it's not in the de... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/AssistantSteps.tsx b/src/components/AssistantSteps.tsx
new file mode 100644
index 000000000..c715a9248
--- /dev/null
+++ b/src/components/AssistantSteps.tsx
@@ -0,0 +1,266 @@
+'use client';
+
+import {
+ Brain,
+ Search,
+ FileText,
+ ChevronDown,
+ ChevronUp,
+ BookSearch,
+} from 'lu... | [
"src/components/AssistantSteps.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new React component for displaying research progress steps, I need to analyze for potential issues in the changed lines.\\n\\nLet me identify the key concerns:\\n\\n1. **useEffect dependency array** (line 72-74): The effect use... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new types file for the search agent system, I'll analyze the TypeScript type definitions for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the code carefully:\n\n1. The file defines various TypeScript types for a se... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/types.ts b/src/lib/agents/search/types.ts
new file mode 100644
index 000000000..64c967eab
--- /dev/null
+++ b/src/lib/agents/search/types.ts
@@ -0,0 +1,122 @@
+import z from 'zod';
+import BaseLLM from '../../models/base/llm';
+import BaseEmbedding from '@/lib/models/base/embedding';
... | [
"src/lib/agents/search/types.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new types file for the search agent system, I'll analyze the TypeScript type definitions for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the code carefully:\\n\\n1. The fil... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new `ActionRegistry` class, I need to analyze for potential issues in the implementation.\n\nI see two potential issues:\n\n1. **Line 29**: Using `.filter()` directly on an iterator from `Map.values()` - Iterator helper methods like `.filter()` on iterator... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/researcher/actions/registry.ts b/src/lib/agents/search/researcher/actions/registry.ts
new file mode 100644
index 000000000..a8de51329
--- /dev/null
+++ b/src/lib/agents/search/researcher/actions/registry.ts
@@ -0,0 +1,105 @@
+import { Tool, ToolCall } from '@/lib/models/types';
+impor... | [
"src/lib/agents/search/researcher/actions/registry.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new `ActionRegistry` class, I need to analyze for potential issues in the implementation.\\n\\nI see two potential issues:\\n\\n1. **Line 29**: Using `.filter()` directly on an iterator from `Map.values()` - Iterator helper met... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[]} -->
P2: When `sources.length` is 0, this expression evaluates to `false`, which gets coerced to the string `"false"` in the template literal. The copied text will incorrectly contain `"false"` appended to it. Use a ternary operator to return an empty string instead.
<details>
... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/MessageActions/Copy.tsx b/src/components/MessageActions/Copy.tsx
index eb48e3041..7a3d5189e 100644
--- a/src/components/MessageActions/Copy.tsx
+++ b/src/components/MessageActions/Copy.tsx
@@ -2,6 +2,7 @@ import { Check, ClipboardList } from 'lucide-react';
import { Message } from '../ChatW... | [
"src/components/MessageActions/Copy.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[]} -->\nP2: When `sources.length` is 0, this expression evaluates to `false`, which gets coerced to the string `\"false\"` in the template literal. The copied text will incorrectly contain `\"false\"` appended to it. Use a ternary operator to return an em... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new file for URL scraping functionality, I need to analyze it for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the key issues in this code:\n\n1. **Unused import**: `path` is imported on line 5 but never used anywh... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/researcher/actions/scrapeURL.ts b/src/lib/agents/search/researcher/actions/scrapeURL.ts
new file mode 100644
index 000000000..c702a7014
--- /dev/null
+++ b/src/lib/agents/search/researcher/actions/scrapeURL.ts
@@ -0,0 +1,139 @@
+import z from 'zod';
+import { ResearchAction } from '..... | [
"src/lib/agents/search/researcher/actions/scrapeURL.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new file for URL scraping functionality, I need to analyze it for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key issues in this code:\\n\\n1. **Unused import**: `path`... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at the diff, I see the code is changing from checking `source.metadata.url === 'File'` to `source.metadata.url.includes('file_id://')`. Let me examine the full file to check for consistency issues.","toolCalls":[{"toolName":"think","input":{"thought":"Looking at t... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/MessageSources.tsx b/src/components/MessageSources.tsx
index fb2b5bb66..a1db27a29 100644
--- a/src/components/MessageSources.tsx
+++ b/src/components/MessageSources.tsx
@@ -6,11 +6,11 @@ import {
Transition,
TransitionChild,
} from '@headlessui/react';
-import { Document } from '@lang... | [
"src/components/MessageSources.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at the diff, I see the code is changing from checking `source.metadata.url === 'File'` to `source.metadata.url.includes('file_id://')`. Let me examine the full file to check for consistency issues.\",\"toolCalls\":[{\"toolName\":\"thin... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":8,"steps":[{"text":"Looking at this new file `calculationWidget.ts`, I need to analyze the code for potential issues.\n\nKey observations from the diff:\n1. Line 4 imports `exp` from mathjs but it's never used\n2. The `execute` function doesn't check `output.notPresent` before calling `mathE... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/widgets/calculationWidget.ts b/src/lib/agents/search/widgets/calculationWidget.ts
new file mode 100644
index 000000000..3e280152e
--- /dev/null
+++ b/src/lib/agents/search/widgets/calculationWidget.ts
@@ -0,0 +1,71 @@
+import z from 'zod';
+import { Widget } from '../types';
+import f... | [
"src/lib/agents/search/widgets/calculationWidget.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":8,\"steps\":[{\"text\":\"Looking at this new file `calculationWidget.ts`, I need to analyze the code for potential issues.\\n\\nKey observations from the diff:\\n1. Line 4 imports `exp` from mathjs but it's never used\\n2. The `execute` function doesn't check `output.... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":8,"steps":[{"text":"Looking at this Stock widget component, I need to analyze the code for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the key issues I've identified:\n\n1. **Bug in isPositive/icon logic (lines 241, 349-354)**:\n - `isPositive = (... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/Widgets/Stock.tsx b/src/components/Widgets/Stock.tsx
new file mode 100644
index 000000000..57fba1af7
--- /dev/null
+++ b/src/components/Widgets/Stock.tsx
@@ -0,0 +1,517 @@
+'use client';
+
+import { Clock, ArrowUpRight, ArrowDownRight, Minus } from 'lucide-react';
+import { useEffect, useRef... | [
"src/components/Widgets/Stock.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":8,\"steps\":[{\"text\":\"Looking at this Stock widget component, I need to analyze the code for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key issues I've identified:\\n\\n1. **Bug in isPositive/icon logic (l... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":8,"steps":[{"text":"Looking at this new file, I need to analyze it for potential issues.\n\nLet me first check the type definition for `SearchResultsResearchBlock` to understand the expected structure:","toolCalls":[{"toolName":"bash","input":{"command":"rg -n SearchResultsResearchBlock --gl... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/researcher/actions/academicSearch.ts b/src/lib/agents/search/researcher/actions/academicSearch.ts
new file mode 100644
index 000000000..72e1f4b14
--- /dev/null
+++ b/src/lib/agents/search/researcher/actions/academicSearch.ts
@@ -0,0 +1,129 @@
+import z from 'zod';
+import { ResearchAc... | [
"src/lib/agents/search/researcher/actions/academicSearch.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":8,\"steps\":[{\"text\":\"Looking at this new file, I need to analyze it for potential issues.\\n\\nLet me first check the type definition for `SearchResultsResearchBlock` to understand the expected structure:\",\"toolCalls\":[{\"toolName\":\"bash\",\"input\":{\"comman... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":8,"steps":[{"text":"Looking at this React component change, I need to analyze the state initialization pattern being used for potential hydration issues.\n\nThe code initializes state with:\n```javascript\nconst [showWeather, setShowWeather] = useState(() =>\n typeof window !== 'undefined' ... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/EmptyChat.tsx b/src/components/EmptyChat.tsx
index d9b66860b..775fc9d16 100644
--- a/src/components/EmptyChat.tsx
+++ b/src/components/EmptyChat.tsx
@@ -1,3 +1,6 @@
+'use client';
+
+import { useEffect, useState } from 'react';
import { Settings } from 'lucide-react';
import EmptyChatMessa... | [
"src/components/EmptyChat.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":8,\"steps\":[{\"text\":\"Looking at this React component change, I need to analyze the state initialization pattern being used for potential hydration issues.\\n\\nThe code initializes state with:\\n```javascript\\nconst [showWeather, setShowWeather] = useState(() =>\... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":8,"steps":[{"text":"Looking at this new `Sources.tsx` component, I need to analyze the code for potential issues.\n\nI notice two main concerns:\n1. Using array index as key when a unique identifier exists\n2. The Switch component from HeadlessUI is missing an `onChange` handler\n\nLet me ve... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/MessageInputActions/Sources.tsx b/src/components/MessageInputActions/Sources.tsx
new file mode 100644
index 000000000..2652d58e7
--- /dev/null
+++ b/src/components/MessageInputActions/Sources.tsx
@@ -0,0 +1,93 @@
+import { useChat } from '@/lib/hooks/useChat';
+import {
+ Popover,
+ Popove... | [
"src/components/MessageInputActions/Sources.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":8,\"steps\":[{\"text\":\"Looking at this new `Sources.tsx` component, I need to analyze the code for potential issues.\\n\\nI notice two main concerns:\\n1. Using array index as key when a unique identifier exists\\n2. The Switch component from HeadlessUI is missing a... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at the diff, I'll analyze the changed lines for potential issues.","toolCalls":[{"toolName":"goToDefinition","input":{"file":"src/lib/hooks/useChat.ts","symbol":"Section","line":1}},{"toolName":"goToDefinition","input":{"file":"src/lib/types.ts","symbol":"SourceBl... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx
index bbcd470a4..6d3e77c25 100644
--- a/src/components/Navbar.tsx
+++ b/src/components/Navbar.tsx
@@ -11,6 +11,7 @@ import {
} from '@headlessui/react';
import jsPDF from 'jspdf';
import { useChat, Section } from '@/lib/hooks/useChat';
+import { Sour... | [
"src/components/Navbar.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at the diff, I'll analyze the changed lines for potential issues.\",\"toolCalls\":[{\"toolName\":\"goToDefinition\",\"input\":{\"file\":\"src/lib/hooks/useChat.ts\",\"symbol\":\"Section\",\"line\":1}},{\"toolName\":\"goToDefinition\",\... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":9,"steps":[{"text":"Looking at this new React component for displaying research progress steps, I need to analyze for potential issues in the changed lines.\n\nLet me identify the key concerns:\n\n1. **useEffect dependency array** (line 72-74): The effect uses `isLast` but it's not in the de... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/components/AssistantSteps.tsx b/src/components/AssistantSteps.tsx
new file mode 100644
index 000000000..c715a9248
--- /dev/null
+++ b/src/components/AssistantSteps.tsx
@@ -0,0 +1,266 @@
+'use client';
+
+import {
+ Brain,
+ Search,
+ FileText,
+ ChevronDown,
+ ChevronUp,
+ BookSearch,
+} from 'lu... | [
"src/components/AssistantSteps.tsx"
] | [
{
"comment": "<!-- metadata:{\"confidence\":9,\"steps\":[{\"text\":\"Looking at this new React component for displaying research progress steps, I need to analyze for potential issues in the changed lines.\\n\\nLet me identify the key concerns:\\n\\n1. **useEffect dependency array** (line 72-74): The effect use... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":7,"steps":[{"text":"Looking at this new video search module, I need to analyze it for potential issues. Let me examine the patterns used in similar files to understand the expected error handling and null checking conventions.","toolCalls":[{"toolName":"bash","input":{"command":"rg -n -A 5 s... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/media/video.ts b/src/lib/agents/media/video.ts
new file mode 100644
index 000000000..c8f19b69a
--- /dev/null
+++ b/src/lib/agents/media/video.ts
@@ -0,0 +1,66 @@
+import formatChatHistoryAsString from '@/lib/utils/formatHistory';
+import { searchSearxng } from '@/lib/searxng';
+import {
+ v... | [
"src/lib/agents/media/video.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":7,\"steps\":[{\"text\":\"Looking at this new video search module, I need to analyze it for potential issues. Let me examine the patterns used in similar files to understand the expected error handling and null checking conventions.\",\"toolCalls\":[{\"toolName\":\"bas... | true | ||
ItzCrazyKns/Vane | 950 | comment_to_fix | feat: improve search architecture, write custom API classes (remove langchain), add deep research & more | <!-- metadata:{"confidence":8,"steps":[{"text":"Looking at this weather widget implementation, I'll analyze the code for potential issues.","toolCalls":[{"toolName":"think","input":{"thought":"Let me analyze the key issues in this code:\n\n1. **Schema validation issue (Line 79-80)**: The schema defines `lat` and `lon` ... | 2edef888a3472174f20f8f199649bc2e129b1e7d | 7f3f88196412ddd3a2d28e0aff13063bcadf0431 | diff --git a/src/lib/agents/search/widgets/weatherWidget.ts b/src/lib/agents/search/widgets/weatherWidget.ts
new file mode 100644
index 000000000..47393242c
--- /dev/null
+++ b/src/lib/agents/search/widgets/weatherWidget.ts
@@ -0,0 +1,203 @@
+import z from 'zod';
+import { Widget } from '../types';
+import formatChatHi... | [
"src/lib/agents/search/widgets/weatherWidget.ts"
] | [
{
"comment": "<!-- metadata:{\"confidence\":8,\"steps\":[{\"text\":\"Looking at this weather widget implementation, I'll analyze the code for potential issues.\",\"toolCalls\":[{\"toolName\":\"think\",\"input\":{\"thought\":\"Let me analyze the key issues in this code:\\n\\n1. **Schema validation issue (Line 79... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.