second step

This commit is contained in:
team2
2026-04-29 20:55:21 +02:00
parent a460eee429
commit d099457534
11 changed files with 212 additions and 110 deletions

View File

@@ -32,6 +32,7 @@ final class ContextService
public function __construct(
string $historyDir,
string $projectDir,
private readonly ContextServiceConfig $config,
)
{
/**
@@ -73,8 +74,8 @@ final class ContextService
}
$maxLines = $full
? ContextServiceConfig::MAX_FULL_LINES
: ContextServiceConfig::MAX_VISIBLE_REGULAR_LINES;
? $this->config->getMaxFullLines()
: $this->config->getMaxVisibleRegularLines();
$selected = array_slice($lines, -$maxLines);