Skip to content

Added all rocket chat rest api's and plugin core#4

Draft
dodaa08 wants to merge 1 commit into
RocketChat:mainfrom
dodaa08:feat-Inbound-8June
Draft

Added all rocket chat rest api's and plugin core#4
dodaa08 wants to merge 1 commit into
RocketChat:mainfrom
dodaa08:feat-Inbound-8June

Conversation

@dodaa08

@dodaa08 dodaa08 commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Rocket.Chat channel plugin rewrite REST client + OpenClaw plugin core.

Changes

File What
src/client.ts Full RC REST API client — postMessage, listRooms, syncMessages, subscriptions, threads, file upload/download, rate-limit handling
src/plugin.ts Channel plugin — multi-account resolveAccount/listAccountIds, outbound sendText, startGateway lifecycle (abortSignal)
src/config.ts Zod-validated multi-account schema (token/password auth, polling transport, env var substitution)
src/index.ts Clean register/activate pattern; removed inline webhook handler
openclaw.plugin.json Channel manifest with multi-account JSON Schema, kind: "channel"
types/types.ts Consolidated type definitions
package.json Added zod dep, entry → ./src/index.ts

Verification

  • Outbound: POST /tools/invokesendText → message delivered to GENERAL
  • Registration: openclaw channels status shows Rocket.Chat main: enabled, configured, running
  • Config: Zod schema validates multi-account config with env var interpolation

Remaining

  • Inbound polling (next PR)
  • Clean up stale npm-installed plugin entry from global manifest (cosmetic warning)

@dodaa08 dodaa08 marked this pull request as draft June 7, 2026 18:49
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