refactor: убрать мёртвый API и сентинель-исключение

- удалены неиспользуемые ToolRegistry::all(), FileSandbox::root(),
  ChatResult::\ (вместе с параметром конструктора)
- HttpRequestTool: allowPrivate больше не свойство, только параметр
- FileWalker возвращает bool: колбэк возвращает false, чтобы остановить
  обход; из search_files и find_files убраны throw/catch '__limit__'
- добавлены тесты лимита для search_files и find_files
- 102 теста
This commit is contained in:
rsgrinko committed 2026-11-12 23:29:51 +03:00
1 parent 27c0fc2477
commit 6734ca5289
9 files changed
+72 -66

No files matched your search

+2 -1
View File
@@ -38,7 +38,7 @@ final class HttpRequestTool implements Tool
*/
public function __construct(
array $auth = [],
private readonly bool $allowPrivate = false,
bool $allowPrivate = false,
private readonly int $defaultChars = 4000,
) {
$normalized = [];
@@ -227,3 +227,4 @@ final class HttpRequestTool implements Tool
}