mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
Add AiConfigHealer to bootstrap or repair a store config via a tool-using structured agent (fetch/css/regex tools, HealingContext, shared StrategyExtractor). - Run healing before the one-shot enhancer; AI-bootstrap a store config when product create would otherwise fail; StoreUrl validation defers to self-healing when enabled - Per-feature AI provider resolution (AiFeature enum) and settings - Per-store self-healing opt-out plus cooldown; log heal attempts and unusable proposals - Heal with AI action with non-persisting preview/apply/discard in the store test modal; prompt switches to browser scraping when blocked
22 lines
555 B
PHP
22 lines
555 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Enums;
|
|
|
|
use App\Enums\AiFeature;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class AiFeatureTest extends TestCase
|
|
{
|
|
public function test_cases_have_string_values(): void
|
|
{
|
|
$this->assertSame('extraction', AiFeature::Extraction->value);
|
|
$this->assertSame('healing', AiFeature::Healing->value);
|
|
}
|
|
|
|
public function test_each_case_has_a_human_label(): void
|
|
{
|
|
$this->assertSame('Extraction', AiFeature::Extraction->label());
|
|
$this->assertSame('Healing', AiFeature::Healing->label());
|
|
}
|
|
}
|