Skip to content

Commit b34cf2f

Browse files
committed
fix: externalize matrix plugin
1 parent 5fdef4c commit b34cf2f

9 files changed

Lines changed: 85 additions & 7 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Docs: https://docs.openclaw.ai
5656
- Update/Windows: spawn the post-core-update child process with `stdio:"pipe"` on Windows so PowerShell/CMD console handles are not inherited, preventing the terminal from hanging after `openclaw update` completes. Fixes #78445. (#78483) Thanks @Beandon13.
5757
- Plugins/install: add `npm-pack:<path.tgz>` installs so local npm pack artifacts run through the same managed npm-root install, lockfile verification, dependency scan, and install-record path as registry npm plugins.
5858
- Channels/plugins: show configured official external channels as missing-plugin status rows and send errors with exact install/doctor repair commands after raw package-manager upgrades leave Feishu or WhatsApp uninstalled. Fixes #78702 and #78593. Thanks @MarkMa84 and @mkupiainen.
59+
- Matrix: move the Matrix channel back to an official external ClawHub/npm plugin so core installs no longer need Matrix SDK runtime dependencies.
5960
- Codex app-server: disarm the short post-tool completion watchdog after current-turn activity, expose `appServer.turnCompletionIdleTimeoutMs`, and include raw assistant item context in idle-timeout diagnostics so status-only post-tool stalls stop failing as idle. Fixes #77984. Thanks @roseware-dev and @rubencu.
6061
- Plugin skills/Windows: publish plugin-provided skill directories as junctions on Windows so standard users without Developer Mode can register plugin skills without symlink EPERM failures. Fixes #77958. (#77971) Thanks @hclsys and @jarro.
6162
- Shell env/Windows: hide the login-shell environment probe child window so gateway startup and shell-env refreshes do not flash a console on Windows. Fixes #78159. (#78266) Thanks @BradGroux.

‎docs/channels/matrix.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ It uses the official `matrix-js-sdk` and supports DMs, rooms, threads, media, re
1111

1212
## Install
1313

14-
Install Matrix before configuring the channel:
14+
Install Matrix from ClawHub before configuring the channel:
1515

1616
```bash
1717
openclaw plugins install @openclaw/matrix
1818
```
1919

20+
Bare plugin specs try ClawHub first, then npm fallback. To force the registry source, use `openclaw plugins install clawhub:@openclaw/matrix` or `openclaw plugins install npm:@openclaw/matrix`.
21+
2022
From a local checkout:
2123

2224
```bash

‎docs/plugins/plugin-inventory.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ uninstall, and publishing commands.
9090
| [litellm](/plugins/reference/litellm) | Adds LiteLLM model provider support to OpenClaw. | `@openclaw/litellm-provider`<br />included in OpenClaw | providers: litellm; contracts: imageGenerationProviders |
9191
| [llm-task](/plugins/reference/llm-task) | Generic JSON-only LLM tool for structured tasks callable from workflows. | `@openclaw/llm-task`<br />included in OpenClaw | contracts: tools |
9292
| [lmstudio](/plugins/reference/lmstudio) | Adds LM Studio model provider support to OpenClaw. | `@openclaw/lmstudio-provider`<br />included in OpenClaw | providers: lmstudio; contracts: memoryEmbeddingProviders |
93-
| [matrix](/plugins/reference/matrix) | Adds the Matrix channel surface for sending and receiving OpenClaw messages. | `@openclaw/matrix`<br />included in OpenClaw | channels: matrix |
9493
| [mattermost](/plugins/reference/mattermost) | Adds the Mattermost channel surface for sending and receiving OpenClaw messages. | `@openclaw/mattermost`<br />included in OpenClaw | channels: mattermost |
9594
| [memory-core](/plugins/reference/memory-core) | Adds memory embedding provider support. Adds agent-callable tools. | `@openclaw/memory-core`<br />included in OpenClaw | contracts: memoryEmbeddingProviders, tools |
9695
| [memory-wiki](/plugins/reference/memory-wiki) | Persistent wiki compiler and Obsidian-friendly knowledge vault for OpenClaw. | `@openclaw/memory-wiki`<br />included in OpenClaw | contracts: tools; skills |
@@ -155,6 +154,7 @@ uninstall, and publishing commands.
155154
| [googlechat](/plugins/reference/googlechat) | Adds the Google Chat channel surface for sending and receiving OpenClaw messages. | `@openclaw/googlechat`<br />npm; ClawHub | channels: googlechat |
156155
| [line](/plugins/reference/line) | Adds the LINE channel surface for sending and receiving OpenClaw messages. | `@openclaw/line`<br />npm; ClawHub | channels: line |
157156
| [lobster](/plugins/reference/lobster) | Typed workflow tool with resumable approvals. | `@openclaw/lobster`<br />npm; ClawHub | contracts: tools |
157+
| [matrix](/plugins/reference/matrix) | Adds the Matrix channel surface for sending and receiving OpenClaw messages. | `@openclaw/matrix`<br />ClawHub: `clawhub:@openclaw/matrix`; npm | channels: matrix |
158158
| [memory-lancedb](/plugins/reference/memory-lancedb) | Adds agent-callable tools. | `@openclaw/memory-lancedb`<br />npm; ClawHub | contracts: tools |
159159
| [msteams](/plugins/reference/msteams) | Adds the Microsoft Teams channel surface for sending and receiving OpenClaw messages. | `@openclaw/msteams`<br />npm; ClawHub | channels: msteams |
160160
| [nextcloud-talk](/plugins/reference/nextcloud-talk) | Adds the Nextcloud Talk channel surface for sending and receiving OpenClaw messages. | `@openclaw/nextcloud-talk`<br />npm; ClawHub | channels: nextcloud-talk |

‎docs/plugins/reference.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pnpm plugins:inventory:gen
6969
| [llm-task](/plugins/reference/llm-task) | Generic JSON-only LLM tool for structured tasks callable from workflows. | `@openclaw/llm-task`<br />included in OpenClaw | contracts: tools |
7070
| [lmstudio](/plugins/reference/lmstudio) | Adds LM Studio model provider support to OpenClaw. | `@openclaw/lmstudio-provider`<br />included in OpenClaw | providers: lmstudio; contracts: memoryEmbeddingProviders |
7171
| [lobster](/plugins/reference/lobster) | Typed workflow tool with resumable approvals. | `@openclaw/lobster`<br />npm; ClawHub | contracts: tools |
72-
| [matrix](/plugins/reference/matrix) | Adds the Matrix channel surface for sending and receiving OpenClaw messages. | `@openclaw/matrix`<br />included in OpenClaw | channels: matrix |
72+
| [matrix](/plugins/reference/matrix) | Adds the Matrix channel surface for sending and receiving OpenClaw messages. | `@openclaw/matrix`<br />ClawHub: `clawhub:@openclaw/matrix`; npm | channels: matrix |
7373
| [mattermost](/plugins/reference/mattermost) | Adds the Mattermost channel surface for sending and receiving OpenClaw messages. | `@openclaw/mattermost`<br />included in OpenClaw | channels: mattermost |
7474
| [memory-core](/plugins/reference/memory-core) | Adds memory embedding provider support. Adds agent-callable tools. | `@openclaw/memory-core`<br />included in OpenClaw | contracts: memoryEmbeddingProviders, tools |
7575
| [memory-lancedb](/plugins/reference/memory-lancedb) | Adds agent-callable tools. | `@openclaw/memory-lancedb`<br />npm; ClawHub | contracts: tools |

‎docs/plugins/reference/matrix.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Adds the Matrix channel surface for sending and receiving OpenClaw messages.
1212
## Distribution
1313

1414
- Package: `@openclaw/matrix`
15-
- Install route: included in OpenClaw
15+
- Install route: ClawHub: `clawhub:@openclaw/matrix`; npm
1616

1717
## Surface
1818

‎extensions/matrix/package.json‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,21 @@
7979
}
8080
},
8181
"install": {
82-
"minHostVersion": ">=2026.4.10"
82+
"clawhubSpec": "clawhub:@openclaw/matrix",
83+
"npmSpec": "@openclaw/matrix",
84+
"defaultChoice": "clawhub",
85+
"minHostVersion": ">=2026.4.10",
86+
"allowInvalidConfigRecovery": true
87+
},
88+
"compat": {
89+
"pluginApi": ">=2026.5.6"
90+
},
91+
"build": {
92+
"openclawVersion": "2026.5.6"
93+
},
94+
"release": {
95+
"publishToClawHub": true,
96+
"publishToNpm": true
8397
}
8498
}
8599
}

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"!dist/extensions/line/**",
4646
"!dist/extensions/lobster/**",
4747
"!dist/extensions/memory-lancedb/**",
48+
"!dist/extensions/matrix/**",
4849
"!dist/extensions/msteams/**",
4950
"!dist/extensions/nextcloud-talk/**",
5051
"!dist/extensions/nostr/**",

‎scripts/lib/official-external-channel-catalog.json‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,59 @@
246246
}
247247
}
248248
},
249+
{
250+
"name": "@openclaw/matrix",
251+
"description": "OpenClaw Matrix channel plugin",
252+
"source": "official",
253+
"kind": "channel",
254+
"openclaw": {
255+
"channel": {
256+
"id": "matrix",
257+
"label": "Matrix",
258+
"selectionLabel": "Matrix (plugin)",
259+
"docsPath": "/channels/matrix",
260+
"docsLabel": "matrix",
261+
"blurb": "open protocol; install the plugin to enable.",
262+
"order": 70,
263+
"quickstartAllowFrom": true,
264+
"doctorCapabilities": {
265+
"dmAllowFromMode": "nestedOnly",
266+
"groupModel": "sender",
267+
"groupAllowFromFallbackToAllowFrom": false,
268+
"warnOnEmptyGroupSenderAllowlist": true
269+
},
270+
"cliAddOptions": [
271+
{
272+
"flags": "--homeserver <url>",
273+
"description": "Matrix homeserver URL"
274+
},
275+
{
276+
"flags": "--user-id <id>",
277+
"description": "Matrix user ID"
278+
},
279+
{
280+
"flags": "--access-token <token>",
281+
"description": "Matrix access token"
282+
},
283+
{
284+
"flags": "--device-name <name>",
285+
"description": "Matrix device name"
286+
},
287+
{
288+
"flags": "--initial-sync-limit <n>",
289+
"description": "Matrix initial sync limit"
290+
}
291+
]
292+
},
293+
"install": {
294+
"clawhubSpec": "clawhub:@openclaw/matrix",
295+
"npmSpec": "@openclaw/matrix",
296+
"defaultChoice": "clawhub",
297+
"minHostVersion": ">=2026.4.10",
298+
"allowInvalidConfigRecovery": true
299+
}
300+
}
301+
},
249302
{
250303
"name": "@openclaw/msteams",
251304
"description": "OpenClaw Microsoft Teams channel plugin",

‎src/plugins/official-external-plugin-catalog.test.ts‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("official external plugin catalog", () => {
4444
);
4545
});
4646

47-
it("keeps Matrix and Mattermost out of the external catalog until cutover", () => {
47+
it("lists Matrix as an official external ClawHub channel after cutover", () => {
4848
const ids = new Set<string>();
4949
for (const entry of listOfficialExternalPluginCatalogEntries()) {
5050
const pluginId = resolveOfficialExternalPluginId(entry);
@@ -53,7 +53,14 @@ describe("official external plugin catalog", () => {
5353
}
5454
}
5555

56-
expect(ids.has("matrix")).toBe(false);
56+
expect(ids.has("matrix")).toBe(true);
5757
expect(ids.has("mattermost")).toBe(false);
58+
expect(resolveOfficialExternalPluginInstall(expectCatalogEntry("matrix"))).toEqual(
59+
expect.objectContaining({
60+
clawhubSpec: "clawhub:@openclaw/matrix",
61+
npmSpec: "@openclaw/matrix",
62+
defaultChoice: "clawhub",
63+
}),
64+
);
5865
});
5966
});

0 commit comments

Comments
 (0)