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
18 lines
299 B
PHP
18 lines
299 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum AiFeature: string
|
|
{
|
|
case Extraction = 'extraction';
|
|
case Healing = 'healing';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Extraction => 'Extraction',
|
|
self::Healing => 'Healing',
|
|
};
|
|
}
|
|
}
|