@openclaw/matrix 2026.6.33 → 2026.6.35
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/api.js +4 -4
- package/dist/{approval-handler.runtime-Zq8FeqLy.js → approval-handler.runtime-BjBtbrdi.js} +4 -4
- package/dist/{approval-ids-gM2AFaP-.js → approval-ids-D_MGByp6.js} +1 -1
- package/dist/{approval-reaction-auth--lKUos8v.js → approval-reaction-auth-DTQnRx4G.js} +2 -2
- package/dist/{channel-QIfssnwm.js → channel-R4ZIKMwT.js} +16 -13
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-DkbZfBYE.js → channel.runtime-HNV3MjVm.js} +6 -6
- package/dist/{cli-ZiO7g1vT.js → cli-Dpi-JiMX.js} +9 -9
- package/dist/{cli-metadata-Cn_UFU3u.js → cli-metadata-CQ0Fu1Zr.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-COdtuzoa.js → client-BtISa2BM.js} +2 -2
- package/dist/{client-bootstrap-DoOOMP52.js → client-bootstrap-Cp6Nwuoi.js} +1 -1
- package/dist/{client-DnNqVfCX.js → client-rYWNQvAN.js} +2 -2
- package/dist/{config-schema-o1UmRtMF.js → config-schema-BcOo_2Py.js} +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/{create-client-DWe5jGGk.js → create-client-Cy0BcHFg.js} +2 -2
- package/dist/{crypto-runtime-DaHFPR8x.js → crypto-runtime-e0bRP6dB.js} +55 -10
- package/dist/{deps-BVWGd2XS.js → deps-DoQ5mpwP.js} +20 -2
- package/dist/{directory-live-D4ibL3X0.js → directory-live-CJzQ5za7.js} +2 -2
- package/dist/{doctor-BwpkOBwr.js → doctor-wP-H47UF.js} +1 -1
- package/dist/{draft-stream-aZa1gWNI.js → draft-stream-C4X8Txw_.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{legacy-crypto-inspector-tJOj25VL.js → legacy-crypto-inspector-Dl4lMAei.js} +1 -1
- package/dist/{matrix-migration.runtime-dvxE3e5l.js → matrix-migration.runtime-BQ69V3CR.js} +1 -1
- package/dist/{media-text-DS2lvlA2.js → media-text-BkdnLpBE.js} +1 -1
- package/dist/{messages-CMTiMecS.js → messages-BFuuCO_k.js} +4 -3
- package/dist/{monitor-DAHAvlEh.js → monitor-BIXV9yRC.js} +21 -18
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-HSFW4DUU.js +3 -0
- package/dist/{profile-update-DUh6sAqK.js → profile-update-sMwJwi8I.js} +2 -2
- package/dist/{reaction-events-CABcpM-q.js → reaction-events-C690uBKS.js} +1 -1
- package/dist/{resolve-targets-Byrcsv59.js → resolve-targets-CwHoq7hn.js} +1 -1
- package/dist/{resolver.runtime-Blu9khLB.js → resolver.runtime-C_uuPsry.js} +1 -1
- package/dist/runtime-api.js +1 -1
- package/dist/runtime-heavy-api.js +1 -1
- package/dist/{sdk-CpYofZkF.js → sdk-DaHsa7DR.js} +2 -2
- package/dist/{send-eoayPB_l.js → send-BMwJ5LY2.js} +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/{setup-bootstrap-DRzRwu9E.js → setup-bootstrap-D8DQwEcO.js} +2 -2
- package/dist/{setup-core-Ub_idsu1.js → setup-core-CVo-64kh.js} +1 -1
- package/dist/setup-plugin-api.js +3 -3
- package/dist/{setup-surface-CXenmuMm.js → setup-surface-Du6-iuN4.js} +5 -5
- package/dist/{shared-CSN0TWWD.js → shared-QI0RpVnw.js} +2 -2
- package/dist/{thread-bindings-DuoPRata.js → thread-bindings-d512FOPe.js} +1 -1
- package/dist/{tool-actions.runtime-BwP9E9M0.js → tool-actions.runtime-CuxC5hpa.js} +7 -6
- package/dist/{verification-BN8M6A73.js → verification-DBPeo1wO.js} +1 -1
- package/node_modules/linkify-it/README.md +3 -4
- package/node_modules/linkify-it/build/index.cjs.js +44 -41
- package/node_modules/linkify-it/index.mjs +10 -11
- package/node_modules/linkify-it/lib/re.mjs +34 -30
- package/node_modules/linkify-it/package.json +10 -15
- package/node_modules/markdown-it/dist/index.cjs.js +3652 -5378
- package/node_modules/markdown-it/dist/index.cjs.js.map +1 -0
- package/node_modules/markdown-it/dist/markdown-it.js +1399 -4479
- package/node_modules/markdown-it/dist/markdown-it.js.map +1 -0
- package/node_modules/markdown-it/dist/markdown-it.min.js +3 -2
- package/node_modules/markdown-it/dist/markdown-it.min.js.map +1 -0
- package/node_modules/markdown-it/lib/common/html_re.mjs +9 -9
- package/node_modules/markdown-it/lib/common/utils.mjs +2 -11
- package/node_modules/markdown-it/lib/parser_block.mjs +9 -9
- package/node_modules/markdown-it/lib/parser_core.mjs +7 -7
- package/node_modules/markdown-it/lib/parser_inline.mjs +16 -16
- package/node_modules/markdown-it/lib/renderer.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/blockquote.mjs +6 -6
- package/node_modules/markdown-it/lib/rules_block/code.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/fence.mjs +4 -4
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +7 -7
- package/node_modules/markdown-it/lib/rules_block/hr.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +6 -6
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +8 -8
- package/node_modules/markdown-it/lib/rules_block/list.mjs +6 -6
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +5 -5
- package/node_modules/markdown-it/lib/rules_block/reference.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_block/state_block.mjs +6 -6
- package/node_modules/markdown-it/lib/rules_block/table.mjs +4 -4
- package/node_modules/markdown-it/lib/rules_core/block.mjs +3 -3
- package/node_modules/markdown-it/lib/rules_core/linkify.mjs +15 -15
- package/node_modules/markdown-it/lib/rules_core/normalize.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/autolink.mjs +17 -17
- package/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +8 -8
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +7 -7
- package/node_modules/markdown-it/lib/rules_inline/escape.mjs +15 -1
- package/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_inline/link.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +10 -10
- package/node_modules/markdown-it/lib/token.mjs +12 -12
- package/node_modules/markdown-it/package.json +25 -34
- package/npm-shrinkwrap.json +12 -12
- package/package.json +5 -5
- package/dist/probe.runtime-DKRqRegP.js +0 -3
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-BZWN9tGS.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
-
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-
|
|
4
|
-
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-
|
|
5
|
-
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-
|
|
3
|
+
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-CVo-64kh.js";
|
|
4
|
+
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-R4ZIKMwT.js";
|
|
5
|
+
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-BcOo_2Py.js";
|
|
6
6
|
import { t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
7
7
|
import { r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
8
8
|
import { O as resolveMatrixSqliteStateEnv } from "./crypto-state-store-DK2tcEyP.js";
|
|
9
9
|
import { c as resolveMatrixStateFilePath } from "./storage-BSLHjdgS.js";
|
|
10
|
-
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-
|
|
11
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
10
|
+
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-BMwJ5LY2.js";
|
|
11
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-d512FOPe.js";
|
|
12
12
|
import { n as LogService } from "./logger-D0GCSDQq.js";
|
|
13
|
-
import { a as resolveMatrixMessageAttachment, c as fetchMatrixPollSnapshot, i as isLikelyBareFilename, n as formatMatrixMediaUnavailableText, o as resolveMatrixMessageBody, r as formatMatrixMessageText, t as formatMatrixMediaTooLargeText } from "./media-text-
|
|
13
|
+
import { a as resolveMatrixMessageAttachment, c as fetchMatrixPollSnapshot, i as isLikelyBareFilename, n as formatMatrixMediaUnavailableText, o as resolveMatrixMessageBody, r as formatMatrixMessageText, t as formatMatrixMediaTooLargeText } from "./media-text-BkdnLpBE.js";
|
|
14
14
|
import { n as setActiveMatrixClient } from "./active-client-DXvz2gCo.js";
|
|
15
15
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
16
|
-
import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, l as isMatrixStartupAbortError, n as releaseSharedClientInstance, p as resolveMatrixAuthContext, u as throwIfMatrixStartupAborted } from "./shared-
|
|
17
|
-
import "./client-
|
|
16
|
+
import { d as backfillMatrixAuthDeviceIdAfterStartup, f as resolveMatrixAuth, i as resolveSharedMatrixClient, l as isMatrixStartupAbortError, n as releaseSharedClientInstance, p as resolveMatrixAuthContext, u as throwIfMatrixStartupAborted } from "./shared-QI0RpVnw.js";
|
|
17
|
+
import "./client-BtISa2BM.js";
|
|
18
18
|
import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-BBfH0FfA.js";
|
|
19
19
|
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-CsBoesCU.js";
|
|
20
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
20
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-CwHoq7hn.js";
|
|
21
21
|
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-Bg3IRYoX.js";
|
|
22
22
|
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-CWbp0QSY.js";
|
|
23
23
|
import { a as EventType, i as resolveMatrixThreadRouting, n as resolveMatrixReplyToEventId, o as RelationType, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-DY6at4qJ.js";
|
|
@@ -821,7 +821,7 @@ const SAS_NOTICE_RETRY_DELAY_MS = 750;
|
|
|
821
821
|
const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
|
|
822
822
|
let matrixDirectRoomDepsPromise;
|
|
823
823
|
async function loadMatrixDirectRoomDeps() {
|
|
824
|
-
matrixDirectRoomDepsPromise ??= Promise.all([import("./send-
|
|
824
|
+
matrixDirectRoomDepsPromise ??= Promise.all([import("./send-BMwJ5LY2.js").then((n) => n.d), import("./send-BMwJ5LY2.js").then((n) => n.m)]).then(([directManagementModule, directRoomModule]) => ({
|
|
825
825
|
inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
|
|
826
826
|
isStrictDirectRoom: directRoomModule.isStrictDirectRoom
|
|
827
827
|
}));
|
|
@@ -2235,7 +2235,7 @@ let sessionBindingRuntimePromise;
|
|
|
2235
2235
|
let matrixReactionEventsPromise;
|
|
2236
2236
|
let matrixDraftStreamPromise;
|
|
2237
2237
|
function loadMatrixSendModule() {
|
|
2238
|
-
matrixSendModulePromise ??= import("./send-
|
|
2238
|
+
matrixSendModulePromise ??= import("./send-BMwJ5LY2.js").then((n) => n.l);
|
|
2239
2239
|
return matrixSendModulePromise;
|
|
2240
2240
|
}
|
|
2241
2241
|
function loadAcpBindingRuntime() {
|
|
@@ -2247,11 +2247,11 @@ function loadSessionBindingRuntime() {
|
|
|
2247
2247
|
return sessionBindingRuntimePromise;
|
|
2248
2248
|
}
|
|
2249
2249
|
function loadMatrixReactionEvents() {
|
|
2250
|
-
matrixReactionEventsPromise ??= import("./reaction-events-
|
|
2250
|
+
matrixReactionEventsPromise ??= import("./reaction-events-C690uBKS.js");
|
|
2251
2251
|
return matrixReactionEventsPromise;
|
|
2252
2252
|
}
|
|
2253
2253
|
function loadMatrixDraftStream() {
|
|
2254
|
-
matrixDraftStreamPromise ??= import("./draft-stream-
|
|
2254
|
+
matrixDraftStreamPromise ??= import("./draft-stream-C4X8Txw_.js");
|
|
2255
2255
|
return matrixDraftStreamPromise;
|
|
2256
2256
|
}
|
|
2257
2257
|
async function matrixTextWouldActivateMentions(client, text) {
|
|
@@ -3882,12 +3882,15 @@ function pruneSeenEvents(params) {
|
|
|
3882
3882
|
seen.delete(oldestKey);
|
|
3883
3883
|
}
|
|
3884
3884
|
}
|
|
3885
|
-
function
|
|
3886
|
-
return
|
|
3885
|
+
function openMatrixInboundDedupeStoreOptions(params) {
|
|
3886
|
+
return {
|
|
3887
3887
|
namespace: INBOUND_DEDUPE_NAMESPACE,
|
|
3888
3888
|
maxEntries: DEFAULT_MAX_ENTRIES,
|
|
3889
3889
|
env: resolveMatrixSqliteStateEnv(params)
|
|
3890
|
-
}
|
|
3890
|
+
};
|
|
3891
|
+
}
|
|
3892
|
+
function createInboundDedupeStore(params) {
|
|
3893
|
+
return getMatrixRuntime().state.openKeyedStore(openMatrixInboundDedupeStoreOptions(params));
|
|
3891
3894
|
}
|
|
3892
3895
|
function createInboundDedupeMigrationStore(params) {
|
|
3893
3896
|
return getMatrixRuntime().state.openKeyedStore({
|
|
@@ -4146,9 +4149,9 @@ function createMatrixRoomInfoResolver(client) {
|
|
|
4146
4149
|
let matrixStartupMaintenanceDepsPromise;
|
|
4147
4150
|
async function loadMatrixStartupMaintenanceDeps() {
|
|
4148
4151
|
matrixStartupMaintenanceDepsPromise ??= Promise.all([
|
|
4149
|
-
import("./setup-core-
|
|
4152
|
+
import("./setup-core-CVo-64kh.js").then((n) => n.s),
|
|
4150
4153
|
import("./device-health-D4LBxuPq.js"),
|
|
4151
|
-
import("./setup-core-
|
|
4154
|
+
import("./setup-core-CVo-64kh.js").then((n) => n.a),
|
|
4152
4155
|
import("./legacy-crypto-restore-DenIM7bT.js"),
|
|
4153
4156
|
import("./startup-verification-Bl_QJ2BQ.js")
|
|
4154
4157
|
]).then(([configUpdateModule, deviceHealthModule, profileModule, legacyCryptoRestoreModule, startupVerificationModule]) => ({
|
|
@@ -3,7 +3,7 @@ import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runti
|
|
|
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-DBPeo1wO.js").then((n) => n.y);
|
|
7
7
|
return matrixVerificationRuntimePromise;
|
|
8
8
|
}
|
|
9
9
|
function sendError(respond, err) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
|
-
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-
|
|
3
|
-
import { n as withResolvedActionClient } from "./client-
|
|
2
|
+
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-CVo-64kh.js";
|
|
3
|
+
import { n as withResolvedActionClient } from "./client-rYWNQvAN.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 = {}) {
|
|
@@ -7,7 +7,7 @@ import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-ru
|
|
|
7
7
|
let approvalReactionAuthPromise;
|
|
8
8
|
let execApprovalResolverPromise;
|
|
9
9
|
function loadApprovalReactionAuth() {
|
|
10
|
-
approvalReactionAuthPromise ??= import("./approval-reaction-auth
|
|
10
|
+
approvalReactionAuthPromise ??= import("./approval-reaction-auth-DTQnRx4G.js");
|
|
11
11
|
return approvalReactionAuthPromise;
|
|
12
12
|
}
|
|
13
13
|
function loadExecApprovalResolver() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
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-
|
|
3
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-CJzQ5za7.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-CwHoq7hn.js";
|
|
2
2
|
//#region extensions/matrix/src/resolver.runtime.ts
|
|
3
3
|
const matrixResolverRuntime = { resolveMatrixTargets };
|
|
4
4
|
//#endregion
|
package/dist/runtime-api.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as g
|
|
|
3
3
|
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
4
4
|
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-BWo_ZEMC.js";
|
|
5
5
|
import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKey } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
6
|
-
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-
|
|
6
|
+
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-DoQ5mpwP.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-
|
|
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-BQ69V3CR.js";
|
|
2
2
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
|
|
3
3
|
export { autoMigrateLegacyMatrixState, autoPrepareLegacyMatrixCrypto, detectLegacyMatrixCrypto, detectLegacyMatrixState, hasActionableMatrixMigration, hasPendingMatrixMigration, maybeCreateMatrixMigrationSnapshot, resolveMatrixMigrationStatus };
|
|
@@ -2,7 +2,7 @@ import { n as formatMatrixErrorReason, r as isMatrixNotFoundError, t as formatMa
|
|
|
2
2
|
import { n as LogService, r as noop, t as ConsoleLogger } from "./logger-D0GCSDQq.js";
|
|
3
3
|
import { t as SqliteBackedMatrixSyncStore } from "./file-sync-store-1GY-yvy-.js";
|
|
4
4
|
import { t as MATRIX_IDB_PERSIST_INTERVAL_MS } from "./idb-persistence-lock-DAJ49nZX.js";
|
|
5
|
-
import { c as createMatrixStartupAbortError, u as throwIfMatrixStartupAborted } from "./shared-
|
|
5
|
+
import { c as createMatrixStartupAbortError, u as throwIfMatrixStartupAborted } from "./shared-QI0RpVnw.js";
|
|
6
6
|
import { a as matrixEventToRaw, n as createMatrixGuardedFetch, o as parseMxc, t as MatrixAuthedHttpClient } from "./http-client-BBfH0FfA.js";
|
|
7
7
|
import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-Dm_YMVFT.js";
|
|
8
8
|
import { createMatrixJsSdkClientLogger } from "./logging-QH-48Gr6.js";
|
|
@@ -95,7 +95,7 @@ function createMatrixExplicitBootstrapOptions(params) {
|
|
|
95
95
|
let loadedMatrixCryptoRuntime = null;
|
|
96
96
|
let matrixCryptoRuntimePromise = null;
|
|
97
97
|
async function loadMatrixCryptoRuntime() {
|
|
98
|
-
matrixCryptoRuntimePromise ??= import("./crypto-runtime-
|
|
98
|
+
matrixCryptoRuntimePromise ??= import("./crypto-runtime-e0bRP6dB.js").then((runtime) => {
|
|
99
99
|
loadedMatrixCryptoRuntime = runtime;
|
|
100
100
|
return runtime;
|
|
101
101
|
});
|
|
@@ -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-Cp6Nwuoi.js").then((n) => n.t);
|
|
233
233
|
return await matrixSendClientRuntimePromise;
|
|
234
234
|
}
|
|
235
235
|
function resolveMediaMaxBytes(accountId, cfg) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
2
|
import { s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
3
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
3
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-d512FOPe.js";
|
|
4
4
|
export { createMatrixThreadBindingManager, resetMatrixThreadBindingsForTests, setMatrixRuntime };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
2
|
-
import "./setup-core-
|
|
2
|
+
import "./setup-core-CVo-64kh.js";
|
|
3
3
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
4
|
-
import { n as bootstrapMatrixVerification } from "./verification-
|
|
4
|
+
import { n as bootstrapMatrixVerification } from "./verification-DBPeo1wO.js";
|
|
5
5
|
//#region extensions/matrix/src/setup-bootstrap.ts
|
|
6
6
|
async function maybeBootstrapNewEncryptedMatrixAccount(params) {
|
|
7
7
|
const accountConfig = resolveMatrixAccountConfig({
|
|
@@ -670,7 +670,7 @@ const matrixSetupAdapter = {
|
|
|
670
670
|
input
|
|
671
671
|
}),
|
|
672
672
|
afterAccountConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
673
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
673
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-D8DQwEcO.js");
|
|
674
674
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
675
675
|
previousCfg,
|
|
676
676
|
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-CVo-64kh.js";
|
|
2
|
+
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-BcOo_2Py.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-Du6-iuN4.js").then((n) => n.t)).matrixSetupWizard })),
|
|
17
17
|
setup: matrixSetupAdapter,
|
|
18
18
|
capabilities: {
|
|
19
19
|
chatTypes: [
|
|
@@ -2,10 +2,10 @@ import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
|
2
2
|
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bv_ZuOu4.js";
|
|
3
3
|
import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
4
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-
|
|
5
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, i as moveSingleMatrixAccountConfigToNamedAccount, l as updateMatrixAccountConfig, p as listMatrixAccountIds, r as resolveMatrixSetupDmAllowFrom } from "./setup-core-CVo-64kh.js";
|
|
6
6
|
import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.js";
|
|
7
7
|
import { n as validateMatrixHomeserverUrl, r as isPrivateOrLoopbackHost, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
8
|
-
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-
|
|
8
|
+
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-DoQ5mpwP.js";
|
|
9
9
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
11
11
|
import { formatDocsLink, hasConfiguredSecretInput, mergeAllowFromEntries, normalizeAccountId as normalizeAccountId$1, promptAccountId, promptChannelAccessConfig, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
@@ -105,7 +105,7 @@ async function promptMatrixAllowFrom(params) {
|
|
|
105
105
|
pending.push(part);
|
|
106
106
|
}
|
|
107
107
|
if (pending.length > 0) {
|
|
108
|
-
const { resolveMatrixTargets } = await import("./resolve-targets-
|
|
108
|
+
const { resolveMatrixTargets } = await import("./resolve-targets-CwHoq7hn.js").then((n) => n.n);
|
|
109
109
|
const results = await resolveMatrixTargets({
|
|
110
110
|
cfg,
|
|
111
111
|
accountId,
|
|
@@ -233,7 +233,7 @@ async function configureMatrixAccessPrompts(params) {
|
|
|
233
233
|
resolvedIds.push(cleaned);
|
|
234
234
|
continue;
|
|
235
235
|
}
|
|
236
|
-
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-
|
|
236
|
+
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-CJzQ5za7.js").then((n) => n.t);
|
|
237
237
|
const matches = await listMatrixDirectoryGroupsLive({
|
|
238
238
|
cfg: next,
|
|
239
239
|
accountId: params.accountId,
|
|
@@ -508,7 +508,7 @@ const matrixOnboardingAdapter = {
|
|
|
508
508
|
});
|
|
509
509
|
},
|
|
510
510
|
afterConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
511
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
511
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-D8DQwEcO.js");
|
|
512
512
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
513
513
|
previousCfg,
|
|
514
514
|
cfg,
|
|
@@ -21,7 +21,7 @@ let matrixCredentialsWriteRuntimePromise;
|
|
|
21
21
|
let matrixSecretInputDepsPromise;
|
|
22
22
|
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;
|
|
23
23
|
async function loadMatrixAuthClientDeps() {
|
|
24
|
-
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-
|
|
24
|
+
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-DaHsa7DR.js"), import("./logging-QH-48Gr6.js")]).then(([sdkModule, loggingModule]) => ({
|
|
25
25
|
MatrixClient: sdkModule.MatrixClient,
|
|
26
26
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
27
27
|
}));
|
|
@@ -501,7 +501,7 @@ var shared_exports = /* @__PURE__ */ __exportAll({
|
|
|
501
501
|
});
|
|
502
502
|
let matrixCreateClientDepsPromise;
|
|
503
503
|
async function loadMatrixCreateClientDeps() {
|
|
504
|
-
matrixCreateClientDepsPromise ??= import("./create-client-
|
|
504
|
+
matrixCreateClientDepsPromise ??= import("./create-client-Cy0BcHFg.js").then((n) => n.n).then((runtime) => ({ createMatrixClient: runtime.createMatrixClient }));
|
|
505
505
|
return await matrixCreateClientDepsPromise;
|
|
506
506
|
}
|
|
507
507
|
const sharedClientStates = /* @__PURE__ */ new Map();
|
|
@@ -2,7 +2,7 @@ import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
|
2
2
|
import { a as listBindingsForAccount, c as resolveBindingKey, f as setMatrixThreadBindingManagerEntry, h as toSessionBindingRecord, l as resolveEffectiveBindingExpiry, m as toMatrixBindingTargetKind, o as removeBindingRecord, r as getMatrixThreadBindingManagerEntry, t as deleteMatrixThreadBindingManagerEntry, u as setBindingRecord } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
3
3
|
import { O as resolveMatrixSqliteStateEnv, k as resolveMatrixSqliteStateKey } from "./crypto-state-store-DK2tcEyP.js";
|
|
4
4
|
import { c as resolveMatrixStateFilePath, t as claimCurrentTokenStorageState } from "./storage-BSLHjdgS.js";
|
|
5
|
-
import { a as sendMessageMatrix } from "./send-
|
|
5
|
+
import { a as sendMessageMatrix } from "./send-BMwJ5LY2.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
|
|
2
|
-
import "./setup-core-
|
|
3
|
-
import { E as parsePollStart, T as isPollStartType, b as buildPollResponseContent, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-
|
|
2
|
+
import "./setup-core-CVo-64kh.js";
|
|
3
|
+
import { E as parsePollStart, T as isPollStartType, b as buildPollResponseContent, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-BMwJ5LY2.js";
|
|
4
4
|
import { i as buildMatrixReactionRelationsPath, o as selectOwnMatrixReactionEventIds, s as summarizeMatrixReactionEvents } from "./reaction-common-DkrQdBSZ.js";
|
|
5
|
-
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-
|
|
6
|
-
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-
|
|
5
|
+
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-rYWNQvAN.js";
|
|
6
|
+
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-BFuuCO_k.js";
|
|
7
7
|
import { a as jsonResult, c as readStringArrayParam, l as readStringParam, o as readPositiveIntegerParam, r as createActionGate, s as readReactionParams } from "./runtime-api-CsBoesCU.js";
|
|
8
|
-
import { t as applyMatrixProfileUpdate } from "./profile-update-
|
|
9
|
-
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-
|
|
8
|
+
import { t as applyMatrixProfileUpdate } from "./profile-update-sMwJwi8I.js";
|
|
9
|
+
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-DBPeo1wO.js";
|
|
10
10
|
import { normalizeOptionalLowercaseString, uniqueStrings, uniqueValues } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
11
11
|
//#region extensions/matrix/src/matrix/actions/polls.ts
|
|
12
12
|
function normalizeOptionIndexes(indexes) {
|
|
@@ -309,6 +309,7 @@ async function handleMatrixAction(params, cfg, opts = {}) {
|
|
|
309
309
|
ok: true,
|
|
310
310
|
result: await sendMatrixMessage(to, content, {
|
|
311
311
|
mediaUrl: mediaUrl ?? void 0,
|
|
312
|
+
...opts.mediaAccess ? { mediaAccess: opts.mediaAccess } : {},
|
|
312
313
|
mediaLocalRoots: opts.mediaLocalRoots,
|
|
313
314
|
replyToId: replyToId ?? void 0,
|
|
314
315
|
threadId: threadId ?? void 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-
|
|
2
|
+
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-rYWNQvAN.js";
|
|
3
3
|
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-Bg3IRYoX.js";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
@@ -3,8 +3,7 @@ linkify-it
|
|
|
3
3
|
|
|
4
4
|
[](https://github.com/markdown-it/linkify-it/actions/workflows/ci.yml)
|
|
5
5
|
[](https://www.npmjs.org/package/linkify-it)
|
|
6
|
-
[](https://gitter.im/markdown-it/linkify-it)
|
|
6
|
+
[](https://coveralls.io/github/markdown-it/linkify-it?branch=master)
|
|
8
7
|
|
|
9
8
|
> Links recognition library with FULL unicode support.
|
|
10
9
|
> Focused on high quality link patterns detection in plain text.
|
|
@@ -66,7 +65,7 @@ linkify.add('@', {
|
|
|
66
65
|
|
|
67
66
|
if (!self.re.twitter) {
|
|
68
67
|
self.re.twitter = new RegExp(
|
|
69
|
-
|
|
68
|
+
`^([a-zA-Z0-9_]){1,15}(?!_)(?=$|${self.re.src_ZPCc})`
|
|
70
69
|
);
|
|
71
70
|
}
|
|
72
71
|
if (self.re.twitter.test(tail)) {
|
|
@@ -80,7 +79,7 @@ linkify.add('@', {
|
|
|
80
79
|
return 0;
|
|
81
80
|
},
|
|
82
81
|
normalize: function (match) {
|
|
83
|
-
match.url =
|
|
82
|
+
match.url = `https://twitter.com/${match.url.replace(/^@/, '')}`;
|
|
84
83
|
}
|
|
85
84
|
});
|
|
86
85
|
```
|