Skip to content

Conversation

@jjroelofs
Copy link
Contributor

Summary

  • Adds ContentIntel plugin that exposes Analyze module data to the content_intel module
  • Extracts data from analyze_table theme (#rows with label/data)
  • Extracts full gauge data (caption, value, display_value, range labels/values)
  • Uses render context isolation for CLI compatibility
  • Includes normalizeKey helper for consistent machine keys

Allows AI tools to access analysis data via Drush CLI commands.

Related Issue

Closes #12

Test plan

  • Enable content_intel module
  • Run drush ci:plugins to verify analyze plugin appears
  • Run drush ci:entity node 1 --plugins=analyze --format=json to see analysis data
  • Verify gauge data includes caption, value, display_value, and all range labels

Example output

{
  "analyze_ai_brand_voice_analyzer": {
    "plugin_label": "AI Brand Voice Analysis",
    "data": {
      "caption": "AI Brand Voice Alignment",
      "value": 0.95,
      "display_value": "+0.9",
      "range_min_label": "Off-brand",
      "range_mid_label": "Neutral",
      "range_max_label": "On-brand",
      "range_min": -1,
      "range_max": 1
    }
  }
}

Jurriaan Roelofs added 3 commits January 28, 2026 11:53
- Provides ContentIntel plugin that exposes Analyze module data
- Extracts data from analyze_table theme (#rows with label/data)
- Extracts full gauge data (caption, value, display_value, range labels/values)
- Uses render context isolation for CLI compatibility
- Includes normalizeKey helper for consistent machine keys

Allows AI tools to access analysis data via Drush CLI commands:
drush ci:entity node 1 --plugins=analyze --format=json
- Add getApplicableDefinitions() method to HelperInterface
- Update Helper.php to use {@inheritdoc}
- Add phpstan.neon to exclude optional module plugins from analysis
Update run-drupal-check.sh to exclude ContentIntel plugin directory
from phpstan analysis since it depends on the optional content_intel
module. Also add treatPhpDocTypesAsCertain: false for consistency.
@jjroelofs jjroelofs merged commit 381be3c into 1.1.x Jan 28, 2026
2 checks passed
@jjroelofs jjroelofs deleted the feat/content-intel-plugin-v2 branch January 28, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Content Intel plugin for CLI access to analysis data

2 participants