Skip to content

fix: update registerTool() calls for Data Machine 0.39.0 compatibility#75

Merged
chubes4 merged 1 commit intomainfrom
fix/register-tool-dm-039-compat
Mar 9, 2026
Merged

fix: update registerTool() calls for Data Machine 0.39.0 compatibility#75
chubes4 merged 1 commit intomainfrom
fix/register-tool-dm-039-compat

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 9, 2026

Summary

  • Updates all 8 chat tools in inc/Api/Chat/Tools/ to use the new BaseTool::registerTool() signature from Data Machine 0.39.0
  • Old: registerTool(string $context, string $toolName, callable $toolDefinition)
  • New: registerTool(string $toolName, callable|array $toolDefinition, array $contexts = [])

Files Changed

Tool Status
EventHealthCheck
FindBrokenTimezoneEvents
FixEventTimezone
GetVenueEvents
TestEventScraper
UpdateEvent
UpdateVenue
VenueHealthCheck

All 8 files pass php -l syntax check. Mirrors the same fix applied to data-machine-socials in PR #54.

BaseTool::registerTool() signature changed from (context, name, callback)
to (name, callback, contexts[]) in DM 0.39.0. Updates all 8 chat tools.
@chubes4 chubes4 merged commit e79d62c into main Mar 9, 2026
1 of 2 checks passed
@chubes4 chubes4 deleted the fix/register-tool-dm-039-compat branch March 9, 2026 14:21
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.

1 participant