<?php
/**
 * Meta Generator Module.
 *
 * Adds an editor panel that drafts an SEO meta title + description with AI,
 * for you to copy into Yoast (or wherever). It never outputs meta tags itself,
 * so it cannot clash with Yoast — but it ships DISABLED by default so it only
 * appears once you switch it on in the Modules screen.
 *
 * @package Platform\Helm\Modules\Meta_Gen
 */

declare( strict_types = 1 );

namespace Platform\Helm\Modules\Meta_Gen;

use Platform\Helm\Contracts\ModuleInterface;
use Platform\Helm\Core\Assets;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

final class MetaGenModule implements ModuleInterface {

	private MetaGenMetaBox $meta_box;

	public function __construct( Assets $assets ) {
		unset( $assets ); // Uses inline script; no asset bundle.
		$this->meta_box = new MetaGenMetaBox();
	}

	public function id(): string {
		return 'meta_gen';
	}

	public function name(): string {
		return __( 'AI Meta Generator', 'platform-helm' );
	}

	public function description(): string {
		return __( 'Drafts an SEO meta title + description with AI for you to copy into Yoast. Suggestion-only — never writes meta tags, so it cannot conflict with Yoast. Off by default; turn on if you want it.', 'platform-helm' );
	}

	public function default_enabled(): bool {
		return false;
	}

	public function boot(): void {
		$this->meta_box->register_hooks();
	}
}
