@openclaw/matrix 2026.8.33 → 2026.8.34

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.
@@ -1,8 +1,8 @@
1
1
  import { i as resolveMatrixAccount } from "./accounts-BJ6ECCac.mjs";
2
- import { C as shouldHandleMatrixApprovalRequest, S as isMatrixAnyApprovalClientEnabled } from "./channel-Q_N83Wwa.mjs";
2
+ import { C as shouldHandleMatrixApprovalRequest, S as isMatrixAnyApprovalClientEnabled } from "./channel-kJSxq14c.mjs";
3
3
  import { o as resolveMatrixTargetIdentity } from "./target-ids-Nwx7cMVE.mjs";
4
4
  import { C as repairMatrixDirectRooms, a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-SmBzUhD-.mjs";
5
- import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-D5eegob9.mjs";
5
+ import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-BlnA05wW.mjs";
6
6
  import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-C3v-jkaN.mjs";
7
7
  import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
8
8
  import { normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -196,7 +196,11 @@ function buildMarkdownCodeBlock(text) {
196
196
  ].join("\n");
197
197
  }
198
198
  const matrixApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
199
- eventKinds: ["exec", "plugin"],
199
+ eventKinds: [
200
+ "exec",
201
+ "plugin",
202
+ "system-agent"
203
+ ],
200
204
  availability: {
201
205
  isConfigured: ({ cfg, accountId, context }) => {
202
206
  const resolved = resolveHandlerContext({
@@ -32,7 +32,7 @@ function readPersistedTarget(target) {
32
32
  const approvalId = typeof value?.approvalId === "string" ? value.approvalId.trim() : "";
33
33
  const roomId = typeof value?.roomId === "string" ? value.roomId.trim() : "";
34
34
  const eventId = typeof value?.eventId === "string" ? value.eventId.trim() : "";
35
- if (!value || !accountId || !approvalId || !Array.isArray(value.allowedDecisions) || !roomId || !eventId || value.approvalKind !== "exec" && value.approvalKind !== "plugin") return null;
35
+ if (!value || !accountId || !approvalId || !Array.isArray(value.allowedDecisions) || !roomId || !eventId || value.approvalKind !== "exec" && value.approvalKind !== "plugin" && value.approvalKind !== "system-agent") return null;
36
36
  return {
37
37
  accountId,
38
38
  approvalId,
@@ -106,7 +106,7 @@ function registerMatrixApprovalReactionTarget(params) {
106
106
  const key = buildReactionTargetKey(accountId, params.roomId, params.eventId);
107
107
  const approvalId = params.approvalId.trim();
108
108
  const allowedDecisions = Array.from(new Set(params.allowedDecisions.filter((decision) => decision === "allow-once" || decision === "allow-always" || decision === "deny")));
109
- if (!key || !approvalId || params.approvalKind !== "exec" && params.approvalKind !== "plugin" || allowedDecisions.length === 0) return;
109
+ if (!key || !approvalId || params.approvalKind !== "exec" && params.approvalKind !== "plugin" && params.approvalKind !== "system-agent" || allowedDecisions.length === 0) return;
110
110
  const ttlMs = Math.max(1, params.ttlMs ?? DEFAULT_REACTION_TARGET_TTL_MS);
111
111
  const target = {
112
112
  accountId,
@@ -149,7 +149,7 @@ const matrixMessageActions = {
149
149
  return account && createActionGate(account.config.actions)("messages") ? payload : null;
150
150
  },
151
151
  handleAction: async (ctx) => {
152
- const { handleMatrixAction } = await import("./tool-actions.runtime-DLICojA3.mjs");
152
+ const { handleMatrixAction } = await import("./tool-actions.runtime-Ds5Zt5m1.mjs");
153
153
  const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
154
154
  const dispatch = async (actionParams) => await handleMatrixAction({
155
155
  ...actionParams,
@@ -616,7 +616,11 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
616
616
  resolveApproverDmTargets: resolveMatrixApproverDmTargets,
617
617
  notifyOriginWhenDmOnly: true,
618
618
  nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
619
- eventKinds: ["exec", "plugin"],
619
+ eventKinds: [
620
+ "exec",
621
+ "plugin",
622
+ "system-agent"
623
+ ],
620
624
  isConfigured: ({ cfg, accountId }) => isMatrixAnyApprovalClientEnabled({
621
625
  cfg,
622
626
  accountId
@@ -627,7 +631,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
627
631
  approvalKind,
628
632
  request
629
633
  }),
630
- load: async () => (await import("./approval-handler.runtime-CdT1wQve.mjs")).matrixApprovalNativeRuntime
634
+ load: async () => (await import("./approval-handler.runtime-CcbBADVh.mjs")).matrixApprovalNativeRuntime
631
635
  })
632
636
  });
633
637
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -1515,7 +1519,7 @@ const matrixPlugin = createChatChannelPlugin({
1515
1519
  await previousLock;
1516
1520
  let monitorMatrixProvider;
1517
1521
  try {
1518
- monitorMatrixProvider = (await import("./monitor-CQ6pGvZh.mjs")).monitorMatrixProvider;
1522
+ monitorMatrixProvider = (await import("./monitor-Cm0-IZPg.mjs")).monitorMatrixProvider;
1519
1523
  } finally {
1520
1524
  releaseLock();
1521
1525
  }
@@ -1,7 +1,7 @@
1
1
  import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-CRsKoMqJ.mjs";
2
2
  import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.mjs";
3
3
  import { n as resolveConfiguredMatrixBotUserIds } from "./accounts-BJ6ECCac.mjs";
4
- import { _ as logInboundDrop, a as resolveMatrixThreadRootId, b as summarizeMapping, c as RelationType, d as buildAllowlistResolutionSummary, f as canonicalizeAllowlistWithResolvedIds, g as getAgentScopedMediaLocalRoots, h as formatLocationText, i as resolveMatrixReplyToEventId, l as resolveMatrixRoomConfig, m as createTypingCallbacks, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting, p as createReplyPrefixOptions, r as resolveMatrixInboundRoute, s as EventType, u as addAllowlistUserEntriesFromConfigEntry, v as logTypingFailure, x as toLocationContext, y as patchAllowlistUsersInConfigEntries } from "./channel-Q_N83Wwa.mjs";
4
+ import { _ as logInboundDrop, a as resolveMatrixThreadRootId, b as summarizeMapping, c as RelationType, d as buildAllowlistResolutionSummary, f as canonicalizeAllowlistWithResolvedIds, g as getAgentScopedMediaLocalRoots, h as formatLocationText, i as resolveMatrixReplyToEventId, l as resolveMatrixRoomConfig, m as createTypingCallbacks, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting, p as createReplyPrefixOptions, r as resolveMatrixInboundRoute, s as EventType, u as addAllowlistUserEntriesFromConfigEntry, v as logTypingFailure, x as toLocationContext, y as patchAllowlistUsersInConfigEntries } from "./channel-kJSxq14c.mjs";
5
5
  import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./channel.setup-2A6HBRbA.mjs";
6
6
  import { n as isMatrixRoomId, t as isMatrixQualifiedUserId } from "./target-ids-Nwx7cMVE.mjs";
7
7
  import { S as promoteMatrixDirectRoomCandidate, d as formatPollAsText, g as parsePollStartContent, m as isPollStartType, p as isPollEventType, r as sendMessageMatrix, w as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY } from "./send-SmBzUhD-.mjs";
@@ -1643,7 +1643,7 @@ function buildMatrixFinalizedPreviewContent() {
1643
1643
  const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-SmBzUhD-.mjs").then((n) => n.s));
1644
1644
  const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
1645
1645
  const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
1646
- const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-Dtd3W-rj.mjs"));
1646
+ const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-DLCiEuIa.mjs"));
1647
1647
  const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-DfUFwKfN.mjs"));
1648
1648
  async function matrixTextWouldActivateMentions(client, text) {
1649
1649
  const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
@@ -1,7 +1,7 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import { a as resolveMatrixThreadRootId, o as resolveMatrixThreadRouting, r as resolveMatrixInboundRoute } from "./channel-Q_N83Wwa.mjs";
2
+ import { a as resolveMatrixThreadRootId, o as resolveMatrixThreadRouting, r as resolveMatrixInboundRoute } from "./channel-kJSxq14c.mjs";
3
3
  import { a as extractMatrixReactionAnnotation } from "./reaction-common-DkrQdBSZ.mjs";
4
- import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-D5eegob9.mjs";
4
+ import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-BlnA05wW.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { isApprovalNotFoundError } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
@@ -1,6 +1,6 @@
1
1
  import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig } from "./account-config-CRsKoMqJ.mjs";
2
2
  import { i as resolveMatrixAccount } from "./accounts-BJ6ECCac.mjs";
3
- import { l as resolveMatrixRoomConfig } from "./channel-Q_N83Wwa.mjs";
3
+ import { l as resolveMatrixRoomConfig } from "./channel-kJSxq14c.mjs";
4
4
  import { i as normalizeMatrixResolvableTarget } from "./target-ids-Nwx7cMVE.mjs";
5
5
  import { i as buildMatrixReactionRelationsPath, o as selectOwnMatrixReactionEventIds, s as summarizeMatrixReactionEvents } from "./reaction-common-DkrQdBSZ.mjs";
6
6
  import { b as resolveMatrixRoomId, h as parsePollStart, l as buildPollResponseContent, m as isPollStartType, n as reactMatrixMessage } from "./send-SmBzUhD-.mjs";
package/dist/api.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./.setup/account-selection-DZMazUgX.mjs";
2
2
  import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-dGqak9dN.mjs";
3
3
  import { a as resolveMatrixCredentialsPath, i as resolveMatrixCredentialsFilename, n as resolveMatrixAccountStorageRoot, o as resolveMatrixHomeserverKey, r as resolveMatrixCredentialsDir, s as sanitizeMatrixPathSegment, t as hashMatrixAccessToken } from "./.setup/storage-paths-gUmSydsW.mjs";
4
- import { t as matrixPlugin } from "./.setup/channel-Q_N83Wwa.mjs";
4
+ import { t as matrixPlugin } from "./.setup/channel-kJSxq14c.mjs";
5
5
  import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./.setup/setup-core-BnqoLunq.mjs";
6
6
  import { f as setMatrixThreadBindingMaxAgeBySessionKey, n as getMatrixThreadBindingManager, u as setMatrixThreadBindingIdleTimeoutBySessionKey } from "./.setup/thread-bindings-shared-oNPiyMWY.mjs";
7
7
  import { n as matrixOnboardingAdapter } from "./.setup/setup-surface-sWwADrZ8.mjs";
@@ -1,2 +1,2 @@
1
- import { t as matrixPlugin } from "./.setup/channel-Q_N83Wwa.mjs";
1
+ import { t as matrixPlugin } from "./.setup/channel-kJSxq14c.mjs";
2
2
  export { matrixPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/matrix",
3
- "version": "2026.8.33",
3
+ "version": "2026.8.34",
4
4
  "description": "OpenClaw Matrix channel plugin for rooms and direct messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  "zod": "4.4.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "openclaw": ">=2026.8.33"
21
+ "openclaw": ">=2026.8.34"
22
22
  },
23
23
  "peerDependenciesMeta": {
24
24
  "openclaw": {
@@ -167,10 +167,10 @@
167
167
  "allowInvalidConfigRecovery": true
168
168
  },
169
169
  "compat": {
170
- "pluginApi": ">=2026.8.33"
170
+ "pluginApi": ">=2026.8.34"
171
171
  },
172
172
  "build": {
173
- "openclawVersion": "2026.8.33"
173
+ "openclawVersion": "2026.8.34"
174
174
  },
175
175
  "release": {
176
176
  "publishToClawHub": true,