feat: migrate ability categories for pipeline tool scoping#201
Merged
Conversation
Follows the pattern established in data-machine core PR #1052 which removed the flat 'datamachine' category in favor of 18 subcategories. Changes: - Add AbilityCategories.php with 4 categories (events, venues, testing, settings) - Update all 20 ability files (31 category references) from 'datamachine' to appropriate 'datamachine-events/*' subcategories - Add ability metadata to all 9 chat tools for category-based tool scoping - Wire category registration into plugin bootstrap before ability loading
Contributor
Homeboy Results —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
'datamachine'category to 4 semantic subcategories under thedatamachine-events/namespaceabilitymetadata to all 9 chat tools for category-based tool scopingAbilityCategories.phpcentralizes category registrationContext
Data Machine core PR #1052 split the flat
datamachinecategory into 18 subcategories and removed the old single category registration. This left alldata-machine-eventsabilities orphaned — their'category' => 'datamachine'pointed to a category that no longer existed.Categories
datamachine-events/eventsdatamachine-events/venuesdatamachine-events/testingdatamachine-events/settingsFiles Changed (32)
inc/Abilities/AbilityCategories.php— category registration with constantsdata-machine-events.php— wireensure_registered()before ability loadingabilitymetadata toregisterTool()callsBackward Compatible
No pipeline or chat behavior changes. Category-based tool filtering only activates when a pipeline explicitly declares
tool_categories.