Skip to content

Add MyClaw personal analytics platform integration#46

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/restart-openclaw-integration
Draft

Add MyClaw personal analytics platform integration#46
Copilot wants to merge 2 commits intomainfrom
copilot/restart-openclaw-integration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 11, 2026

Description

Adds MyClaw as a new platform integration to support users running OpenClaw alongside MyClaw. MyClaw is a personal analytics platform with dashboard widgets and private data insights.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)

Related Issue(s)

Changes Made

  • src/myclaw.js — New MyClaw client class: sendEvent, sendPrediction, updateDashboard, getAnalytics, internal _request handler
  • src/index.js — Export MyClaw alongside existing integrations
  • backend/src/models/Integration.js — Add 'myclaw' to platform ENUM
  • backend/src/routes/integrations.js — Add 'myclaw' to platform validation isIn list
  • backend/src/controllers/integrationsController.js — Add MyClaw entry to getPlatforms() and 'myclaw' case in formatPredictionForPlatform()
  • tests/myclaw.test.js — 14 unit tests covering all public methods
  • examples/integrations-example.js — Add createMyClawIntegration() example
  • INTEGRATIONS.md — Document MyClaw as platform Implement comprehensive AI-Time-Machines framework with enhanced component integration #7
  • .env.example — Add MYCLAW_API_KEY (and missing OPENCLAW_API_KEY)

Example client usage:

const { MyClaw } = require('./src');

const client = new MyClaw(process.env.MYCLAW_API_KEY);
await client.sendPrediction(prediction);
await client.updateDashboard('widget-id', { title: 'Forecast' });
await client.getAnalytics({ startDate: '2026-01-01', metrics: ['accuracy'] });

Testing

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

Screenshots (if applicable)

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 same pattern as the existing OpenClaw client. The 'myclaw' platform value is now accepted consistently across the model ENUM, route validation, controller logic, and documentation.

Agent-Logs-Url: https://github.com/lippytm/AI-Time-Machines/sessions/636ede35-17ff-4d76-916e-1b2b66883801

Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
Copilot AI changed the title [WIP] Update OpenClaw integration with MyClaw Add MyClaw personal analytics platform integration Apr 11, 2026
Copilot AI requested a review from lippytm April 11, 2026 18:26
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