@openclaw/matrix 2026.5.19-beta.2 → 2026.5.20-beta.1
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/{account-selection-BWwIruri.js → account-selection-C3arLOhC.js} +2 -2
- package/dist/api.js +8 -8
- package/dist/{approval-handler.runtime-BsELVBtu.js → approval-handler.runtime-Dd07_8Bl.js} +6 -6
- package/dist/{approval-ids-BG6ZMpPU.js → approval-ids-BxkgpCbC.js} +1 -1
- package/dist/{approval-reaction-auth-BTy3BiII.js → approval-reaction-auth-CEVNfsxP.js} +2 -2
- package/dist/{approval-reactions-Cwd1PMCC.js → approval-reactions-BRGQgOu2.js} +1 -1
- package/dist/auth-presence.js +1 -1
- package/dist/{channel-ClUVS-7H.js → channel-D_CwbxZT.js} +21 -21
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-B1QurRaj.js → channel.runtime-CdvR9rPM.js} +8 -8
- package/dist/{cli-MXYE-QK9.js → cli-9WDb7vD3.js} +16 -16
- package/dist/{cli-metadata-BLapN6MO.js → cli-metadata-DkG8K_HZ.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-BgeA9XSX.js → client-BUC2jCAX.js} +3 -3
- package/dist/{client-YaBjqbMW.js → client-BbuTUaZb.js} +7 -7
- package/dist/{client-bootstrap-DcvAtu6x.js → client-bootstrap-bDVMLctr.js} +4 -4
- package/dist/{config-schema-B1OTtJSg.js → config-schema-B29Tb4I2.js} +2 -2
- package/dist/contract-api.js +7 -7
- package/dist/{create-client-B5b-7vQX.js → create-client-Bt3o4spU.js} +5 -5
- package/dist/{credentials-DK0lK9cZ.js → credentials-CDjQjIds.js} +2 -2
- package/dist/{credentials-read-cmHgousK.js → credentials-read-DySnJlLx.js} +4 -4
- package/dist/{credentials-write.runtime-DhPvBU-C.js → credentials-write.runtime-Ca2MN99y.js} +1 -1
- package/dist/{crypto-runtime-Dt4XDOFO.js → crypto-runtime-yojbuOD8.js} +5 -5
- package/dist/{directory-live-Bwk5Ij-k.js → directory-live-CF8-oMy9.js} +5 -5
- package/dist/{doctor-KuNYX5N3.js → doctor-Ct_9WGLY.js} +4 -4
- package/dist/{doctor-contract-s4gUPmRN.js → doctor-contract-D9oKDvsJ.js} +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/{draft-stream-CI_W386P.js → draft-stream-BBwgRoUh.js} +1 -1
- package/dist/{encryption-guidance-1QoIvd-g.js → encryption-guidance-CU-OAPMg.js} +2 -2
- package/dist/{env-auth-BJqGI8M6.js → env-auth-DIzOApj0.js} +1 -1
- package/dist/helper-api.js +3 -3
- package/dist/{http-client-r8CROzot.js → http-client-DJNugFzO.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{legacy-crypto-inspector-_gWJGVQ_.js → legacy-crypto-inspector-FOIK8zmf.js} +1 -1
- package/dist/{legacy-crypto-restore-B9eF1gob.js → legacy-crypto-restore-BgW3I87R.js} +2 -2
- package/dist/{logging-bJ8EEe1G.js → logging-BR-gcAjp.js} +2 -2
- package/dist/{matrix-migration.runtime-Cf_wX9mk.js → matrix-migration.runtime-BeJ2i3_e.js} +6 -6
- package/dist/{media-text-C6UAn_TD.js → media-text-BJv2N4wk.js} +1 -1
- package/dist/{messages-mMLZ7DIz.js → messages-C3mtEl6W.js} +5 -5
- package/dist/{migration-snapshot.runtime-C7yiKWS7.js → migration-snapshot.runtime-VGD4QfeS.js} +1 -1
- package/dist/{monitor-4YYdKe_C.js → monitor-BbxdWm4v.js} +33 -33
- package/dist/plugin-entry.handlers.runtime.js +2 -2
- package/dist/probe.runtime-BzgYdO2A.js +3 -0
- package/dist/{profile-update-CWtZzuqa.js → profile-update-Rn6jH803.js} +3 -3
- package/dist/{reaction-events-1XDDYTnu.js → reaction-events-DmHbgP3C.js} +6 -6
- package/dist/{resolve-targets-DrNhr-4K.js → resolve-targets-Bsvenfrx.js} +3 -3
- package/dist/{resolver.runtime-B6QeiGj7.js → resolver.runtime-CINI2ek_.js} +1 -1
- package/dist/{route-R-ajT21_.js → route-DY6at4qJ.js} +1 -1
- package/dist/{runtime-api-C-QeChQj.js → runtime-api-CtNLoJ_E.js} +1 -1
- package/dist/runtime-api.js +6 -6
- package/dist/runtime-heavy-api.js +2 -2
- package/dist/runtime-setter-api.js +1 -1
- package/dist/{sdk-DDUAi9uh.js → sdk-DYgMrfU0.js} +11 -11
- package/dist/{secret-contract-e4SdhUtT.js → secret-contract-DTgQyQxc.js} +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/{send-EorDXlGl.js → send-DxmZAhzk.js} +6 -6
- package/dist/{setup-bootstrap-CfQFd5vJ.js → setup-bootstrap-DrbtSj86.js} +4 -4
- package/dist/{setup-core-CnUlkNmz.js → setup-core-3cj9Xl8X.js} +6 -6
- package/dist/setup-plugin-api.js +3 -3
- package/dist/{setup-surface-BdT1ex7Z.js → setup-surface-BQpdB86d.js} +10 -10
- package/dist/{shared-BA9WrDZY.js → shared-CiCENm9L.js} +14 -15
- package/dist/{startup-abort-br7BZHJQ.js → startup-abort-Bs0Up_Qx.js} +1 -1
- package/dist/{startup-verification-CTfhD7V_.js → startup-verification-BmTEngvU.js} +2 -2
- package/dist/{storage-HI1nL3im.js → storage-onzulLbU.js} +4 -4
- package/dist/{subagent-hooks-api-BgQgDwAS.js → subagent-hooks-api-bedE4GYl.js} +4 -4
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/test-api.js +3 -3
- package/dist/{thread-binding-api-Bx55B6hm.js → thread-binding-api-DRbBZlhS.js} +1 -1
- package/dist/thread-binding-api.js +1 -1
- package/dist/{thread-bindings-CK8lw9qa.js → thread-bindings-J5zieZly.js} +3 -3
- package/dist/thread-bindings-runtime.js +1 -1
- package/dist/{tool-actions.runtime-mwuaf5-A.js → tool-actions.runtime-Degh72hC.js} +9 -9
- package/dist/{verification-B5Iszq8W.js → verification-0rKbLW-L.js} +3 -3
- package/package.json +4 -4
- package/dist/probe.runtime-DIVHJw2r.js +0 -3
- /package/dist/{active-client-DUi-lumi.js → active-client-DXvz2gCo.js} +0 -0
- /package/dist/{async-lock-SsmtFXtt.js → async-lock-BcLS4KOc.js} +0 -0
- /package/dist/{backup-health-3BHbHxyd.js → backup-health-Dm_YMVFT.js} +0 -0
- /package/dist/{config-paths-msaDGRh6.js → config-paths-ZBCMwSos.js} +0 -0
- /package/dist/{config-secret-input.runtime-nbLCnJq7.js → config-secret-input.runtime-CwsP3--c.js} +0 -0
- /package/dist/{crypto-node.runtime-D9qxgRPa.js → crypto-node.runtime-6Aj_ltHQ.js} +0 -0
- /package/dist/{deps-LqqGWPWt.js → deps-CAdiytPJ.js} +0 -0
- /package/dist/{device-health-Di9MUzFj.js → device-health-D4LBxuPq.js} +0 -0
- /package/dist/{env-vars-C7uQCTKn.js → env-vars-KzaYveuy.js} +0 -0
- /package/dist/{errors-BpHgvm2o.js → errors-C47hvAF8.js} +0 -0
- /package/dist/{exec-approval-resolver-C8faS0XB.js → exec-approval-resolver-f9j6staN.js} +0 -0
- /package/dist/{migration-snapshot-backup-BWTIFXgQ.js → migration-snapshot-backup-YcCrSjbE.js} +0 -0
- /package/dist/{reaction-common-B-QgNfEs.js → reaction-common-DkrQdBSZ.js} +0 -0
- /package/dist/{record-shared-CHWJCTWf.js → record-shared-CvzjvHRn.js} +0 -0
- /package/dist/{rolldown-runtime-DUslC3ob.js → rolldown-runtime-8H4AJuhK.js} +0 -0
- /package/dist/{runtime-Dog86njy.js → runtime-6S3DNFNv.js} +0 -0
- /package/dist/{runtime-lwTSy9Yt.js → runtime-BefyhPWv.js} +0 -0
- /package/dist/{storage-paths-BJLdnCjV.js → storage-paths-BV2Z7bns.js} +0 -0
- /package/dist/{sync-state-Bx0gPaGA.js → sync-state-CWbp0QSY.js} +0 -0
- /package/dist/{target-ids-80nQ2gql.js → target-ids-B-5aQxwn.js} +0 -0
- /package/dist/{thread-bindings-shared-DK-d-oYX.js → thread-bindings-shared-CKnY4LSd.js} +0 -0
- /package/dist/{timeout-abort-signal-sT0wAxVn.js → timeout-abort-signal-DMrgRFIy.js} +0 -0
- /package/dist/{url-validation-CBZBxN3F.js → url-validation-GRHde6lq.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as formatPollResultsAsText, D as parsePollStartContent, O as resolvePollReferenceEventId, S as formatPollAsText, T as isPollStartType, w as isPollEventType, x as buildPollResultsSummary } from "./send-
|
|
1
|
+
import { C as formatPollResultsAsText, D as parsePollStartContent, O as resolvePollReferenceEventId, S as formatPollAsText, T as isPollStartType, w as isPollEventType, x as buildPollResultsSummary } from "./send-DxmZAhzk.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region extensions/matrix/src/matrix/poll-summary.ts
|
|
4
4
|
function resolveMatrixPollRootEventId(event) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as isMatrixNotFoundError } from "./errors-
|
|
2
|
-
import { a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-
|
|
3
|
-
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-
|
|
4
|
-
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-
|
|
5
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
1
|
+
import { r as isMatrixNotFoundError } from "./errors-C47hvAF8.js";
|
|
2
|
+
import { a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-DxmZAhzk.js";
|
|
3
|
+
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
4
|
+
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-BJv2N4wk.js";
|
|
5
|
+
import { r as withResolvedRoomAction } from "./client-BUC2jCAX.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
8
8
|
function resolveMatrixActionLimit(raw, fallback) {
|
package/dist/{migration-snapshot.runtime-C7yiKWS7.js → migration-snapshot.runtime-VGD4QfeS.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-
|
|
1
|
+
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
|
|
2
2
|
export { maybeCreateMatrixMigrationSnapshot };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { t as isMatrixQualifiedUserId } from "./target-ids-
|
|
2
|
-
import { c as resolveMatrixAccountConfig, s as resolveMatrixAccountAllowlistConfig } from "./config-paths-
|
|
3
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
4
|
-
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-
|
|
5
|
-
import { a as buildAllowlistResolutionSummary, c as createTypingCallbacks, d as logInboundDrop, f as logTypingFailure, h as toLocationContext, i as addAllowlistUserEntriesFromConfigEntry, l as formatLocationText, m as summarizeMapping, n as resolveMatrixStoredSessionMeta, o as canonicalizeAllowlistWithResolvedIds, p as patchAllowlistUsersInConfigEntries, r as resolveMatrixRoomConfig, s as createReplyPrefixOptions, u as getAgentScopedMediaLocalRoots } from "./channel-
|
|
6
|
-
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-
|
|
7
|
-
import { r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-
|
|
8
|
-
import { i as resolveMatrixStateFilePath } from "./storage-
|
|
9
|
-
import { D as parsePollStartContent, S as formatPollAsText, T as isPollStartType, _ as readJoinedMatrixMembers, a as sendMessageMatrix, f as promoteMatrixDirectRoomCandidate, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, t as chunkMatrixText, v as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, w as isPollEventType } from "./send-
|
|
10
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
11
|
-
import { t as createAsyncLock } from "./async-lock-
|
|
12
|
-
import { i as throwIfMatrixStartupAborted, o as LogService, r as isMatrixStartupAbortError } from "./startup-abort-
|
|
13
|
-
import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-
|
|
14
|
-
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-
|
|
15
|
-
import { a as resolveMatrixMessageBody, i as resolveMatrixMessageAttachment, n as formatMatrixMediaUnavailableText, r as formatMatrixMessageText, s as fetchMatrixPollSnapshot, t as formatMatrixMediaTooLargeText } from "./media-text-
|
|
16
|
-
import { n as setActiveMatrixClient } from "./active-client-
|
|
17
|
-
import { t as isBunRuntime } from "./runtime-
|
|
18
|
-
import { c as backfillMatrixAuthDeviceIdAfterStartup, i as resolveSharedMatrixClient, l as resolveMatrixAuth, n as releaseSharedClientInstance, u as resolveMatrixAuthContext } from "./shared-
|
|
19
|
-
import "./client-
|
|
20
|
-
import { d as resolveDefaultGroupPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, m as resolveThreadBindingMaxAgeMsForChannel, p as resolveThreadBindingIdleTimeoutMsForChannel, t as GROUP_POLICY_BLOCKED_LABEL, u as resolveAllowlistProviderRuntimeGroupPolicy } from "./runtime-api-
|
|
21
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
22
|
-
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-
|
|
23
|
-
import { a as EventType, i as resolveMatrixThreadRouting, n as resolveMatrixReplyToEventId, o as RelationType, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-
|
|
1
|
+
import { t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
2
|
+
import { c as resolveMatrixAccountConfig, s as resolveMatrixAccountAllowlistConfig } from "./config-paths-ZBCMwSos.js";
|
|
3
|
+
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
4
|
+
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-3cj9Xl8X.js";
|
|
5
|
+
import { a as buildAllowlistResolutionSummary, c as createTypingCallbacks, d as logInboundDrop, f as logTypingFailure, h as toLocationContext, i as addAllowlistUserEntriesFromConfigEntry, l as formatLocationText, m as summarizeMapping, n as resolveMatrixStoredSessionMeta, o as canonicalizeAllowlistWithResolvedIds, p as patchAllowlistUsersInConfigEntries, r as resolveMatrixRoomConfig, s as createReplyPrefixOptions, u as getAgentScopedMediaLocalRoots } from "./channel-D_CwbxZT.js";
|
|
6
|
+
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-B29Tb4I2.js";
|
|
7
|
+
import { r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
8
|
+
import { i as resolveMatrixStateFilePath } from "./storage-onzulLbU.js";
|
|
9
|
+
import { D as parsePollStartContent, S as formatPollAsText, T as isPollStartType, _ as readJoinedMatrixMembers, a as sendMessageMatrix, f as promoteMatrixDirectRoomCandidate, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, t as chunkMatrixText, v as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, w as isPollEventType } from "./send-DxmZAhzk.js";
|
|
10
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-J5zieZly.js";
|
|
11
|
+
import { t as createAsyncLock } from "./async-lock-BcLS4KOc.js";
|
|
12
|
+
import { i as throwIfMatrixStartupAborted, o as LogService, r as isMatrixStartupAbortError } from "./startup-abort-Bs0Up_Qx.js";
|
|
13
|
+
import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-DJNugFzO.js";
|
|
14
|
+
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-CWbp0QSY.js";
|
|
15
|
+
import { a as resolveMatrixMessageBody, i as resolveMatrixMessageAttachment, n as formatMatrixMediaUnavailableText, r as formatMatrixMessageText, s as fetchMatrixPollSnapshot, t as formatMatrixMediaTooLargeText } from "./media-text-BJv2N4wk.js";
|
|
16
|
+
import { n as setActiveMatrixClient } from "./active-client-DXvz2gCo.js";
|
|
17
|
+
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
18
|
+
import { c as backfillMatrixAuthDeviceIdAfterStartup, i as resolveSharedMatrixClient, l as resolveMatrixAuth, n as releaseSharedClientInstance, u as resolveMatrixAuthContext } from "./shared-CiCENm9L.js";
|
|
19
|
+
import "./client-BbuTUaZb.js";
|
|
20
|
+
import { d as resolveDefaultGroupPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, m as resolveThreadBindingMaxAgeMsForChannel, p as resolveThreadBindingIdleTimeoutMsForChannel, t as GROUP_POLICY_BLOCKED_LABEL, u as resolveAllowlistProviderRuntimeGroupPolicy } from "./runtime-api-CtNLoJ_E.js";
|
|
21
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-Bsvenfrx.js";
|
|
22
|
+
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-CU-OAPMg.js";
|
|
23
|
+
import { a as EventType, i as resolveMatrixThreadRouting, n as resolveMatrixReplyToEventId, o as RelationType, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-DY6at4qJ.js";
|
|
24
24
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
25
25
|
import { createPreviewMessageReceipt, defineFinalizableLivePreviewAdapter, deliverWithFinalizableLivePreviewAdapter } from "openclaw/plugin-sdk/channel-message";
|
|
26
26
|
import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
|
|
@@ -799,7 +799,7 @@ const SAS_NOTICE_RETRY_DELAY_MS = 750;
|
|
|
799
799
|
const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
|
|
800
800
|
let matrixDirectRoomDepsPromise;
|
|
801
801
|
async function loadMatrixDirectRoomDeps() {
|
|
802
|
-
matrixDirectRoomDepsPromise ??= Promise.all([import("./send-
|
|
802
|
+
matrixDirectRoomDepsPromise ??= Promise.all([import("./send-DxmZAhzk.js").then((n) => n.d), import("./send-DxmZAhzk.js").then((n) => n.m)]).then(([directManagementModule, directRoomModule]) => ({
|
|
803
803
|
inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
|
|
804
804
|
isStrictDirectRoom: directRoomModule.isStrictDirectRoom
|
|
805
805
|
}));
|
|
@@ -1211,7 +1211,7 @@ function createMatrixPostHealthySyncDecryptFailureTracker(params) {
|
|
|
1211
1211
|
warningEmitted = true;
|
|
1212
1212
|
const rooms = [...new Set(observations.map((entry) => entry.roomId))].slice(0, MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_SAMPLE_LIMIT);
|
|
1213
1213
|
const senders = [...new Set(observations.map((entry) => entry.sender).filter(Boolean))].slice(0, MATRIX_POST_HEALTHY_SYNC_DECRYPT_FAILURE_SAMPLE_LIMIT);
|
|
1214
|
-
const eventIds = observations.slice(-
|
|
1214
|
+
const eventIds = observations.slice(-3).map((entry) => entry.eventId);
|
|
1215
1215
|
const latestError = observations.at(-1)?.error ?? error.message;
|
|
1216
1216
|
return {
|
|
1217
1217
|
freshAfterHealthySync: true,
|
|
@@ -2008,7 +2008,7 @@ let sessionBindingRuntimePromise;
|
|
|
2008
2008
|
let matrixReactionEventsPromise;
|
|
2009
2009
|
let matrixDraftStreamPromise;
|
|
2010
2010
|
function loadMatrixSendModule() {
|
|
2011
|
-
matrixSendModulePromise ??= import("./send-
|
|
2011
|
+
matrixSendModulePromise ??= import("./send-DxmZAhzk.js").then((n) => n.l);
|
|
2012
2012
|
return matrixSendModulePromise;
|
|
2013
2013
|
}
|
|
2014
2014
|
function loadAcpBindingRuntime() {
|
|
@@ -2020,11 +2020,11 @@ function loadSessionBindingRuntime() {
|
|
|
2020
2020
|
return sessionBindingRuntimePromise;
|
|
2021
2021
|
}
|
|
2022
2022
|
function loadMatrixReactionEvents() {
|
|
2023
|
-
matrixReactionEventsPromise ??= import("./reaction-events-
|
|
2023
|
+
matrixReactionEventsPromise ??= import("./reaction-events-DmHbgP3C.js");
|
|
2024
2024
|
return matrixReactionEventsPromise;
|
|
2025
2025
|
}
|
|
2026
2026
|
function loadMatrixDraftStream() {
|
|
2027
|
-
matrixDraftStreamPromise ??= import("./draft-stream-
|
|
2027
|
+
matrixDraftStreamPromise ??= import("./draft-stream-BBwgRoUh.js");
|
|
2028
2028
|
return matrixDraftStreamPromise;
|
|
2029
2029
|
}
|
|
2030
2030
|
const MAX_TRACKED_PAIRING_REPLY_SENDERS = 512;
|
|
@@ -3703,11 +3703,11 @@ function createMatrixRoomInfoResolver(client) {
|
|
|
3703
3703
|
let matrixStartupMaintenanceDepsPromise;
|
|
3704
3704
|
async function loadMatrixStartupMaintenanceDeps() {
|
|
3705
3705
|
matrixStartupMaintenanceDepsPromise ??= Promise.all([
|
|
3706
|
-
import("./setup-core-
|
|
3707
|
-
import("./device-health-
|
|
3708
|
-
import("./setup-core-
|
|
3709
|
-
import("./legacy-crypto-restore-
|
|
3710
|
-
import("./startup-verification-
|
|
3706
|
+
import("./setup-core-3cj9Xl8X.js").then((n) => n.s),
|
|
3707
|
+
import("./device-health-D4LBxuPq.js"),
|
|
3708
|
+
import("./setup-core-3cj9Xl8X.js").then((n) => n.a),
|
|
3709
|
+
import("./legacy-crypto-restore-BgW3I87R.js"),
|
|
3710
|
+
import("./startup-verification-BmTEngvU.js")
|
|
3711
3711
|
]).then(([configUpdateModule, deviceHealthModule, profileModule, legacyCryptoRestoreModule, startupVerificationModule]) => ({
|
|
3712
3712
|
updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
|
|
3713
3713
|
summarizeMatrixDeviceHealth: deviceHealthModule.summarizeMatrixDeviceHealth,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as formatMatrixErrorMessage } from "./errors-
|
|
1
|
+
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
//#region extensions/matrix/src/plugin-entry.runtime.ts
|
|
4
4
|
let matrixVerificationRuntimePromise;
|
|
5
5
|
function loadMatrixVerificationRuntime() {
|
|
6
|
-
matrixVerificationRuntimePromise ??= import("./verification-
|
|
6
|
+
matrixVerificationRuntimePromise ??= import("./verification-0rKbLW-L.js").then((n) => n.y);
|
|
7
7
|
return matrixVerificationRuntimePromise;
|
|
8
8
|
}
|
|
9
9
|
function sendError(respond, err) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
2
|
-
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-
|
|
3
|
-
import { n as withResolvedActionClient } from "./client-
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
|
+
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-3cj9Xl8X.js";
|
|
3
|
+
import { n as withResolvedActionClient } from "./client-BUC2jCAX.js";
|
|
4
4
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
//#region extensions/matrix/src/matrix/actions/profile.ts
|
|
6
6
|
async function updateMatrixOwnProfile(opts = {}) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as resolveMatrixAccountConfig } from "./config-paths-
|
|
2
|
-
import { a as extractMatrixReactionAnnotation } from "./reaction-common-
|
|
3
|
-
import { a as unregisterMatrixApprovalReactionTarget, i as resolveMatrixApprovalReactionTargetWithPersistence } from "./approval-reactions-
|
|
4
|
-
import { i as resolveMatrixThreadRouting, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-
|
|
1
|
+
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
|
+
import { a as extractMatrixReactionAnnotation } from "./reaction-common-DkrQdBSZ.js";
|
|
3
|
+
import { a as unregisterMatrixApprovalReactionTarget, i as resolveMatrixApprovalReactionTargetWithPersistence } from "./approval-reactions-BRGQgOu2.js";
|
|
4
|
+
import { i as resolveMatrixThreadRouting, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-DY6at4qJ.js";
|
|
5
5
|
import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
|
|
6
6
|
//#region extensions/matrix/src/matrix/monitor/reaction-events.ts
|
|
7
7
|
let approvalReactionAuthPromise;
|
|
8
8
|
let execApprovalResolverPromise;
|
|
9
9
|
function loadApprovalReactionAuth() {
|
|
10
|
-
approvalReactionAuthPromise ??= import("./approval-reaction-auth-
|
|
10
|
+
approvalReactionAuthPromise ??= import("./approval-reaction-auth-CEVNfsxP.js");
|
|
11
11
|
return approvalReactionAuthPromise;
|
|
12
12
|
}
|
|
13
13
|
function loadExecApprovalResolver() {
|
|
14
|
-
execApprovalResolverPromise ??= import("./exec-approval-resolver-
|
|
14
|
+
execApprovalResolverPromise ??= import("./exec-approval-resolver-f9j6staN.js");
|
|
15
15
|
return execApprovalResolverPromise;
|
|
16
16
|
}
|
|
17
17
|
function resolveMatrixReactionNotificationMode(params) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-
|
|
3
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
3
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-CF8-oMy9.js";
|
|
4
4
|
import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
//#region extensions/matrix/src/resolve-targets.ts
|
|
6
6
|
var resolve_targets_exports = /* @__PURE__ */ __exportAll({ resolveMatrixTargets: () => resolveMatrixTargets });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
1
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-Bsvenfrx.js";
|
|
2
2
|
//#region extensions/matrix/src/resolver.runtime.ts
|
|
3
3
|
const matrixResolverRuntime = { resolveMatrixTargets };
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-
|
|
1
|
+
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
2
2
|
import { buildAgentSessionKey, deriveLastRoutePolicy, resolveAgentIdFromSessionKey, resolveThreadSessionKeys } from "openclaw/plugin-sdk/routing";
|
|
3
3
|
import { resolveConfiguredAcpBindingRecord } from "openclaw/plugin-sdk/acp-binding-resolve-runtime";
|
|
4
4
|
import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./timeout-abort-signal-
|
|
1
|
+
import "./timeout-abort-signal-DMrgRFIy.js";
|
|
2
2
|
import "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { resolveThreadBindingIdleTimeoutMsForChannel, resolveThreadBindingMaxAgeMsForChannel } from "openclaw/plugin-sdk/conversation-runtime";
|
|
4
4
|
import "openclaw/plugin-sdk/channel-message";
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKey } from "./thread-bindings-shared-
|
|
2
|
-
import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, o as resolveMatrixAccountStringValues, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-
|
|
3
|
-
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-
|
|
4
|
-
import { r as setMatrixRuntime } from "./runtime-
|
|
5
|
-
import { a as resolveMatrixCredentialsPath, c as resolveMatrixLegacyFlatStoreRoot, i as resolveMatrixCredentialsFilename, l as sanitizeMatrixPathSegment, n as resolveMatrixAccountStorageRoot, o as resolveMatrixHomeserverKey, r as resolveMatrixCredentialsDir, s as resolveMatrixLegacyFlatStoragePaths, t as hashMatrixAccessToken } from "./storage-paths-
|
|
6
|
-
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-
|
|
1
|
+
import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKey } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
2
|
+
import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, o as resolveMatrixAccountStringValues, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-C3arLOhC.js";
|
|
3
|
+
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
4
|
+
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
5
|
+
import { a as resolveMatrixCredentialsPath, c as resolveMatrixLegacyFlatStoreRoot, i as resolveMatrixCredentialsFilename, l as sanitizeMatrixPathSegment, n as resolveMatrixAccountStorageRoot, o as resolveMatrixHomeserverKey, r as resolveMatrixCredentialsDir, s as resolveMatrixLegacyFlatStoragePaths, t as hashMatrixAccessToken } from "./storage-paths-BV2Z7bns.js";
|
|
6
|
+
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-CAdiytPJ.js";
|
|
7
7
|
import { assertHttpUrlTargetsPrivateNetwork, closeDispatcher, createPinnedDispatcher, resolvePinnedHostnameWithPolicy, ssrfPolicyFromAllowPrivateNetwork, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
8
8
|
import { writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
|
|
9
9
|
import { formatZonedTimestamp } from "openclaw/plugin-sdk/time-runtime";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as detectLegacyMatrixCrypto, i as autoPrepareLegacyMatrixCrypto, n as hasPendingMatrixMigration, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus, s as detectLegacyMatrixState, t as hasActionableMatrixMigration } from "./matrix-migration.runtime-
|
|
2
|
-
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-
|
|
1
|
+
import { a as detectLegacyMatrixCrypto, i as autoPrepareLegacyMatrixCrypto, n as hasPendingMatrixMigration, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus, s as detectLegacyMatrixState, t as hasActionableMatrixMigration } from "./matrix-migration.runtime-BeJ2i3_e.js";
|
|
2
|
+
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
|
|
3
3
|
export { autoMigrateLegacyMatrixState, autoPrepareLegacyMatrixCrypto, detectLegacyMatrixCrypto, detectLegacyMatrixState, hasActionableMatrixMigration, hasPendingMatrixMigration, maybeCreateMatrixMigrationSnapshot, resolveMatrixMigrationStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as setMatrixRuntime } from "./runtime-
|
|
1
|
+
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
2
|
export { setMatrixRuntime };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { t as isRecord } from "./record-shared-
|
|
3
|
-
import { n as formatMatrixErrorReason, r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-
|
|
4
|
-
import { t as claimCurrentTokenStorageState } from "./storage-
|
|
5
|
-
import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-
|
|
6
|
-
import { t as createAsyncLock } from "./async-lock-
|
|
7
|
-
import { a as ConsoleLogger, i as throwIfMatrixStartupAborted, n as createMatrixStartupAbortError, o as LogService, s as noop } from "./startup-abort-
|
|
8
|
-
import { t as createMatrixJsSdkClientLogger } from "./logging-
|
|
9
|
-
import { a as matrixEventToRaw, n as createMatrixGuardedFetch, o as parseMxc, t as MatrixAuthedHttpClient } from "./http-client-
|
|
10
|
-
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState } from "./sync-state-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { t as isRecord } from "./record-shared-CvzjvHRn.js";
|
|
3
|
+
import { n as formatMatrixErrorReason, r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
4
|
+
import { t as claimCurrentTokenStorageState } from "./storage-onzulLbU.js";
|
|
5
|
+
import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-Dm_YMVFT.js";
|
|
6
|
+
import { t as createAsyncLock } from "./async-lock-BcLS4KOc.js";
|
|
7
|
+
import { a as ConsoleLogger, i as throwIfMatrixStartupAborted, n as createMatrixStartupAbortError, o as LogService, s as noop } from "./startup-abort-Bs0Up_Qx.js";
|
|
8
|
+
import { t as createMatrixJsSdkClientLogger } from "./logging-BR-gcAjp.js";
|
|
9
|
+
import { a as matrixEventToRaw, n as createMatrixGuardedFetch, o as parseMxc, t as MatrixAuthedHttpClient } from "./http-client-DJNugFzO.js";
|
|
10
|
+
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState } from "./sync-state-CWbp0QSY.js";
|
|
11
11
|
import { normalizeNullableString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
12
12
|
import { readFileSync } from "node:fs";
|
|
13
13
|
import path from "node:path";
|
|
@@ -578,7 +578,7 @@ function createMatrixExplicitBootstrapOptions(params) {
|
|
|
578
578
|
let loadedMatrixCryptoRuntime = null;
|
|
579
579
|
let matrixCryptoRuntimePromise = null;
|
|
580
580
|
async function loadMatrixCryptoRuntime() {
|
|
581
|
-
matrixCryptoRuntimePromise ??= import("./crypto-runtime-
|
|
581
|
+
matrixCryptoRuntimePromise ??= import("./crypto-runtime-yojbuOD8.js").then((runtime) => {
|
|
582
582
|
loadedMatrixCryptoRuntime = runtime;
|
|
583
583
|
return runtime;
|
|
584
584
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getMatrixScopedEnvVarNames } from "./env-vars-
|
|
1
|
+
import { t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { collectSecretInputAssignment, getChannelSurface, hasConfiguredSecretInputValue, hasOwnProperty, normalizeSecretStringValue } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
4
4
|
//#region extensions/matrix/src/secret-contract.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-
|
|
1
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-DTgQyQxc.js";
|
|
2
2
|
export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { r as normalizeMatrixResolvableTarget, t as isMatrixQualifiedUserId } from "./target-ids-
|
|
3
|
-
import { c as resolveMatrixAccountConfig } from "./config-paths-
|
|
4
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
5
|
-
import { n as MATRIX_REACTION_EVENT_TYPE, r as buildMatrixReactionContent, t as MATRIX_ANNOTATION_RELATION_TYPE } from "./reaction-common-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { r as normalizeMatrixResolvableTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
3
|
+
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
4
|
+
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
5
|
+
import { n as MATRIX_REACTION_EVENT_TYPE, r as buildMatrixReactionContent, t as MATRIX_ANNOTATION_RELATION_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
6
6
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-message";
|
|
8
8
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
@@ -229,7 +229,7 @@ function buildPollResponseContent(pollEventId, answerIds) {
|
|
|
229
229
|
//#region extensions/matrix/src/matrix/send/client.ts
|
|
230
230
|
let matrixSendClientRuntimePromise = null;
|
|
231
231
|
async function loadMatrixSendClientRuntime() {
|
|
232
|
-
matrixSendClientRuntimePromise ??= import("./client-bootstrap-
|
|
232
|
+
matrixSendClientRuntimePromise ??= import("./client-bootstrap-bDVMLctr.js").then((n) => n.t);
|
|
233
233
|
return await matrixSendClientRuntimePromise;
|
|
234
234
|
}
|
|
235
235
|
function resolveMediaMaxBytes(accountId, cfg) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as hasExplicitMatrixAccountConfig, c as resolveMatrixAccountConfig } from "./config-paths-
|
|
2
|
-
import "./setup-core-
|
|
3
|
-
import { t as formatMatrixErrorMessage } from "./errors-
|
|
4
|
-
import { n as bootstrapMatrixVerification } from "./verification-
|
|
1
|
+
import { a as hasExplicitMatrixAccountConfig, c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
|
+
import "./setup-core-3cj9Xl8X.js";
|
|
3
|
+
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
4
|
+
import { n as bootstrapMatrixVerification } from "./verification-0rKbLW-L.js";
|
|
5
5
|
//#region extensions/matrix/src/setup-bootstrap.ts
|
|
6
6
|
async function maybeBootstrapNewEncryptedMatrixAccount(params) {
|
|
7
7
|
const accountConfig = resolveMatrixAccountConfig({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as resolveMatrixDefaultOrOnlyAccountId, o as resolveMatrixAccountStringValues, r as resolveConfiguredMatrixAccountIds } from "./account-selection-
|
|
3
|
-
import { c as resolveMatrixAccountConfig, i as findMatrixAccountConfig, l as resolveMatrixBaseConfig, n as resolveMatrixConfigPath$1, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-
|
|
4
|
-
import { i as resolveScopedMatrixEnvConfig, n as resolveGlobalMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness } from "./env-auth-
|
|
5
|
-
import { i as loadMatrixCredentials, n as credentialsMatchConfig } from "./credentials-read-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { a as resolveMatrixDefaultOrOnlyAccountId, o as resolveMatrixAccountStringValues, r as resolveConfiguredMatrixAccountIds } from "./account-selection-C3arLOhC.js";
|
|
3
|
+
import { c as resolveMatrixAccountConfig, i as findMatrixAccountConfig, l as resolveMatrixBaseConfig, n as resolveMatrixConfigPath$1, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-ZBCMwSos.js";
|
|
4
|
+
import { i as resolveScopedMatrixEnvConfig, n as resolveGlobalMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness } from "./env-auth-DIzOApj0.js";
|
|
5
|
+
import { i as loadMatrixCredentials, n as credentialsMatchConfig } from "./credentials-read-DySnJlLx.js";
|
|
6
6
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
7
7
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input-runtime";
|
|
@@ -664,7 +664,7 @@ const matrixSetupAdapter = {
|
|
|
664
664
|
input
|
|
665
665
|
}),
|
|
666
666
|
afterAccountConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
667
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
667
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-DrbtSj86.js");
|
|
668
668
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
669
669
|
previousCfg,
|
|
670
670
|
cfg,
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount, n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
2
|
-
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
1
|
+
import { g as resolveMatrixAccount, n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-3cj9Xl8X.js";
|
|
2
|
+
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-B29Tb4I2.js";
|
|
3
3
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
4
4
|
const matrixSetupPlugin = {
|
|
5
5
|
id: "matrix",
|
|
@@ -13,7 +13,7 @@ const matrixSetupPlugin = {
|
|
|
13
13
|
order: 70,
|
|
14
14
|
quickstartAllowFrom: true
|
|
15
15
|
},
|
|
16
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-
|
|
16
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-BQpdB86d.js").then((n) => n.t)).matrixSetupWizard })),
|
|
17
17
|
setup: matrixSetupAdapter,
|
|
18
18
|
capabilities: {
|
|
19
19
|
chatTypes: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-
|
|
3
|
-
import { c as resolveMatrixAccountConfig, t as resolveMatrixConfigFieldPath } from "./config-paths-
|
|
4
|
-
import { r as resolveMatrixEnvAuthReadiness } from "./env-auth-
|
|
5
|
-
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, i as moveSingleMatrixAccountConfigToNamedAccount, l as updateMatrixAccountConfig, p as listMatrixAccountIds, r as resolveMatrixSetupDmAllowFrom } from "./setup-core-
|
|
6
|
-
import { n as validateMatrixHomeserverUrl, r as isPrivateOrLoopbackHost, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-
|
|
7
|
-
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-C3arLOhC.js";
|
|
3
|
+
import { c as resolveMatrixAccountConfig, t as resolveMatrixConfigFieldPath } from "./config-paths-ZBCMwSos.js";
|
|
4
|
+
import { r as resolveMatrixEnvAuthReadiness } from "./env-auth-DIzOApj0.js";
|
|
5
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, i as moveSingleMatrixAccountConfigToNamedAccount, l as updateMatrixAccountConfig, p as listMatrixAccountIds, r as resolveMatrixSetupDmAllowFrom } from "./setup-core-3cj9Xl8X.js";
|
|
6
|
+
import { n as validateMatrixHomeserverUrl, r as isPrivateOrLoopbackHost, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
7
|
+
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-CAdiytPJ.js";
|
|
8
8
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
9
9
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { formatDocsLink, hasConfiguredSecretInput, mergeAllowFromEntries, normalizeAccountId as normalizeAccountId$1, promptAccountId, promptChannelAccessConfig, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
@@ -104,7 +104,7 @@ async function promptMatrixAllowFrom(params) {
|
|
|
104
104
|
pending.push(part);
|
|
105
105
|
}
|
|
106
106
|
if (pending.length > 0) {
|
|
107
|
-
const { resolveMatrixTargets } = await import("./resolve-targets-
|
|
107
|
+
const { resolveMatrixTargets } = await import("./resolve-targets-Bsvenfrx.js").then((n) => n.n);
|
|
108
108
|
const results = await resolveMatrixTargets({
|
|
109
109
|
cfg,
|
|
110
110
|
accountId,
|
|
@@ -232,7 +232,7 @@ async function configureMatrixAccessPrompts(params) {
|
|
|
232
232
|
resolvedIds.push(cleaned);
|
|
233
233
|
continue;
|
|
234
234
|
}
|
|
235
|
-
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-
|
|
235
|
+
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-CF8-oMy9.js").then((n) => n.t);
|
|
236
236
|
const matches = await listMatrixDirectoryGroupsLive({
|
|
237
237
|
cfg: next,
|
|
238
238
|
accountId: params.accountId,
|
|
@@ -507,7 +507,7 @@ const matrixOnboardingAdapter = {
|
|
|
507
507
|
});
|
|
508
508
|
},
|
|
509
509
|
afterConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
510
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
510
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-DrbtSj86.js");
|
|
511
511
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
512
512
|
previousCfg,
|
|
513
513
|
cfg,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as resolveMatrixDefaultOrOnlyAccountId, n as requiresExplicitMatrixDefaultAccount, o as resolveMatrixAccountStringValues } from "./account-selection-
|
|
3
|
-
import { t as getMatrixScopedEnvVarNames } from "./env-vars-
|
|
4
|
-
import { i as findMatrixAccountConfig, l as resolveMatrixBaseConfig, o as listNormalizedMatrixAccountIds, t as resolveMatrixConfigFieldPath } from "./config-paths-
|
|
5
|
-
import { i as resolveScopedMatrixEnvConfig, n as resolveGlobalMatrixEnvConfig } from "./env-auth-
|
|
6
|
-
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-
|
|
7
|
-
import { r as repairCurrentTokenStorageMetaDeviceId } from "./storage-
|
|
8
|
-
import { o as LogService, t as awaitMatrixStartupWithAbort } from "./startup-abort-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { a as resolveMatrixDefaultOrOnlyAccountId, n as requiresExplicitMatrixDefaultAccount, o as resolveMatrixAccountStringValues } from "./account-selection-C3arLOhC.js";
|
|
3
|
+
import { t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
4
|
+
import { i as findMatrixAccountConfig, l as resolveMatrixBaseConfig, o as listNormalizedMatrixAccountIds, t as resolveMatrixConfigFieldPath } from "./config-paths-ZBCMwSos.js";
|
|
5
|
+
import { i as resolveScopedMatrixEnvConfig, n as resolveGlobalMatrixEnvConfig } from "./env-auth-DIzOApj0.js";
|
|
6
|
+
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
7
|
+
import { r as repairCurrentTokenStorageMetaDeviceId } from "./storage-onzulLbU.js";
|
|
8
|
+
import { o as LogService, t as awaitMatrixStartupWithAbort } from "./startup-abort-Bs0Up_Qx.js";
|
|
9
9
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, normalizeAccountId as normalizeAccountId$1, normalizeOptionalAccountId, normalizeOptionalAccountId as normalizeOptionalAccountId$1 } from "openclaw/plugin-sdk/account-id";
|
|
10
10
|
import { coerceSecretRef, normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input-runtime";
|
|
11
11
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -17,28 +17,27 @@ let matrixAuthClientDepsPromise;
|
|
|
17
17
|
let matrixCredentialsReadDepsPromise;
|
|
18
18
|
let matrixCredentialsWriteRuntimePromise;
|
|
19
19
|
let matrixSecretInputDepsPromise;
|
|
20
|
-
let matrixAuthClientDepsForTest;
|
|
21
20
|
const MATRIX_AUTH_REQUEST_RETRY_RE = /\b(fetch failed|econnreset|econnrefused|enotfound|etimedout|ehostunreach|enetunreach|eai_again|und_err_|socket hang up|network|headers timeout|body timeout|connect timeout)\b/i;
|
|
22
21
|
async function loadMatrixAuthClientDeps() {
|
|
23
|
-
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-
|
|
22
|
+
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-DYgMrfU0.js").then((n) => n.n), import("./logging-BR-gcAjp.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
24
23
|
MatrixClient: sdkModule.MatrixClient,
|
|
25
24
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
26
25
|
}));
|
|
27
26
|
return await matrixAuthClientDepsPromise;
|
|
28
27
|
}
|
|
29
28
|
async function loadMatrixCredentialsReadDeps() {
|
|
30
|
-
matrixCredentialsReadDepsPromise ??= import("./credentials-read-
|
|
29
|
+
matrixCredentialsReadDepsPromise ??= import("./credentials-read-DySnJlLx.js").then((n) => n.r).then((credentialsReadModule) => ({
|
|
31
30
|
loadMatrixCredentials: credentialsReadModule.loadMatrixCredentials,
|
|
32
31
|
credentialsMatchConfig: credentialsReadModule.credentialsMatchConfig
|
|
33
32
|
}));
|
|
34
33
|
return await matrixCredentialsReadDepsPromise;
|
|
35
34
|
}
|
|
36
35
|
async function loadMatrixCredentialsWriteRuntime() {
|
|
37
|
-
matrixCredentialsWriteRuntimePromise ??= import("./credentials-write.runtime-
|
|
36
|
+
matrixCredentialsWriteRuntimePromise ??= import("./credentials-write.runtime-Ca2MN99y.js");
|
|
38
37
|
return await matrixCredentialsWriteRuntimePromise;
|
|
39
38
|
}
|
|
40
39
|
async function loadMatrixSecretInputDeps() {
|
|
41
|
-
matrixSecretInputDepsPromise ??= import("./config-secret-input.runtime-
|
|
40
|
+
matrixSecretInputDepsPromise ??= import("./config-secret-input.runtime-CwsP3--c.js").then((runtime) => ({ resolveConfiguredSecretInputString: runtime.resolveConfiguredSecretInputString }));
|
|
42
41
|
return await matrixSecretInputDepsPromise;
|
|
43
42
|
}
|
|
44
43
|
function shouldRetryMatrixAuthRequest(err) {
|
|
@@ -54,7 +53,7 @@ function credentialsMatchBackfillAuthLineage(params) {
|
|
|
54
53
|
async function retryMatrixAuthRequest(label, run) {
|
|
55
54
|
return await retryAsync(run, {
|
|
56
55
|
attempts: 3,
|
|
57
|
-
minDelayMs:
|
|
56
|
+
minDelayMs: 250,
|
|
58
57
|
maxDelayMs: 1500,
|
|
59
58
|
jitter: .1,
|
|
60
59
|
label,
|
|
@@ -462,7 +461,7 @@ var shared_exports = /* @__PURE__ */ __exportAll({
|
|
|
462
461
|
});
|
|
463
462
|
let matrixCreateClientDepsPromise;
|
|
464
463
|
async function loadMatrixCreateClientDeps() {
|
|
465
|
-
matrixCreateClientDepsPromise ??= import("./create-client-
|
|
464
|
+
matrixCreateClientDepsPromise ??= import("./create-client-Bt3o4spU.js").then((n) => n.n).then((runtime) => ({ createMatrixClient: runtime.createMatrixClient }));
|
|
466
465
|
return await matrixCreateClientDepsPromise;
|
|
467
466
|
}
|
|
468
467
|
const sharedClientStates = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
2
|
import { format } from "node:util";
|
|
3
3
|
import { redactSensitiveText } from "openclaw/plugin-sdk/logging-core";
|
|
4
4
|
//#region extensions/matrix/src/matrix/sdk/logger.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as formatMatrixErrorMessage } from "./errors-
|
|
2
|
-
import { a as resolveMatrixStoragePaths } from "./storage-
|
|
1
|
+
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
2
|
+
import { a as resolveMatrixStoragePaths } from "./storage-onzulLbU.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { readJsonFileWithFallback, writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as resolveMatrixDefaultOrOnlyAccountId, n as requiresExplicitMatrixDefaultAccount } from "./account-selection-
|
|
2
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
3
|
-
import { n as resolveMatrixAccountStorageRoot, s as resolveMatrixLegacyFlatStoragePaths } from "./storage-paths-
|
|
1
|
+
import { a as resolveMatrixDefaultOrOnlyAccountId, n as requiresExplicitMatrixDefaultAccount } from "./account-selection-C3arLOhC.js";
|
|
2
|
+
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
+
import { n as resolveMatrixAccountStorageRoot, s as resolveMatrixLegacyFlatStoragePaths } from "./storage-paths-BV2Z7bns.js";
|
|
4
4
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import os from "node:os";
|
|
@@ -178,7 +178,7 @@ async function maybeMigrateLegacyStorage(params) {
|
|
|
178
178
|
if (!shouldMigrateStorage && !shouldMigrateCrypto) return;
|
|
179
179
|
assertLegacyMigrationAccountSelection({ accountKey: params.storagePaths.accountKey });
|
|
180
180
|
const logger = getMatrixRuntime().logging.getChildLogger({ module: "matrix-storage" });
|
|
181
|
-
const { maybeCreateMatrixMigrationSnapshot } = await import("./migration-snapshot.runtime-
|
|
181
|
+
const { maybeCreateMatrixMigrationSnapshot } = await import("./migration-snapshot.runtime-VGD4QfeS.js");
|
|
182
182
|
await maybeCreateMatrixMigrationSnapshot({
|
|
183
183
|
trigger: "matrix-client-fallback",
|
|
184
184
|
env: params.env,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as resolveMatrixTargetIdentity } from "./target-ids-
|
|
3
|
-
import { a as listBindingsForAccount, c as resolveBindingKey, i as listAllBindings, n as getMatrixThreadBindingManager, o as removeBindingRecord } from "./thread-bindings-shared-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { a as resolveMatrixTargetIdentity } from "./target-ids-B-5aQxwn.js";
|
|
3
|
+
import { a as listBindingsForAccount, c as resolveBindingKey, i as listAllBindings, n as getMatrixThreadBindingManager, o as removeBindingRecord } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-binding-runtime";
|
|
6
6
|
import { formatThreadBindingDisabledError, formatThreadBindingSpawnDisabledError, resolveThreadBindingSpawnPolicy } from "openclaw/plugin-sdk/conversation-runtime";
|
|
@@ -167,4 +167,4 @@ function registerMatrixSubagentHooks(api) {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
//#endregion
|
|
170
|
-
export {
|
|
170
|
+
export { handleMatrixSubagentSpawning as i, handleMatrixSubagentDeliveryTarget as n, handleMatrixSubagentEnded as r, registerMatrixSubagentHooks as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as handleMatrixSubagentSpawning, n as handleMatrixSubagentDeliveryTarget, r as handleMatrixSubagentEnded, t as registerMatrixSubagentHooks } from "./subagent-hooks-api-
|
|
1
|
+
import { i as handleMatrixSubagentSpawning, n as handleMatrixSubagentDeliveryTarget, r as handleMatrixSubagentEnded, t as registerMatrixSubagentHooks } from "./subagent-hooks-api-bedE4GYl.js";
|
|
2
2
|
export { handleMatrixSubagentDeliveryTarget, handleMatrixSubagentEnded, handleMatrixSubagentSpawning, registerMatrixSubagentHooks };
|
package/dist/test-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as setMatrixRuntime } from "./runtime-
|
|
2
|
-
import { t as matrixPlugin } from "./channel-
|
|
3
|
-
import { t as MatrixClient } from "./sdk-
|
|
1
|
+
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
|
+
import { t as matrixPlugin } from "./channel-D_CwbxZT.js";
|
|
3
|
+
import { t as MatrixClient } from "./sdk-DYgMrfU0.js";
|
|
4
4
|
export { MatrixClient, matrixPlugin, setMatrixRuntime };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveMatrixTargetIdentity } from "./target-ids-
|
|
1
|
+
import { a as resolveMatrixTargetIdentity } from "./target-ids-B-5aQxwn.js";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
//#region extensions/matrix/src/thread-binding-api.ts
|
|
4
4
|
const defaultTopLevelPlacement = "child";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-
|
|
1
|
+
import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-DRbBZlhS.js";
|
|
2
2
|
export { defaultTopLevelPlacement, resolveMatrixInboundConversation as resolveInboundConversation };
|