Skip to content

Fix issues with OpenClaw and MyClaw integrations#47

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-openclaw-myclaw-issues
Draft

Fix issues with OpenClaw and MyClaw integrations#47
Copilot wants to merge 2 commits intomainfrom
copilot/fix-openclaw-myclaw-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 11, 2026

Description

OpenClaw tests were failing due to missing node_modules and OPENCLAW_API_KEY absent from .env.example. MyClaw integration was entirely missing from the codebase.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📚 Documentation update
  • 🧪 Test updates

Related Issue(s)

Changes Made

OpenClaw fixes:

  • Added OPENCLAW_API_KEY to .env.example

MyClaw — new integration (src/myclaw.js):

  • sendNotification(channel, message) — multi-channel alerts (email/SMS/push)
  • sendPredictionAlert(prediction, channel) — formatted prediction notifications
  • upsertWidget(widgetId, data) — create/update dashboard widgets (POST vs PUT based on widgetId)
  • syncPredictionToDashboard(prediction, dashboardId) — push prediction data to a named dashboard
  • Shared _request HTTP/HTTPS transport mirroring OpenClaw pattern

Wiring:

  • src/index.js — exports MyClaw
  • backend/src/models/Integration.js'myclaw' added to platform ENUM
  • backend/src/controllers/integrationsController.js — MyClaw entry in getPlatforms and formatPredictionForPlatform
  • INTEGRATIONS.md — MyClaw documented as section 7; supported export formats updated

Testing

  • Unit tests pass
  • Integration tests pass
  • Manual testing completed
  • No breaking changes

13 new tests in tests/myclaw.test.js cover constructor validation, all public methods, error handling, and non-JSON responses. All 73 root-level tests pass.

Screenshots (if applicable)

N/A

Checklist

  • My code follows the code style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Context

MyClaw follows the identical structural pattern as openclaw.js — same HTTP transport, same source/version headers, same error wrapping conventions.

Copilot AI changed the title [WIP] Fix issues with OpenClaw and MyClaw Fix issues with OpenClaw and MyClaw integrations Apr 11, 2026
Copilot AI requested a review from lippytm April 11, 2026 18:35
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.

2 participants