feat: add opik instrumentation to image and content pipeline

- Add optional $trace_context parameter to PRAutoBlogger_Image_Prompt_Builder
- Wrap LLM call in image_prompt_rewrite span when trace context available
- Pass trace context through from image pipeline
- Add $eval_mode parameter to content generator generate() method
- Define PRAUTOBLOGGER_EVAL_MODE constant to suppress side effects
- Add generate_eval() convenience method
- Register WP-CLI hook in main orchestrator
- Bump version to 0.13.0
This commit is contained in:
peptiderepo
2026-04-24 04:25:31 +00:00
parent 50ae7ca530
commit 575d0b97b9
4 changed files with 27 additions and 6 deletions

View File

@@ -55,6 +55,7 @@ class PRAutoBlogger {
$this->register_cron_hooks();
$this->register_frontend_hooks();
$this->register_ajax_hooks();
$this->register_cli_hooks();
/** Fires after PRAutoBlogger has finished registering all hooks. */
do_action( 'prautoblogger_loaded' );
@@ -301,7 +302,12 @@ class PRAutoBlogger {
* @param object $transient The update_plugins transient data.
* @return object Modified transient.
*/
public function filter_block_false_updates( $transient ) {
/** Register WP-CLI commands. */
private function register_cli_hooks(): void {
PRAutoBlogger_WP_CLI_Commands::register();
}
public function filter_block_false_updates( $transient ) {
if ( isset( $transient->response[ PRAUTOBLOGGER_PLUGIN_BASENAME ] ) ) {
unset( $transient->response[ PRAUTOBLOGGER_PLUGIN_BASENAME ] );
}