@openclaw/matrix 2026.2.13 → 2026.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.2.14
4
+
5
+ ### Changes
6
+
7
+ - Version alignment with core OpenClaw release numbers.
8
+
3
9
  ## 2026.2.13
4
10
 
5
11
  ### Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/matrix",
3
- "version": "2026.2.13",
3
+ "version": "2026.2.14",
4
4
  "description": "OpenClaw Matrix channel plugin",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk";
1
+ import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
2
2
  import type { CoreConfig, MatrixConfig } from "../types.js";
3
3
  import { resolveMatrixConfigForAccount } from "./client.js";
4
4
  import { credentialsMatchConfig, loadMatrixCredentials } from "./credentials.js";
@@ -1,4 +1,4 @@
1
- import { normalizeAccountId } from "openclaw/plugin-sdk";
1
+ import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
2
2
  import type { CoreConfig } from "../../types.js";
3
3
  import type { MatrixActionClient, MatrixActionClientOpts } from "./types.js";
4
4
  import { getMatrixRuntime } from "../../runtime.js";
@@ -1,5 +1,5 @@
1
1
  import type { MatrixClient } from "@vector-im/matrix-bot-sdk";
2
- import { normalizeAccountId } from "openclaw/plugin-sdk";
2
+ import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
3
3
 
4
4
  // Support multiple active clients for multi-account
5
5
  const activeClients = new Map<string, MatrixClient>();
@@ -1,5 +1,5 @@
1
1
  import { MatrixClient } from "@vector-im/matrix-bot-sdk";
2
- import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk";
2
+ import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
3
3
  import type { CoreConfig } from "../../types.js";
4
4
  import type { MatrixAuth, MatrixResolvedConfig } from "./types.js";
5
5
  import { getMatrixRuntime } from "../../runtime.js";
@@ -1,6 +1,6 @@
1
1
  import type { MatrixClient } from "@vector-im/matrix-bot-sdk";
2
2
  import { LogService } from "@vector-im/matrix-bot-sdk";
3
- import { normalizeAccountId } from "openclaw/plugin-sdk";
3
+ import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
4
4
  import type { CoreConfig } from "../../types.js";
5
5
  import type { MatrixAuth } from "./types.js";
6
6
  import { resolveMatrixAuth } from "./config.js";
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import os from "node:os";
3
3
  import path from "node:path";
4
- import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk";
4
+ import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
5
5
  import { getMatrixRuntime } from "../runtime.js";
6
6
 
7
7
  export type MatrixStoredCredentials = {
@@ -1,5 +1,5 @@
1
1
  import type { MatrixClient } from "@vector-im/matrix-bot-sdk";
2
- import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk";
2
+ import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
3
3
  import type { CoreConfig } from "../../types.js";
4
4
  import { getMatrixRuntime } from "../../runtime.js";
5
5
  import { getActiveMatrixClient, getAnyActiveMatrixClient } from "../active-client.js";
@@ -2,6 +2,12 @@ import type { PluginRuntime } from "openclaw/plugin-sdk";
2
2
  import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
3
3
  import { setMatrixRuntime } from "../runtime.js";
4
4
 
5
+ vi.mock("music-metadata", () => ({
6
+ // `resolveMediaDurationMs` lazily imports `music-metadata`; in tests we don't
7
+ // need real duration parsing and the real module is expensive to load.
8
+ parseBuffer: vi.fn().mockResolvedValue({ format: {} }),
9
+ }));
10
+
5
11
  vi.mock("@vector-im/matrix-bot-sdk", () => ({
6
12
  ConsoleLogger: class {
7
13
  trace = vi.fn();
@@ -65,12 +71,12 @@ const makeClient = () => {
65
71
  return { client, sendMessage, uploadContent };
66
72
  };
67
73
 
68
- describe("sendMessageMatrix media", () => {
69
- beforeAll(async () => {
70
- setMatrixRuntime(runtimeStub);
71
- ({ sendMessageMatrix } = await import("./send.js"));
72
- });
74
+ beforeAll(async () => {
75
+ setMatrixRuntime(runtimeStub);
76
+ ({ sendMessageMatrix } = await import("./send.js"));
77
+ });
73
78
 
79
+ describe("sendMessageMatrix media", () => {
74
80
  beforeEach(() => {
75
81
  vi.clearAllMocks();
76
82
  mediaKindFromMimeMock.mockReturnValue("image");
@@ -200,11 +206,6 @@ describe("sendMessageMatrix media", () => {
200
206
  });
201
207
 
202
208
  describe("sendMessageMatrix threads", () => {
203
- beforeAll(async () => {
204
- setMatrixRuntime(runtimeStub);
205
- ({ sendMessageMatrix } = await import("./send.js"));
206
- });
207
-
208
209
  beforeEach(() => {
209
210
  vi.clearAllMocks();
210
211
  setMatrixRuntime(runtimeStub);