- Modified shared.ts to maintain a Map of clients per accountId - Each account gets its own Matrix client instance - Backwards compatible with single-account usage - resolveMatrixAuth now accepts accountId parameter - stopSharedClient can stop specific or all accounts Files changed: - src/matrix/client/shared.ts (main changes) - src/matrix/client/config.ts (accountId support) - src/matrix/accounts.ts (list enabled accounts) - src/matrix/monitor/index.ts (pass accountId) - src/types.ts (accounts config type)
36 lines
892 B
JSON
36 lines
892 B
JSON
{
|
|
"name": "@openclaw/matrix",
|
|
"version": "2026.1.29",
|
|
"type": "module",
|
|
"description": "OpenClaw Matrix channel plugin",
|
|
"openclaw": {
|
|
"extensions": [
|
|
"./index.ts"
|
|
],
|
|
"channel": {
|
|
"id": "matrix",
|
|
"label": "Matrix",
|
|
"selectionLabel": "Matrix (plugin)",
|
|
"docsPath": "/channels/matrix",
|
|
"docsLabel": "matrix",
|
|
"blurb": "open protocol; install the plugin to enable.",
|
|
"order": 70,
|
|
"quickstartAllowFrom": true
|
|
},
|
|
"install": {
|
|
"npmSpec": "@openclaw/matrix",
|
|
"localPath": "extensions/matrix",
|
|
"defaultChoice": "npm"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@matrix-org/matrix-sdk-crypto-nodejs": "^0.4.0",
|
|
"@vector-im/matrix-bot-sdk": "0.8.0-element.3",
|
|
"markdown-it": "14.1.0",
|
|
"music-metadata": "^11.10.6",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|