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:
@@ -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 ] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user