Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions inc/Abilities/AbilityCategories.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class AbilityCategories {
/**
* Category slug constants for use in ability registrations.
*/
public const EVENTS = 'datamachine-events/events';
public const VENUES = 'datamachine-events/venues';
public const TESTING = 'datamachine-events/testing';
public const SETTINGS = 'datamachine-events/settings';
public const EVENTS = 'datamachine-events-events';
public const VENUES = 'datamachine-events-venues';
public const TESTING = 'datamachine-events-testing';
public const SETTINGS = 'datamachine-events-settings';

private static bool $registered = false;

Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/BatchTimeFixAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Batch Time Fix', 'data-machine-events' ),
'description' => __( 'Batch fix event times with offset correction or explicit replacement', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'required' => array( 'venue' ),
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/CalendarAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Get Calendar Page', 'data-machine-events' ),
'description' => __( 'Query paginated calendar events with optional filtering and HTML rendering', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/DiceFmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct() {
array(
'label' => __( 'Test Dice FM', 'data-machine-events' ),
'description' => __( 'Test Dice FM API handler with raw response data', 'data-machine-events' ),
'category' => 'datamachine-events/testing',
'category' => 'datamachine-events-testing',
'input_schema' => array(
'type' => 'object',
'required' => array( 'city' ),
Expand Down
4 changes: 2 additions & 2 deletions inc/Abilities/DuplicateDetectionAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private function registerVenuesMatchAbility(): void {
array(
'label' => __( 'Venues Match', 'data-machine-events' ),
'description' => __( 'Compare two venue names for semantic equivalence. Handles HTML entities, parenthetical stage names, dash-separated qualifiers, and article removal.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'required' => array( 'venue1', 'venue2' ),
Expand Down Expand Up @@ -198,7 +198,7 @@ private function registerFindDuplicateEventAbility(): void {
array(
'label' => __( 'Find Duplicate Event', 'data-machine-events' ),
'description' => __( 'Search for an existing event that matches the given title, venue, and date using fuzzy matching. Returns the matching post ID or null.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'required' => array( 'title', 'startDate' ),
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/EncodingFixAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Fix Encoding', 'data-machine-events' ),
'description' => __( 'Fix Unicode encoding issues in event block attributes', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/EventDateQueryAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function registerAbilities(): void {
array(
'label' => __( 'Query Events', 'data-machine-events' ),
'description' => __( 'Query events filtered by date scope, taxonomy, geo, and search. The single primitive for all event date queries.', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/EventHealthAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Event Health Check', 'data-machine-events' ),
'description' => __( 'Scan events for data quality issues', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/EventQualityAuditAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Event Quality Audit', 'data-machine-events' ),
'description' => __( 'Unified event quality audit with flow-aware diagnostics.', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/EventQueryAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Get Venue Events', 'data-machine-events' ),
'description' => __( 'Query events for a specific venue', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'required' => array( 'venue' ),
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/EventScraperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct() {
array(
'label' => __( 'Test Event Scraper', 'data-machine-events' ),
'description' => __( 'Test universal web scraper compatibility with a target URL', 'data-machine-events' ),
'category' => 'datamachine-events/testing',
'category' => 'datamachine-events-testing',
'input_schema' => array(
'type' => 'object',
'required' => array( 'target_url' ),
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/EventUpdateAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Update Event', 'data-machine-events' ),
'description' => __( 'Update event details including dates, times, venue, and metadata', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/FilterAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private function registerAbilities(): void {
array(
'label' => __( 'Get Filter Options', 'data-machine-events' ),
'description' => __( 'Get available taxonomy filter options with event counts, supporting geo-filtering, cross-filtering, and archive context', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
8 changes: 4 additions & 4 deletions inc/Abilities/GeocodingAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function registerGeocodeAddressAbility(): void {
array(
'label' => __( 'Geocode Address', 'data-machine-events' ),
'description' => __( 'Geocode an address string to lat/lng coordinates via OpenStreetMap Nominatim. Results are cached for 30 days.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'required' => array( 'query' ),
Expand Down Expand Up @@ -160,7 +160,7 @@ private function registerGeocodeSearchAbility(): void {
array(
'label' => __( 'Geocode Search', 'data-machine-events' ),
'description' => __( 'Search for addresses via Nominatim and return multiple results with full address details. Used for autocomplete UIs.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'required' => array( 'query' ),
Expand Down Expand Up @@ -271,7 +271,7 @@ private function registerGeocodeVenuesAbility(): void {
array(
'label' => __( 'Geocode Venues', 'data-machine-events' ),
'description' => __( 'Batch geocode venues that have an address but are missing coordinates. Respects Nominatim rate limits.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down Expand Up @@ -453,7 +453,7 @@ private function registerAuditVenuesAbility(): void {
array(
'label' => __( 'Audit Venues', 'data-machine-events' ),
'description' => __( 'Audit venue data quality: geocoding coverage, missing addresses, missing timezones. Returns a comprehensive data quality report.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
4 changes: 2 additions & 2 deletions inc/Abilities/MetaSyncAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private function registerAbilities(): void {
array(
'label' => __( 'Find Missing Meta Sync', 'data-machine-events' ),
'description' => __( 'Detect events where block has data but meta sync failed', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down Expand Up @@ -82,7 +82,7 @@ private function registerAbilities(): void {
array(
'label' => __( 'Resync Event Meta', 'data-machine-events' ),
'description' => __( 'Re-trigger meta sync for specified events', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
4 changes: 2 additions & 2 deletions inc/Abilities/SettingsAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private function registerGetSettingsAbility(): void {
array(
'label' => __( 'Get Settings', 'data-machine-events' ),
'description' => __( 'Read plugin settings. Returns all settings or a specific key.', 'data-machine-events' ),
'category' => 'datamachine-events/settings',
'category' => 'datamachine-events-settings',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down Expand Up @@ -139,7 +139,7 @@ private function registerUpdateSettingAbility(): void {
array(
'label' => __( 'Update Setting', 'data-machine-events' ),
'description' => __( 'Update a single plugin setting. Validates and sanitizes the value.', 'data-machine-events' ),
'category' => 'datamachine-events/settings',
'category' => 'datamachine-events-settings',
'input_schema' => array(
'type' => 'object',
'required' => array( 'key', 'value' ),
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/TicketUrlResyncAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Resync Ticket URLs', 'data-machine-events' ),
'description' => __( 'Re-normalize ticket URL meta from block content', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/TicketmasterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct() {
array(
'label' => __( 'Test Ticketmaster', 'data-machine-events' ),
'description' => __( 'Test Ticketmaster API handler with raw response data', 'data-machine-events' ),
'category' => 'datamachine-events/testing',
'category' => 'datamachine-events-testing',
'input_schema' => array(
'type' => 'object',
'required' => array( 'classification_type' ),
Expand Down
4 changes: 2 additions & 2 deletions inc/Abilities/TimezoneAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Find Events with Missing Timezone', 'data-machine-events' ),
'description' => __( 'Find events where venue has no timezone or coordinates', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'required' => array(),
Expand Down Expand Up @@ -112,7 +112,7 @@ private function registerAbility(): void {
array(
'label' => __( 'Fix Event Timezone', 'data-machine-events' ),
'description' => __( 'Update venue timezone with geocoding support. Supports batch updates with inline errors.', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'required' => array(),
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/UpcomingCountAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function registerAbilities(): void {
array(
'label' => __( 'Get Upcoming Event Counts', 'data-machine-events' ),
'description' => __( 'Count upcoming events grouped by taxonomy term. Returns terms sorted by event count descending.', 'data-machine-events' ),
'category' => 'datamachine-events/events',
'category' => 'datamachine-events-events',
'input_schema' => array(
'type' => 'object',
'required' => array( 'taxonomy' ),
Expand Down
8 changes: 4 additions & 4 deletions inc/Abilities/VenueAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function registerHealthCheckAbility(): void {
array(
'label' => __( 'Venue Health Check', 'data-machine-events' ),
'description' => __( 'Scan venues for data quality issues: missing address, coordinates, timezone, or website. Also detects suspicious websites where a ticket URL was mistakenly stored as venue website.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down Expand Up @@ -148,7 +148,7 @@ private function registerUpdateVenueAbility(): void {
array(
'label' => __( 'Update Venue', 'data-machine-events' ),
'description' => __( 'Update a venue name and/or meta fields. Address changes trigger automatic geocoding.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'required' => array( 'venue' ),
Expand Down Expand Up @@ -233,7 +233,7 @@ private function registerGetVenueAbility(): void {
array(
'label' => __( 'Get Venue', 'data-machine-events' ),
'description' => __( 'Get venue details by term ID', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'required' => array( 'id' ),
Expand Down Expand Up @@ -279,7 +279,7 @@ private function registerCheckDuplicateAbility(): void {
array(
'label' => __( 'Check Duplicate Venue', 'data-machine-events' ),
'description' => __( 'Check if a venue with the given name already exists', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'required' => array( 'name' ),
Expand Down
2 changes: 1 addition & 1 deletion inc/Abilities/VenueMapAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private function registerListVenuesAbility(): void {
array(
'label' => __( 'List Venues', 'data-machine-events' ),
'description' => __( 'List venues with coordinates for map rendering. Supports geo proximity and viewport bounds filtering.', 'data-machine-events' ),
'category' => 'datamachine-events/venues',
'category' => 'datamachine-events-venues',
'input_schema' => array(
'type' => 'object',
'properties' => array(
Expand Down
Loading