@openclaw/matrix 2026.10.10 → 2026.10.33
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/dist/.setup/{account-config-CVM2a28p.mjs → account-config-CRsKoMqJ.mjs} +2 -1
- package/dist/.setup/{account-selection-Co94mKNj.mjs → account-selection-CWsL5zIU.mjs} +8 -5
- package/dist/.setup/{approval-handler.runtime-DtNvJpfB.mjs → approval-handler.runtime-Co2elSYS.mjs} +9 -8
- package/dist/.setup/{approval-reactions-DMDBJos0.mjs → approval-reactions-D2pEUrFS.mjs} +3 -2
- package/dist/.setup/{backup-health-BxH69np2.mjs → backup-health-Dm_YMVFT.mjs} +2 -1
- package/dist/.setup/{channel-CNjJyBS_.mjs → channel-BBvOdxTc.mjs} +44 -29
- package/dist/.setup/{channel.runtime-DaGbm27q.mjs → channel.runtime-DyX4mM8d.mjs} +10 -8
- package/dist/.setup/{channel.setup-IjRB0ymg.mjs → channel.setup-p6oll48W.mjs} +15 -7
- package/dist/.setup/{cli-CuEJNM3c.mjs → cli-C2XKMk1U.mjs} +39 -28
- package/dist/.setup/{cli-metadata-rWmD_rzx.mjs → cli-metadata-C60BW1oa.mjs} +5 -3
- package/dist/.setup/{client-7eyTX0cu.mjs → client-BEl7PU1_.mjs} +25 -19
- package/dist/.setup/{client-CV0MkCZG.mjs → client-Cxv-iMwp.mjs} +5 -4
- package/dist/.setup/{client-bootstrap-BjcmTmyR.mjs → client-bootstrap-D1vLveT2.mjs} +3 -2
- package/dist/.setup/{client-support-CFofPPPm.mjs → client-support-D-xHScuo.mjs} +5 -3
- package/dist/.setup/{config-paths-DBpHxDyc.mjs → config-paths-CnREYb1Y.mjs} +2 -1
- package/dist/.setup/{create-client-C4Lnqs2C.mjs → create-client-CrY1E3hg.mjs} +9 -8
- package/dist/.setup/{credentials-read-WCQSEvI8.mjs → credentials-read-Dj7Hj87M.mjs} +6 -5
- package/dist/.setup/{credentials-state-jxq29yQw.mjs → credentials-state-B3cuUFwZ.mjs} +2 -1
- package/dist/.setup/{credentials-B0vpXvcB.mjs → credentials-udso1z0C.mjs} +6 -5
- package/dist/.setup/{crypto-node.runtime-E_hqXGxm.mjs → crypto-node.runtime-6Aj_ltHQ.mjs} +2 -1
- package/dist/.setup/{crypto-runtime-Crp1is7m.mjs → crypto-runtime-DqX7VD1W.mjs} +19 -12
- package/dist/.setup/{crypto-state-store-CM57gchf.mjs → crypto-state-store-DclM-fO5.mjs} +5 -3
- package/dist/.setup/{crypto-store-ownership-Bratn-Np.mjs → crypto-store-ownership-Dr-T40Rp.mjs} +4 -3
- package/dist/.setup/{crypto-unsafe-state-doctor-Brv4bIyx.mjs → crypto-unsafe-state-doctor-BG9qMu0B.mjs} +8 -7
- package/dist/.setup/{deps-O7rEnklr.mjs → deps-L_1bUAGL.mjs} +2 -1
- package/dist/.setup/{device-health-DnKAXW1v.mjs → device-health-D6_ECUVe.mjs} +3 -2
- package/dist/.setup/{direct-management-DDaWVbQI.mjs → direct-management-ZcjZgYEl.mjs} +11 -7
- package/dist/.setup/{directory-live-B-csizuK.mjs → directory-live-_yaRaktv.mjs} +6 -5
- package/dist/.setup/doctor-contract-BANpMUbP.mjs +38 -0
- package/dist/.setup/{draft-stream-dmhBHufd.mjs → draft-stream-vO_qjwJb.mjs} +4 -3
- package/dist/.setup/{encryption-guidance-Cn6-Tlx0.mjs → encryption-guidance-BLUoN4aV.mjs} +4 -3
- package/dist/.setup/{env-vars-Bh1iOXJ1.mjs → env-vars-aEBngJPa.mjs} +2 -1
- package/dist/.setup/{errors-CL3YJV8U.mjs → errors-Bw4EHwKX.mjs} +2 -1
- package/dist/.setup/{event-helpers-DDUjVVf7.mjs → event-helpers-CxNgMQqH.mjs} +2 -1
- package/dist/.setup/{exec-approvals-D7vv3AZS.mjs → exec-approvals-BFT-ee9F.mjs} +9 -6
- package/dist/.setup/{file-sync-store-q5KCV2Lp.mjs → file-sync-store-BxUPmUoJ.mjs} +6 -5
- package/dist/.setup/{http-client-CxTmU1kT.mjs → http-client-ByR4STVQ.mjs} +7 -4
- package/dist/.setup/{idb-persistence-BF0MZglD.mjs → idb-persistence-C2TsCHY2.mjs} +7 -6
- package/dist/.setup/{idb-persistence-lock-CH2K6d_3.mjs → idb-persistence-lock-Bh3ZLIsE.mjs} +2 -1
- package/dist/.setup/{inbound-dedupe-CZnOq0ja.mjs → inbound-dedupe-sW_gaR44.mjs} +3 -2
- package/dist/.setup/{joined-room-encryption-Dl7Sb9FF.mjs → joined-room-encryption-DBbLkdvv.mjs} +3 -2
- package/dist/.setup/{logger-BX5kXvh1.mjs → logger-CuAzdD8Q.mjs} +5 -4
- package/dist/.setup/{logging-BLcaOSRD.mjs → logging-CoaEyRtA.mjs} +22 -15
- package/dist/.setup/{messages-BiHM0DM3.mjs → messages-TuEa_BPZ.mjs} +14 -9
- package/dist/.setup/{monitor-CPwDgRFY.mjs → monitor-B86Ll4B8.mjs} +166 -77
- package/dist/.setup/{onboarding-DiVtpjNu.mjs → onboarding-DOLEjkg2.mjs} +11 -10
- package/dist/.setup/{outbound-DwP97VpQ.mjs → outbound-BWsyqwt1.mjs} +4 -3
- package/dist/.setup/{profile-update-DnNA9mEa.mjs → profile-update-DiXSVBki.mjs} +8 -6
- package/dist/.setup/{reaction-events-ClY9h_FC.mjs → reaction-events-CuUeYcBC.mjs} +9 -8
- package/dist/.setup/{resolve-targets-B8PAwHVS.mjs → resolve-targets-Dd70hGcM.mjs} +5 -4
- package/dist/.setup/{retired-state-vIr2IB90.mjs → retired-state-C4UnLIg4.mjs} +5 -38
- package/dist/.setup/{room-info-T_PR_liR.mjs → room-info-C13IUffQ.mjs} +8 -6
- package/dist/.setup/{runtime-Ck8TjD7L.mjs → runtime-1kn1P6io.mjs} +2 -1
- package/dist/.setup/{doctor-contract-DybEjJcd.mjs → runtime-doctor-migrations-hxP-CXX7.mjs} +22 -52
- package/dist/.setup/runtime-setter-api-DtxDAM-x.mjs +3 -0
- package/dist/.setup/{sdk-Cj3ggJHG.mjs → sdk-DNW03GqJ.mjs} +47 -32
- package/dist/.setup/{secret-contract-AKnr45nw.mjs → secret-contract-DxyzKSzf.mjs} +3 -2
- package/dist/.setup/secret-contract-api-CiuSYjUy.mjs +3 -0
- package/dist/.setup/{send-C1qeMQAy.mjs → send-BGgwE5pV.mjs} +40 -24
- package/dist/.setup/{send-currentness-CAUVR-f3.mjs → send-currentness-C2rMVVIQ.mjs} +4 -2
- package/dist/.setup/{setup-bootstrap-DDhwWvDs.mjs → setup-bootstrap-BCbltIf_.mjs} +5 -4
- package/dist/.setup/{setup-core-D2r4BivQ.mjs → setup-core-Di6NtQ_J.mjs} +20 -13
- package/dist/.setup/setup-plugin-api-ORC_4yEA.mjs +3 -0
- package/dist/.setup/sqlite-state-LByPx4Yp.mjs +37 -0
- package/dist/.setup/{startup-verification-B3LEbW33.mjs → startup-verification-8xvGpdtK.mjs} +6 -4
- package/dist/.setup/{state-layout-walk-BqCZTHpp.mjs → state-layout-walk-BQMgMykU.mjs} +3 -2
- package/dist/.setup/{storage-CxN4jqKI.mjs → storage-CN4dxdtV.mjs} +20 -10
- package/dist/.setup/{storage-paths-e_Vq6cvw.mjs → storage-paths-B51JM-pC.mjs} +2 -1
- package/dist/.setup/{subagent-hooks-CT-rdJmh.mjs → subagent-hooks-CSY4iwa_.mjs} +3 -2
- package/dist/.setup/{sync-cache-state-qYrd2EEh.mjs → sync-cache-state-L1kwjhjj.mjs} +9 -5
- package/dist/.setup/{target-ids-DltG_ZHJ.mjs → target-ids-HhcaKX1n.mjs} +2 -1
- package/dist/.setup/{thread-binding-api-OtSciHmZ.mjs → thread-binding-api-BvuaKpd0.mjs} +3 -2
- package/dist/.setup/{thread-bindings-D2ZR6mEZ.mjs → thread-bindings-pNgPVdof.mjs} +10 -7
- package/dist/.setup/{thread-bindings-shared-FMu_szTm.mjs → thread-bindings-shared-CPjUA0Ib.mjs} +2 -1
- package/dist/.setup/{tool-actions-CdKa0DC4.mjs → tool-actions-CFC7ZpIt.mjs} +23 -18
- package/dist/.setup/{url-validation-C77p4qT9.mjs → url-validation-CF6pG6eE.mjs} +2 -1
- package/dist/.setup/{verification-jP3tm-xD.mjs → verification-CuT5ZBDO.mjs} +5 -4
- package/dist/api.js +8 -8
- package/dist/auth-presence.js +3 -2
- package/dist/channel-plugin-api.js +2 -1
- package/dist/cli-metadata.js +2 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +55 -20
- package/dist/helper-api.js +3 -3
- package/dist/index.js +4 -3
- package/dist/plugin-entry.handlers.runtime.js +4 -3
- package/dist/runtime-api.js +8 -7
- package/dist/runtime-setter-api.js +2 -1
- package/dist/secret-contract-api.js +2 -1
- package/dist/session-binding-contract-api.js +2 -2
- package/dist/setup-entry.js +5 -4
- package/dist/setup-plugin-api.js +2 -1
- package/dist/subagent-hooks-api.js +3 -2
- package/dist/thread-binding-api.js +2 -1
- package/dist/thread-bindings-runtime.js +2 -1
- package/node_modules/@openclaw/fs-safe/CHANGELOG.md +26 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/native-config.js +14 -3
- package/node_modules/@openclaw/fs-safe/dist/output.js +6 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +2 -1
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +12 -5
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +2 -2
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +27 -13
- package/node_modules/@openclaw/fs-safe/dist/root-path.js +2 -2
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +18 -3
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +8 -3
- package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
- package/node_modules/@openclaw/fs-safe/docs/config.md +7 -1
- package/node_modules/@openclaw/fs-safe/docs/copy.md +10 -0
- package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +6 -4
- package/node_modules/@openclaw/fs-safe/docs/native-helper.md +6 -4
- package/node_modules/@openclaw/fs-safe/docs/output.md +4 -2
- package/node_modules/@openclaw/fs-safe/docs/security-model.md +9 -0
- package/node_modules/@openclaw/fs-safe/docs/watch.md +7 -1
- package/node_modules/@openclaw/fs-safe/package.json +15 -14
- package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
- package/package.json +5 -5
- package/dist/.setup/runtime-setter-api-CpwhcBQK.mjs +0 -2
- package/dist/.setup/secret-contract-api-DMSwMIxd.mjs +0 -2
- package/dist/.setup/setup-plugin-api-SO1hdrsT.mjs +0 -2
- package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig } from "./account-config-
|
|
2
|
-
import { g as resolveDefaultMatrixAccountId } from "./setup-core-
|
|
3
|
-
import { o as resolveMatrixRoomConfig } from "./channel-
|
|
4
|
-
import { a as normalizeMatrixResolvableTarget } from "./target-ids-
|
|
5
|
-
import { l as selectOwnMatrixReactionEventIds, s as buildMatrixReactionRelationsPath, u as summarizeMatrixReactionEvents } from "./send-currentness-
|
|
6
|
-
import { c as isStrictDirectMembership, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers } from "./direct-management-
|
|
7
|
-
import { C as resolveMatrixRoomId, n as reactMatrixMessage, p as buildPollResponseContent, r as sendMessageMatrix, v as isPollStartType, y as parsePollStart } from "./send-
|
|
8
|
-
import { i as parseMxc } from "./event-helpers-
|
|
9
|
-
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as readMatrixMessages, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessage, s as EventType, t as deleteMatrixMessage } from "./messages-
|
|
10
|
-
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-
|
|
11
|
-
import { t as applyMatrixProfileUpdate } from "./profile-update-
|
|
12
|
-
import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-
|
|
13
|
-
import { n as getMatrixMemberInfo, r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-
|
|
1
|
+
import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig } from "./account-config-CRsKoMqJ.mjs";
|
|
2
|
+
import { g as resolveDefaultMatrixAccountId } from "./setup-core-Di6NtQ_J.mjs";
|
|
3
|
+
import { o as resolveMatrixRoomConfig } from "./channel-BBvOdxTc.mjs";
|
|
4
|
+
import { a as normalizeMatrixResolvableTarget } from "./target-ids-HhcaKX1n.mjs";
|
|
5
|
+
import { l as selectOwnMatrixReactionEventIds, s as buildMatrixReactionRelationsPath, u as summarizeMatrixReactionEvents } from "./send-currentness-C2rMVVIQ.mjs";
|
|
6
|
+
import { c as isStrictDirectMembership, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers } from "./direct-management-ZcjZgYEl.mjs";
|
|
7
|
+
import { C as resolveMatrixRoomId, n as reactMatrixMessage, p as buildPollResponseContent, r as sendMessageMatrix, v as isPollStartType, y as parsePollStart } from "./send-BGgwE5pV.mjs";
|
|
8
|
+
import { i as parseMxc } from "./event-helpers-CxNgMQqH.mjs";
|
|
9
|
+
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as readMatrixMessages, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessage, s as EventType, t as deleteMatrixMessage } from "./messages-TuEa_BPZ.mjs";
|
|
10
|
+
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-Cxv-iMwp.mjs";
|
|
11
|
+
import { t as applyMatrixProfileUpdate } from "./profile-update-DiXSVBki.mjs";
|
|
12
|
+
import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-CuT5ZBDO.mjs";
|
|
13
|
+
import { n as getMatrixMemberInfo, r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-C13IUffQ.mjs";
|
|
14
14
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
15
15
|
import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeUniqueTrimmedStringList, uniqueValues } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
16
16
|
import { ToolAuthorizationError, createActionGate, jsonResult, readPositiveIntegerParam, readReactionParams, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
17
17
|
import { timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
18
18
|
import { captureChannelReadAuthority } from "openclaw/plugin-sdk/fetch-runtime";
|
|
19
19
|
import { resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy } from "openclaw/plugin-sdk/runtime-group-policy";
|
|
20
|
-
|
|
20
|
+
//#region extensions/matrix/src/matrix/actions/pins.ts
|
|
21
21
|
async function updateMatrixPins(roomId, opts, update) {
|
|
22
22
|
return await withResolvedRoomAction(roomId, opts, async (client, resolvedRoom) => {
|
|
23
23
|
const next = update(await readPinnedEvents(client, resolvedRoom));
|
|
@@ -41,7 +41,8 @@ async function listMatrixPins(roomId, opts = {}) {
|
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region extensions/matrix/src/matrix/actions/polls.ts
|
|
45
46
|
function normalizeOptionIndexes(indexes) {
|
|
46
47
|
const normalized = indexes.map((index) => Math.trunc(index)).filter((index) => Number.isFinite(index) && index > 0);
|
|
47
48
|
return uniqueValues(normalized);
|
|
@@ -90,7 +91,8 @@ async function voteMatrixPoll(roomId, pollId, opts = {}) {
|
|
|
90
91
|
};
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region extensions/matrix/src/matrix/actions/reactions.ts
|
|
94
96
|
async function listMatrixEmojis(roomId, opts = {}) {
|
|
95
97
|
return await withResolvedRoomAction(roomId, opts, async (client, resolvedRoom) => {
|
|
96
98
|
const [roomState, personalPack] = await Promise.all([client.doRequest("GET", `/_matrix/client/v3/rooms/${encodeURIComponent(resolvedRoom)}/state`), client.getAccountData("im.ponies.user_emotes")]);
|
|
@@ -150,7 +152,8 @@ async function removeMatrixReactions(roomId, messageId, opts = {}) {
|
|
|
150
152
|
return { removed: toRemove.length };
|
|
151
153
|
});
|
|
152
154
|
}
|
|
153
|
-
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region extensions/matrix/src/matrix/read-policy.ts
|
|
154
157
|
function normalizeRoomId(raw) {
|
|
155
158
|
return raw?.trim().replace(/^room:/i, "") ?? "";
|
|
156
159
|
}
|
|
@@ -282,7 +285,8 @@ async function withAuthorizedMatrixReadTarget(params) {
|
|
|
282
285
|
});
|
|
283
286
|
});
|
|
284
287
|
}
|
|
285
|
-
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region extensions/matrix/src/tool-actions.ts
|
|
286
290
|
const MATRIX_ACTION_DISABLED_MESSAGES = {
|
|
287
291
|
messages: "Matrix messages are disabled.",
|
|
288
292
|
reactions: "Matrix reactions are disabled.",
|
|
@@ -713,4 +717,5 @@ async function handleMatrixAction(ctx) {
|
|
|
713
717
|
}
|
|
714
718
|
throw new Error(`Action ${action} is not supported for provider matrix.`);
|
|
715
719
|
}
|
|
720
|
+
//#endregion
|
|
716
721
|
export { handleMatrixAction };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertHttpUrlTargetsPrivateNetwork, isPrivateOrLoopbackHost } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
2
|
-
|
|
2
|
+
//#region extensions/matrix/src/matrix/client/url-validation.ts
|
|
3
3
|
const MATRIX_HTTP_HOMESERVER_ERROR = "Matrix homeserver must use https:// unless it targets a private or loopback host";
|
|
4
4
|
function cleanString(value, requiredMessage) {
|
|
5
5
|
const trimmed = typeof value === "string" ? value.trim() : "";
|
|
@@ -32,4 +32,5 @@ async function resolveValidatedMatrixHomeserverUrl(homeserver, opts) {
|
|
|
32
32
|
});
|
|
33
33
|
return normalized;
|
|
34
34
|
}
|
|
35
|
+
//#endregion
|
|
35
36
|
export { validateMatrixHomeserverUrl as n, resolveValidatedMatrixHomeserverUrl as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-
|
|
3
|
-
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
|
+
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-Cxv-iMwp.mjs";
|
|
3
|
+
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-BLUoN4aV.mjs";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { setTimeout } from "node:timers/promises";
|
|
6
|
-
|
|
6
|
+
//#region extensions/matrix/src/matrix/actions/verification.ts
|
|
7
7
|
var verification_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
acceptMatrixVerification: () => acceptMatrixVerification,
|
|
9
9
|
bootstrapMatrixVerification: () => bootstrapMatrixVerification,
|
|
@@ -302,4 +302,5 @@ async function bootstrapMatrixVerification(opts = {}) {
|
|
|
302
302
|
forceResetCrossSigning: opts.forceResetCrossSigning === true
|
|
303
303
|
}));
|
|
304
304
|
}
|
|
305
|
+
//#endregion
|
|
305
306
|
export { scanMatrixVerificationQr as _, confirmMatrixVerificationSas as a, verifyMatrixRecoveryKey as b, getMatrixRoomKeyBackupStatus as c, listMatrixVerifications as d, mismatchMatrixVerificationSas as f, runMatrixSelfVerification as g, restoreMatrixRoomKeyBackup as h, confirmMatrixVerificationReciprocateQr as i, getMatrixVerificationSas as l, resetMatrixRoomKeyBackup as m, bootstrapMatrixVerification as n, generateMatrixVerificationQr as o, requestMatrixVerification as p, cancelMatrixVerification as r, getMatrixEncryptionStatus as s, acceptMatrixVerification as t, getMatrixVerificationStatus as u, startMatrixVerification as v, verification_exports as y };
|
package/dist/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-
|
|
2
|
-
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-
|
|
3
|
-
import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-
|
|
4
|
-
import { r as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./.setup/setup-core-
|
|
5
|
-
import { t as matrixPlugin } from "./.setup/channel-
|
|
6
|
-
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThreadBindingManager, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-
|
|
7
|
-
import { t as matrixOnboardingAdapter } from "./.setup/onboarding-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-
|
|
1
|
+
import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-CWsL5zIU.mjs";
|
|
2
|
+
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-aEBngJPa.mjs";
|
|
3
|
+
import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-B51JM-pC.mjs";
|
|
4
|
+
import { r as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./.setup/setup-core-Di6NtQ_J.mjs";
|
|
5
|
+
import { t as matrixPlugin } from "./.setup/channel-BBvOdxTc.mjs";
|
|
6
|
+
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThreadBindingManager, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-CPjUA0Ib.mjs";
|
|
7
|
+
import { t as matrixOnboardingAdapter } from "./.setup/onboarding-DOLEjkg2.mjs";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-pNgPVdof.mjs";
|
|
9
9
|
export { createMatrixSetupWizardProxy, createMatrixThreadBindingManager, findMatrixAccountEntry, getMatrixScopedEnvVarNames, getMatrixThreadBindingManager, hashMatrixAccessToken, listMatrixEnvAccountIds, matrixOnboardingAdapter, matrixOnboardingAdapter as matrixSetupWizard, matrixPlugin, matrixSetupAdapter, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, sanitizeMatrixPathSegment, setMatrixThreadBindingIdleTimeoutBySessionKey, setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, setMatrixThreadBindingMaxAgeBySessionKey, setMatrixThreadBindingMaxAgeBySessionKeyAsync };
|
package/dist/auth-presence.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as normalizeMatrixStoredCredentials, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-
|
|
1
|
+
import { i as normalizeMatrixStoredCredentials, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-B3cuUFwZ.mjs";
|
|
2
2
|
import { createPluginStateKeyedStore, createPluginStateSyncKeyedStore } from "openclaw/plugin-sdk/plugin-state-store-runtime";
|
|
3
|
-
|
|
3
|
+
//#region extensions/matrix/auth-presence.ts
|
|
4
4
|
/** @deprecated Use hasAnyMatrixAuthAsync. Final compatibility day: 2026-12-31. */
|
|
5
5
|
function hasAnyMatrixAuth(params, env = process.env) {
|
|
6
6
|
const resolvedEnv = params && typeof params === "object" && "cfg" in params ? params.env ?? env : env;
|
|
@@ -28,4 +28,5 @@ async function hasAnyMatrixAuthAsync(params, env = process.env) {
|
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
//#endregion
|
|
31
32
|
export { hasAnyMatrixAuth, hasAnyMatrixAuthAsync };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { t as matrixPlugin } from "./.setup/channel-BBvOdxTc.mjs";
|
|
2
|
+
export { matrixPlugin };
|
package/dist/cli-metadata.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./.setup/cli-metadata-C60BW1oa.mjs";
|
|
2
|
+
export { cli_metadata_default as default, registerMatrixCliMetadata };
|
package/dist/contract-api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as resolveSingleAccountPromotionTarget, l as singleAccountKeysToMove, r as matrixSetupAdapter, s as namedAccountPromotionKeys } from "./.setup/setup-core-
|
|
2
|
-
import { t as matrixOnboardingAdapter } from "./.setup/onboarding-
|
|
1
|
+
import { c as resolveSingleAccountPromotionTarget, l as singleAccountKeysToMove, r as matrixSetupAdapter, s as namedAccountPromotionKeys } from "./.setup/setup-core-Di6NtQ_J.mjs";
|
|
2
|
+
import { t as matrixOnboardingAdapter } from "./.setup/onboarding-DOLEjkg2.mjs";
|
|
3
3
|
export { matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, resolveSingleAccountPromotionTarget, singleAccountKeysToMove };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-
|
|
3
|
-
import { i as resolveMatrixCredentialsDir } from "./.setup/storage-paths-
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
1
|
+
import { t as runtime_doctor_migrations_exports } from "./.setup/runtime-doctor-migrations-hxP-CXX7.mjs";
|
|
2
|
+
import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-B3cuUFwZ.mjs";
|
|
3
|
+
import { i as resolveMatrixCredentialsDir } from "./.setup/storage-paths-B51JM-pC.mjs";
|
|
4
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-BANpMUbP.mjs";
|
|
5
|
+
import { a as describeRetiredMatrixState, t as RETIRED_MATRIX_STATE_FILENAMES } from "./.setup/retired-state-C4UnLIg4.mjs";
|
|
6
|
+
import { t as resolveMatrixSqliteStateEnv } from "./.setup/sqlite-state-LByPx4Yp.mjs";
|
|
7
|
+
import { t as walkMatrixStateFiles } from "./.setup/state-layout-walk-BQMgMykU.mjs";
|
|
8
|
+
import { i as readLegacyMatrixSyncCacheState, n as hasMatrixSyncCacheStateInStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore } from "./.setup/sync-cache-state-L1kwjhjj.mjs";
|
|
7
9
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
8
10
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
11
|
import { createHash } from "node:crypto";
|
|
10
12
|
import path from "node:path";
|
|
11
13
|
import fs from "node:fs/promises";
|
|
12
|
-
|
|
14
|
+
//#region extensions/matrix/src/matrix/account-state-schema-doctor.ts
|
|
13
15
|
const STATE_DATABASE_FILENAME = "openclaw.sqlite";
|
|
14
16
|
async function collectMatrixAccountStateRoots(stateDir) {
|
|
15
17
|
const { entries, failedDirs } = await walkMatrixStateFiles(stateDir, (name, depth) => depth === 5 && name === STATE_DATABASE_FILENAME || (depth === 0 || depth === 2 || depth === 4) && RETIRED_MATRIX_STATE_FILENAMES.has(name), [2, 4]);
|
|
@@ -56,7 +58,8 @@ const matrixAccountStateSchemaMigration = {
|
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
|
-
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts
|
|
60
63
|
const LEGACY_SQLITE_NAMESPACE = "inbound-dedupe";
|
|
61
64
|
const LEGACY_MARKERS_NAMESPACE = "inbound-dedupe-migrations";
|
|
62
65
|
const MATRIX_PLUGIN_ID = "matrix";
|
|
@@ -215,7 +218,7 @@ async function verifyMatrixInboundDedupeSourcesRetired(stateDir) {
|
|
|
215
218
|
*/
|
|
216
219
|
async function importNewestInboundDedupeMarkers(params) {
|
|
217
220
|
const { createPersistentDedupeImportEntry } = await import("openclaw/plugin-sdk/persistent-dedupe");
|
|
218
|
-
const { buildMatrixInboundDedupeEventKey, MATRIX_INBOUND_DEDUPE_STATE_MAX_ENTRIES, MATRIX_INBOUND_DEDUPE_TTL_MS, resolveMatrixInboundDedupeStateNamespace } = await import("./.setup/inbound-dedupe-
|
|
221
|
+
const { buildMatrixInboundDedupeEventKey, MATRIX_INBOUND_DEDUPE_STATE_MAX_ENTRIES, MATRIX_INBOUND_DEDUPE_TTL_MS, resolveMatrixInboundDedupeStateNamespace } = await import("./.setup/inbound-dedupe-sW_gaR44.mjs");
|
|
219
222
|
const now = params.now ?? Date.now();
|
|
220
223
|
const stateMaxEntries = MATRIX_INBOUND_DEDUPE_STATE_MAX_ENTRIES;
|
|
221
224
|
const newestByKey = /* @__PURE__ */ new Map();
|
|
@@ -279,7 +282,8 @@ async function importNewestInboundDedupeMarkers(params) {
|
|
|
279
282
|
total: markers.length
|
|
280
283
|
};
|
|
281
284
|
}
|
|
282
|
-
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region extensions/matrix/doctor-contract-api.ts
|
|
283
287
|
const MATRIX_SYNC_CACHE_FILENAME = "bot-storage.json";
|
|
284
288
|
async function collectLegacyMatrixCredentialSources(params) {
|
|
285
289
|
const credentialsDir = resolveMatrixCredentialsDir(params.stateDir);
|
|
@@ -295,7 +299,7 @@ async function collectLegacyMatrixCredentialSources(params) {
|
|
|
295
299
|
return left.name.localeCompare(right.name);
|
|
296
300
|
});
|
|
297
301
|
if (files.length === 0) return [];
|
|
298
|
-
const { requiresExplicitMatrixDefaultAccount, resolveMatrixDefaultOrOnlyAccountId } = await import("./.setup/account-selection-
|
|
302
|
+
const { requiresExplicitMatrixDefaultAccount, resolveMatrixDefaultOrOnlyAccountId } = await import("./.setup/account-selection-CWsL5zIU.mjs").then((n) => n.t);
|
|
299
303
|
return files.map((entry) => {
|
|
300
304
|
const namedAccount = /^credentials(?:-([a-z0-9._-]+))?\.json$/iu.exec(entry.name)?.[1];
|
|
301
305
|
return {
|
|
@@ -307,23 +311,36 @@ async function collectLegacyMatrixCredentialSources(params) {
|
|
|
307
311
|
async function readLegacyMatrixCredentials(source) {
|
|
308
312
|
if (!source.accountId) return null;
|
|
309
313
|
try {
|
|
310
|
-
const raw = JSON.parse(await fs.readFile(source.filePath, "
|
|
314
|
+
const raw = JSON.parse((0, runtime_doctor_migrations_exports.decodeUtf8Input)(await fs.readFile(source.filePath), "Legacy Matrix credentials"));
|
|
311
315
|
const createdAt = isRecord(raw) && typeof raw.createdAt === "string" && raw.createdAt ? raw.createdAt : (await fs.stat(source.filePath)).mtime.toISOString();
|
|
312
316
|
return normalizeMatrixStoredCredentials(isRecord(raw) ? {
|
|
313
317
|
...raw,
|
|
314
318
|
createdAt
|
|
315
319
|
} : raw, source.accountId);
|
|
316
|
-
} catch {
|
|
320
|
+
} catch (error) {
|
|
321
|
+
if (error instanceof runtime_doctor_migrations_exports.Utf8InputError) throw error;
|
|
317
322
|
return null;
|
|
318
323
|
}
|
|
319
324
|
}
|
|
320
325
|
async function* readLegacyMatrixSyncCacheSources(stateDir) {
|
|
321
326
|
const { entries } = await walkMatrixStateFiles(stateDir, (name, depth) => name === MATRIX_SYNC_CACHE_FILENAME && (depth === 2 || depth === 4));
|
|
322
327
|
for (const storageRootDir of entries.map((entry) => path.dirname(entry.path)).toSorted()) {
|
|
323
|
-
|
|
328
|
+
let payload;
|
|
329
|
+
try {
|
|
330
|
+
payload = await readLegacyMatrixSyncCacheState(storageRootDir);
|
|
331
|
+
} catch (error) {
|
|
332
|
+
if (!(error instanceof runtime_doctor_migrations_exports.Utf8InputError)) throw error;
|
|
333
|
+
yield {
|
|
334
|
+
storageRootDir,
|
|
335
|
+
payload: null,
|
|
336
|
+
error
|
|
337
|
+
};
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
324
340
|
if (payload) yield {
|
|
325
341
|
storageRootDir,
|
|
326
|
-
payload
|
|
342
|
+
payload,
|
|
343
|
+
error: void 0
|
|
327
344
|
};
|
|
328
345
|
}
|
|
329
346
|
}
|
|
@@ -332,12 +349,12 @@ const stateMigrations = [
|
|
|
332
349
|
id: "matrix-crypto-unsafe-state",
|
|
333
350
|
label: "Matrix crypto unsafe final state",
|
|
334
351
|
async detectLegacyState(params) {
|
|
335
|
-
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-
|
|
352
|
+
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-BG9qMu0B.mjs").then((n) => n.t);
|
|
336
353
|
const roots = await listMatrixCryptoUnsafeState(params.stateDir, { openKeyedStoreV2: params.context.openPluginStateKeyedStore });
|
|
337
354
|
return roots.length > 0 ? { preview: roots.map((root) => `Matrix crypto store is blocked after unsafe final save: ${root}. Run openclaw matrix doctor inspect; recovery is never automatic.`) } : null;
|
|
338
355
|
},
|
|
339
356
|
async migrateLegacyState(params) {
|
|
340
|
-
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-
|
|
357
|
+
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-BG9qMu0B.mjs").then((n) => n.t);
|
|
341
358
|
return {
|
|
342
359
|
changes: [],
|
|
343
360
|
warnings: (await listMatrixCryptoUnsafeState(params.stateDir, { openKeyedStoreV2: params.context.openPluginStateKeyedStore })).map((root) => `Matrix crypto store remains blocked: ${root}. Inspect with openclaw matrix doctor inspect; explicit recovery may roll back keys.`)
|
|
@@ -356,6 +373,7 @@ const stateMigrations = [
|
|
|
356
373
|
const changes = [];
|
|
357
374
|
const warnings = [];
|
|
358
375
|
const sources = await collectLegacyMatrixCredentialSources(params);
|
|
376
|
+
let utf8Warnings = 0;
|
|
359
377
|
const store = params.context.openPluginStateKeyedStore({
|
|
360
378
|
namespace: MATRIX_CREDENTIALS_NAMESPACE,
|
|
361
379
|
maxEntries: 256,
|
|
@@ -366,7 +384,15 @@ const stateMigrations = [
|
|
|
366
384
|
warnings.push(`Left ambiguous Matrix credential legacy source in place because no default account is selected: ${source.filePath}`);
|
|
367
385
|
continue;
|
|
368
386
|
}
|
|
369
|
-
|
|
387
|
+
let credentials;
|
|
388
|
+
try {
|
|
389
|
+
credentials = await readLegacyMatrixCredentials(source);
|
|
390
|
+
} catch (error) {
|
|
391
|
+
if (!(error instanceof runtime_doctor_migrations_exports.Utf8InputError)) throw error;
|
|
392
|
+
warnings.push(`${error.message} Left legacy source in place: ${source.filePath}`);
|
|
393
|
+
utf8Warnings++;
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
370
396
|
if (!credentials) {
|
|
371
397
|
warnings.push(`Left invalid Matrix credential legacy source in place: ${source.filePath}`);
|
|
372
398
|
continue;
|
|
@@ -406,7 +432,8 @@ const stateMigrations = [
|
|
|
406
432
|
}
|
|
407
433
|
return {
|
|
408
434
|
changes,
|
|
409
|
-
warnings
|
|
435
|
+
warnings,
|
|
436
|
+
...utf8Warnings > 0 && utf8Warnings === warnings.length ? { warningDisposition: "recoverable" } : {}
|
|
410
437
|
};
|
|
411
438
|
}
|
|
412
439
|
},
|
|
@@ -508,7 +535,13 @@ const stateMigrations = [
|
|
|
508
535
|
const changes = [];
|
|
509
536
|
const warnings = [];
|
|
510
537
|
const notices = [];
|
|
538
|
+
let utf8Warnings = 0;
|
|
511
539
|
for await (const source of readLegacyMatrixSyncCacheSources(params.stateDir)) {
|
|
540
|
+
if (source.error) {
|
|
541
|
+
warnings.push(`${source.error.message} Left legacy source in place: ${source.storageRootDir}`);
|
|
542
|
+
utf8Warnings++;
|
|
543
|
+
continue;
|
|
544
|
+
}
|
|
512
545
|
const store = params.context.openPluginStateKeyedStore(openMatrixSyncCacheStoreOptions(source.storageRootDir));
|
|
513
546
|
const existing = await hasMatrixSyncCacheStateInStore({
|
|
514
547
|
...source,
|
|
@@ -533,9 +566,11 @@ const stateMigrations = [
|
|
|
533
566
|
return {
|
|
534
567
|
changes,
|
|
535
568
|
warnings,
|
|
536
|
-
...notices.length > 0 ? { notices } : {}
|
|
569
|
+
...notices.length > 0 ? { notices } : {},
|
|
570
|
+
...utf8Warnings > 0 && utf8Warnings === warnings.length ? { warningDisposition: "recoverable" } : {}
|
|
537
571
|
};
|
|
538
572
|
}
|
|
539
573
|
}
|
|
540
574
|
];
|
|
575
|
+
//#endregion
|
|
541
576
|
export { legacyConfigRules, normalizeCompatibilityConfig, stateMigrations };
|
package/dist/helper-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, r as hasImplicitMatrixAccountConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-
|
|
2
|
-
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-
|
|
3
|
-
import { a as resolveMatrixCredentialsFilename, c as resolveMatrixStateLayoutChildDepth, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, n as isMatrixActiveTokenRootDirectory, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-
|
|
1
|
+
import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, r as hasImplicitMatrixAccountConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-CWsL5zIU.mjs";
|
|
2
|
+
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-aEBngJPa.mjs";
|
|
3
|
+
import { a as resolveMatrixCredentialsFilename, c as resolveMatrixStateLayoutChildDepth, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, n as isMatrixActiveTokenRootDirectory, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-B51JM-pC.mjs";
|
|
4
4
|
export { findMatrixAccountEntry, getMatrixScopedEnvVarNames, hasImplicitMatrixAccountConfig, hashMatrixAccessToken, isMatrixActiveTokenRootDirectory, listMatrixEnvAccountIds, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, resolveMatrixStateLayoutChildDepth, sanitizeMatrixPathSegment };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata } from "./.setup/cli-metadata-
|
|
2
|
-
import { a as setMatrixRuntimeLifecycle } from "./.setup/runtime-
|
|
1
|
+
import { n as registerMatrixCliMetadata } from "./.setup/cli-metadata-C60BW1oa.mjs";
|
|
2
|
+
import { a as setMatrixRuntimeLifecycle } from "./.setup/runtime-1kn1P6io.mjs";
|
|
3
3
|
import "./runtime-setter-api.js";
|
|
4
4
|
import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";
|
|
5
5
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
6
6
|
import { runWithLocalStateMutationOwner } from "openclaw/plugin-sdk/gateway-runtime";
|
|
7
7
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
8
|
-
|
|
8
|
+
//#region extensions/matrix/index.ts
|
|
9
9
|
const loadMatrixHandlersRuntimeModule = createLazyRuntimeModule(() => import("./plugin-entry.handlers.runtime.js"));
|
|
10
10
|
function registerMatrixFullRuntime(api) {
|
|
11
11
|
setMatrixRuntimeLifecycle(api.runtime, api.lifecycle);
|
|
@@ -68,4 +68,5 @@ var matrix_default = defineBundledChannelEntry({
|
|
|
68
68
|
registerCliMetadata: registerMatrixCliMetadata,
|
|
69
69
|
registerFull: registerMatrixFullRuntime
|
|
70
70
|
});
|
|
71
|
+
//#endregion
|
|
71
72
|
export { matrix_default as default, registerMatrixFullRuntime };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as resolveMatrixAuthContext } from "./.setup/client-
|
|
1
|
+
import { d as resolveMatrixAuthContext } from "./.setup/client-BEl7PU1_.mjs";
|
|
2
2
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
3
3
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
|
-
|
|
6
|
-
const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./.setup/verification-
|
|
5
|
+
//#region extensions/matrix/src/plugin-entry.runtime.ts
|
|
6
|
+
const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./.setup/verification-CuT5ZBDO.mjs").then((n) => n.y));
|
|
7
7
|
function sendError(respond, err) {
|
|
8
8
|
respond(false, { error: formatErrorMessage(err) });
|
|
9
9
|
}
|
|
@@ -79,4 +79,5 @@ async function handleVerificationStatus({ params, respond, context }) {
|
|
|
79
79
|
sendError(respond, err);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
//#endregion
|
|
82
83
|
export { handleVerificationBootstrap, handleVerificationStatus, handleVerifyRecoveryKey };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { i as setMatrixRuntime } from "./.setup/runtime-
|
|
2
|
-
import { a as resolveConfiguredMatrixAccountIds, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-
|
|
3
|
-
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-
|
|
4
|
-
import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-
|
|
5
|
-
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-
|
|
6
|
-
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./.setup/deps-
|
|
1
|
+
import { i as setMatrixRuntime } from "./.setup/runtime-1kn1P6io.mjs";
|
|
2
|
+
import { a as resolveConfiguredMatrixAccountIds, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-CWsL5zIU.mjs";
|
|
3
|
+
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-aEBngJPa.mjs";
|
|
4
|
+
import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-B51JM-pC.mjs";
|
|
5
|
+
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-CPjUA0Ib.mjs";
|
|
6
|
+
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./.setup/deps-L_1bUAGL.mjs";
|
|
7
7
|
import { chunkTextForOutbound as chunkTextForOutbound$1 } from "openclaw/plugin-sdk/text-chunking";
|
|
8
8
|
import { assertHttpUrlTargetsPrivateNetwork, closeDispatcher, createPinnedDispatcher, resolvePinnedHostnameWithPolicy, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
9
9
|
import { formatZonedTimestamp } from "openclaw/plugin-sdk/time-runtime";
|
|
10
10
|
import { writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
|
|
11
|
-
|
|
11
|
+
//#region extensions/matrix/runtime-api.ts
|
|
12
12
|
function chunkTextForOutbound(text, limit) {
|
|
13
13
|
if (text.length === 0 || limit <= 0) return [text];
|
|
14
14
|
if (Number.isFinite(limit) && limit > 0 && !Number.isInteger(limit)) return chunkTextForOutbound$1(text, limit);
|
|
@@ -24,4 +24,5 @@ function chunkTextForOutbound(text, limit) {
|
|
|
24
24
|
if (remaining.length > 0) chunks.push(remaining);
|
|
25
25
|
return chunks;
|
|
26
26
|
}
|
|
27
|
+
//#endregion
|
|
27
28
|
export { assertHttpUrlTargetsPrivateNetwork, chunkTextForOutbound, closeDispatcher, createPinnedDispatcher, ensureMatrixSdkInstalled, findMatrixAccountEntry, formatZonedTimestamp, getMatrixScopedEnvVarNames, hashMatrixAccessToken, isMatrixSdkAvailable, listMatrixEnvAccountIds, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixAccountStringValues, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, resolvePinnedHostnameWithPolicy, sanitizeMatrixPathSegment, setMatrixRuntime, setMatrixThreadBindingIdleTimeoutBySessionKey, setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, setMatrixThreadBindingMaxAgeBySessionKey, setMatrixThreadBindingMaxAgeBySessionKeyAsync, ssrfPolicyFromDangerouslyAllowPrivateNetwork, writeJsonFileAtomically };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as setMatrixRuntimeLifecycle, i as setMatrixRuntime } from "./.setup/runtime-1kn1P6io.mjs";
|
|
2
|
+
export { setMatrixRuntime, setMatrixRuntimeLifecycle };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./.setup/secret-contract-DxyzKSzf.mjs";
|
|
2
|
+
export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as setMatrixRuntime } from "./.setup/runtime-
|
|
2
|
-
import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-
|
|
1
|
+
import { i as setMatrixRuntime } from "./.setup/runtime-1kn1P6io.mjs";
|
|
2
|
+
import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-pNgPVdof.mjs";
|
|
3
3
|
export { createMatrixThreadBindingManager, setMatrixRuntime };
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
3
|
+
//#region extensions/matrix/setup-entry.ts
|
|
4
4
|
var setup_entry_default = defineBundledChannelSetupEntry({
|
|
5
5
|
importMetaUrl: import.meta.url,
|
|
6
6
|
plugin: {
|
|
7
|
-
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-ORC_4yEA.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "matrixSetupPlugin"
|
|
9
9
|
},
|
|
10
10
|
secrets: {
|
|
11
|
-
specifier: fileURLToPath(new URL(".setup/secret-contract-api-
|
|
11
|
+
specifier: fileURLToPath(new URL(".setup/secret-contract-api-CiuSYjUy.mjs", import.meta.url).href),
|
|
12
12
|
exportName: "channelSecrets"
|
|
13
13
|
},
|
|
14
14
|
runtime: {
|
|
15
|
-
specifier: fileURLToPath(new URL(".setup/runtime-setter-api-
|
|
15
|
+
specifier: fileURLToPath(new URL(".setup/runtime-setter-api-DtxDAM-x.mjs", import.meta.url).href),
|
|
16
16
|
exportName: "setMatrixRuntime"
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
+
//#endregion
|
|
19
20
|
export { setup_entry_default as default };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as matrixSetupPlugin } from "./.setup/channel.setup-p6oll48W.mjs";
|
|
2
|
+
export { matrixSetupPlugin };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
|
-
|
|
3
|
-
const loadMatrixSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-
|
|
2
|
+
//#region extensions/matrix/subagent-hooks-api.ts
|
|
3
|
+
const loadMatrixSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-CSY4iwa_.mjs"));
|
|
4
4
|
function registerMatrixSubagentHooks(api) {
|
|
5
5
|
api.on("subagent_ended", async (event) => {
|
|
6
6
|
const { handleMatrixSubagentEnded } = await loadMatrixSubagentHooksModule();
|
|
@@ -11,4 +11,5 @@ function registerMatrixSubagentHooks(api) {
|
|
|
11
11
|
return handleMatrixSubagentDeliveryTarget(event);
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
+
//#endregion
|
|
14
15
|
export { registerMatrixSubagentHooks };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./.setup/thread-binding-api-BvuaKpd0.mjs";
|
|
2
|
+
export { defaultTopLevelPlacement, resolveMatrixInboundConversation as resolveInboundConversation };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-CPjUA0Ib.mjs";
|
|
2
|
+
export { setMatrixThreadBindingIdleTimeoutBySessionKey, setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, setMatrixThreadBindingMaxAgeBySessionKey, setMatrixThreadBindingMaxAgeBySessionKeyAsync };
|
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.26.7 - 2026-10-17
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
- **Windows idle watch CPU:** share native identity and physical-path queries while retaining directory checks. ([#1000](https://github.com/openclaw/fs-safe/pull/1000))
|
|
10
|
+
- **Root containment:** preserve kernel parent semantics through nested and dangling symlink chains, and reject redirected sibling-output parents. ([#993](https://github.com/openclaw/fs-safe/pull/993))
|
|
11
|
+
- **Legacy native policy migration:** removed Python-mode settings now fail with an actionable migration error when no explicit native policy is selected. ([#995](https://github.com/openclaw/fs-safe/pull/995))
|
|
12
|
+
|
|
13
|
+
### Fixes
|
|
14
|
+
|
|
15
|
+
- **Windows watch scan CPU:** share native identity and physical-path queries while retaining every listed entry's directory checks. Thanks @martinderm for reporting the idle Gateway CPU regression in [openclaw#174341](https://github.com/openclaw/openclaw/issues/174341). ([#1000](https://github.com/openclaw/fs-safe/pull/1000))
|
|
16
|
+
- **ZIP integrity:** update the native ZIP decoder while preserving format-error and byte-limit classifications for entries that exceed their declared size. ([#997](https://github.com/openclaw/fs-safe/pull/997))
|
|
17
|
+
- **Release dry runs:** keep generated unsigned package artifacts outside source-provenance checks so the final package smoke test can complete without signing or publishing. ([#996](https://github.com/openclaw/fs-safe/pull/996))
|
|
18
|
+
- **Root containment:** resolve nested and dangling symlink chains with kernel parent semantics, and reject redirected sibling-output parents before invoking external writers. Thanks @yetval for [#987](https://github.com/openclaw/fs-safe/issues/987) and [#986](https://github.com/openclaw/fs-safe/issues/986). ([#993](https://github.com/openclaw/fs-safe/pull/993))
|
|
19
|
+
- **Watch invalidations:** refresh the admitted parent after transient create/delete activity so consumer caches cannot retain a file absent from both watcher scans. ([#993](https://github.com/openclaw/fs-safe/pull/993))
|
|
20
|
+
|
|
21
|
+
### Compatibility
|
|
22
|
+
|
|
23
|
+
- **Legacy native policy migration:** reject removed `FS_SAFE_PYTHON_MODE` and `OPENCLAW_FS_SAFE_PYTHON_MODE` settings with an actionable migration error when no explicit native policy is selected, instead of silently changing `require` or `off` to `auto`. Set the corresponding native-mode variable to the same value before upgrading. ([#995](https://github.com/openclaw/fs-safe/pull/995))
|
|
24
|
+
|
|
25
|
+
## 0.26.6 - 2026-10-15
|
|
26
|
+
|
|
27
|
+
### Fixes
|
|
28
|
+
|
|
29
|
+
- **Btrfs file cloning:** explicit `clone: "auto"` and `"always"` copies match NOCOW on their new empty destination so different source and destination-directory policies do not force a full byte copy. Sources and unrelated destination flags are preserved; automatic fallback recreates the destination with its ordinary inherited policy.
|
|
30
|
+
|
|
5
31
|
## 0.26.5 - 2026-10-14
|
|
6
32
|
|
|
7
33
|
### Highlights
|
|
@@ -10,7 +10,7 @@ function admitUncachedCopyPath(input, create = false, admittedRoot) {
|
|
|
10
10
|
if (!path.isAbsolute(input.rootPath) || !path.isAbsolute(input.absolutePath)) {
|
|
11
11
|
throw new FsSafeError("invalid-path", "copy roots and paths must be absolute");
|
|
12
12
|
}
|
|
13
|
-
const root = admittedRoot ?? captureDirectoryGuard(realpathSync(input.rootPath), "native", { bigint: true });
|
|
13
|
+
const root = admittedRoot ?? captureDirectoryGuard(realpathSync.native(input.rootPath), "native", { bigint: true });
|
|
14
14
|
// Canonical POSIX callers already own a freshly checked root. Keep the
|
|
15
15
|
// resolver's lexical/symlink walk, but do not rediscover that root each time.
|
|
16
16
|
const rootCanonicalPath = admittedRoot?.realPath;
|
|
@@ -75,7 +75,7 @@ export function createCopyPathAdmissionCache() {
|
|
|
75
75
|
}
|
|
76
76
|
let root = roots.get(input.rootPath);
|
|
77
77
|
if (!root) {
|
|
78
|
-
const canonical = realpathSync(input.rootPath);
|
|
78
|
+
const canonical = realpathSync.native(input.rootPath);
|
|
79
79
|
if (canonical !== input.rootPath)
|
|
80
80
|
return admitUncachedCopyPath(input, create);
|
|
81
81
|
root = captureDirectoryGuard(canonical, "native", { bigint: true });
|