refactor(search): split 590-line search class into search + handler

Extract AJAX handler, generation workflow, pending retry logic, and
placeholder creation into PSA_Search_Handler (211 lines). Main class
retains search logic, caching, REST endpoint, and shortcode rendering
(300 lines). Backward-compatible proxies preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
peptiderepo
2026-04-17 02:35:17 +07:00
parent 979a5af866
commit 6480eecaa4
3 changed files with 253 additions and 331 deletions

View File

@@ -23,6 +23,7 @@ define( 'PSA_PLUGIN_FILE', __FILE__ );
require_once PSA_PLUGIN_DIR . 'includes/class-psa-config.php';
require_once PSA_PLUGIN_DIR . 'includes/class-psa-encryption.php';
require_once PSA_PLUGIN_DIR . 'includes/class-psa-post-type.php';
require_once PSA_PLUGIN_DIR . 'includes/class-psa-search-handler.php';
require_once PSA_PLUGIN_DIR . 'includes/class-psa-search.php';
require_once PSA_PLUGIN_DIR . 'includes/class-psa-cost-tracker.php';
require_once PSA_PLUGIN_DIR . 'includes/class-psa-openrouter.php';