@openclaw/matrix 2026.9.1-beta.1 → 2026.9.2
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-config-BZWN9tGS.js → account-config-CRsKoMqJ.js} +1 -1
- package/dist/{account-selection-CWuhuFn1.js → account-selection-DA-jfx22.js} +74 -36
- package/dist/{accounts-BCzyubQt.js → accounts-DR1c4xF_.js} +4 -5
- package/dist/api.js +5 -5
- package/dist/{approval-handler.runtime-G9fLHUWe.js → approval-handler.runtime-BJCD4dLf.js} +34 -11
- package/dist/{approval-ids-C6FD3pVY.js → approval-ids-Bst7HM_o.js} +1 -1
- package/dist/{approval-reaction-auth-60xHiDtQ.js → approval-reaction-auth-DhH8QOSe.js} +2 -2
- package/dist/{approval-reactions-tXh9KYrW.js → approval-reactions-1fwEhoK9.js} +1 -1
- package/dist/{channel-CBEvelTE.js → channel-Bs8VLb6q.js} +63 -58
- package/dist/channel-plugin-api.js +1 -1
- package/dist/channel.runtime-CCJRhdH5.js +76 -0
- package/dist/{channel.setup-sWPOGyQG.js → channel.setup-DhmDXwPp.js} +32 -22
- package/dist/{cli-DrTD2a_q.js → cli-IvDUuiDH.js} +179 -135
- package/dist/{cli-metadata-DrYVwQ_r.js → cli-metadata-BGryAl2e.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-hs1ePy2O.js → client-Dj4mcf-s.js} +73 -22
- package/dist/{client-bootstrap-BxdxjCwA.js → client-bootstrap-n1Rqc8Go.js} +1 -1
- package/dist/{client-BUtHbzib.js → client-oNOlldJI.js} +2 -2
- package/dist/{config-update-Bor_Pjsv.js → config-update-BnX26jCO.js} +48 -31
- package/dist/contract-api.js +2 -2
- package/dist/{credentials-BdAaWuiR.js → credentials-DJj2xs3q.js} +4 -8
- package/dist/{credentials-read-B37cQknZ.js → credentials-read-mexhw-Ur.js} +7 -5
- package/dist/{credentials-write.runtime-nAV2-5uR.js → credentials-write.runtime-DQt-kgJq.js} +1 -1
- package/dist/{crypto-runtime-C4WDYxlP.js → crypto-runtime-m1eplj3b.js} +7 -7
- package/dist/crypto-snapshot-doctor.runtime-D0v841D_.js +91 -0
- package/dist/{deps-CcVJfvRM.js → deps-mtxF2mHI.js} +1 -1
- package/dist/{directory-live-D0KfJlby.js → directory-live-DLUgWBhA.js} +8 -6
- package/dist/{doctor-EWf9CDso.js → doctor-CJE8wO6y.js} +1 -1
- package/dist/{doctor-contract-DEt4O4Zt.js → doctor-contract-HyWFZQVG.js} +5 -4
- package/dist/doctor-contract-api.js +89 -109
- package/dist/{draft-stream-B_m79Ynb.js → draft-stream-DglwxWzJ.js} +1 -1
- package/dist/{encryption-guidance-DmLY8NiO.js → encryption-guidance-BNcZNQZI.js} +3 -2
- package/dist/helper-api.js +1 -1
- package/dist/{http-client-D8o8b9u6.js → http-client-DOmFvKvB.js} +10 -7
- package/dist/{idb-persistence-DfgW720p.js → idb-persistence-CU7CNLlX.js} +2 -2
- package/dist/{idb-persistence-lock-DAJ49nZX.js → idb-persistence-lock-B3fZXyF_.js} +1 -1
- package/dist/{inbound-dedupe-RvSLqdsz.js → inbound-dedupe-Ch33GU06.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{messages-Dow9EOoJ.js → messages-Czn8lNEh.js} +154 -5
- package/dist/{monitor-DBB47wTy.js → monitor-DouG43FJ.js} +200 -156
- package/dist/outbound-Co_tJyE6.js +220 -0
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-B1YPxG9x.js +2 -0
- package/dist/{profile-update-C61NR24_.js → profile-update-CAl8nZNG.js} +5 -4
- package/dist/{profile-D-Wubo0A.js → profile-vmjsmhh4.js} +1 -1
- package/dist/{reaction-events-BZUgLIZI.js → reaction-events-C_7G7bvI.js} +9 -7
- package/dist/{resolve-targets-DXzZwsIY.js → resolve-targets-B64O69Nd.js} +1 -1
- package/dist/{resolver.runtime-p5qJ3Kst.js → resolver.runtime-TRmePJDV.js} +1 -1
- package/dist/{room-info-BXQA7y10.js → room-info-6viLR3NH.js} +55 -1
- package/dist/runtime-api.js +2 -2
- package/dist/{sdk-CljOKEvc.js → sdk-C1yfda1L.js} +534 -26
- package/dist/{send-BKu9Ghi4.js → send-B5XChnvB.js} +31 -33
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/{setup-bootstrap-CpE6C3qV.js → setup-bootstrap-S_loyUyM.js} +3 -3
- package/dist/{setup-core-CyvaCOOr.js → setup-core-XkIfQ65J.js} +8 -7
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-DtRvRcCT.js → setup-surface-B2yZ8KGc.js} +84 -79
- package/dist/{startup-verification-Cs08ca8u.js → startup-verification-1Ney1mmI.js} +2 -2
- package/dist/{storage-BsGuHngK.js → storage-BVf4uucD.js} +5 -4
- package/dist/{subagent-hooks-CMoZaARG.js → subagent-hooks-DeICLbU5.js} +5 -1
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/sync-cache-state-d-A_OhbU.js +234 -0
- package/dist/{thread-bindings-BvyU66kE.js → thread-bindings-BkBnn4te.js} +4 -4
- package/dist/{tool-actions.runtime-DD6jUxFK.js → tool-actions.runtime-a5L5xGSP.js} +226 -215
- package/dist/{verification-BP-3-XYn.js → verification-XJtTc5DI.js} +2 -2
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +216 -183
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -1
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +7 -7
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.cjs.js +98 -106
- package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.d.mts +42 -71
- package/node_modules/markdown-it/dist/markdown-it.mjs +98 -106
- package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -1
- package/node_modules/markdown-it/package.json +1 -2
- package/node_modules/matrix-js-sdk/lib/client.d.ts +2 -1
- package/node_modules/matrix-js-sdk/lib/client.js +6 -2
- package/node_modules/matrix-js-sdk/lib/sync.js +8 -8
- package/node_modules/matrix-js-sdk/src/client.ts +7 -3
- package/node_modules/matrix-js-sdk/src/sync.ts +8 -8
- package/node_modules/typebox/build/format/email.mjs +1 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +19 -1
- package/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/node_modules/typebox/build/system/memory/discard.mjs +2 -2
- package/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/node_modules/typebox/package.json +1 -1
- package/openclaw.plugin.json +17 -3
- package/package.json +8 -7
- package/dist/channel.runtime-CiDl9deX.js +0 -276
- package/dist/env-auth-MVS-Vv41.js +0 -64
- package/dist/file-sync-store-DjskBX2o.js +0 -436
- package/dist/media-text-OR9uoC4W.js +0 -153
- package/dist/probe.runtime-CRM7RIrB.js +0 -2
- package/dist/recovery-key-store-CognuDys.js +0 -276
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-it",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"description": "Markdown-it - modern pluggable markdown parser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -104,7 +104,6 @@
|
|
|
104
104
|
"tinybench": "^6.0.2",
|
|
105
105
|
"typedoc": "^0.28.19",
|
|
106
106
|
"typedoc-plugin-missing-exports": "^4.1.4",
|
|
107
|
-
"typedoc-theme-oxide": "^0.3.0",
|
|
108
107
|
"typescript": "^6.0.3",
|
|
109
108
|
"vite": "^8.1.5",
|
|
110
109
|
"vite-plugin-singlefile": "^2.3.3"
|
|
@@ -710,6 +710,7 @@ export declare enum ClientEvent {
|
|
|
710
710
|
* events received over context, search, or pagination APIs.
|
|
711
711
|
*
|
|
712
712
|
* The payload is the matrix event which caused this event to fire.
|
|
713
|
+
* The optional second argument is true when replaying a saved sync response.
|
|
713
714
|
* @example
|
|
714
715
|
* ```
|
|
715
716
|
* matrixClient.on("event", function(event){
|
|
@@ -802,7 +803,7 @@ type UserEvents = UserEvent.AvatarUrl | UserEvent.DisplayName | UserEvent.Presen
|
|
|
802
803
|
export type EmittedEvents = ClientEvent | RoomEvents | RoomStateEvents | CryptoEvents | MatrixEventEvents | RoomMemberEvents | UserEvents | CallEvent | CallEventHandlerEvent.Incoming | GroupCallEventHandlerEvent.Incoming | GroupCallEventHandlerEvent.Outgoing | GroupCallEventHandlerEvent.Ended | GroupCallEventHandlerEvent.Participants | HttpApiEvent.SessionLoggedOut | HttpApiEvent.NoConsent | BeaconEvent;
|
|
803
804
|
export type ClientEventHandlerMap = {
|
|
804
805
|
[ClientEvent.Sync]: (state: SyncState, prevState: SyncState | null, data?: ISyncStateData) => void;
|
|
805
|
-
[ClientEvent.Event]: (event: MatrixEvent) => void;
|
|
806
|
+
[ClientEvent.Event]: (event: MatrixEvent, fromCache?: boolean) => void;
|
|
806
807
|
[ClientEvent.ToDeviceEvent]: (event: MatrixEvent) => void;
|
|
807
808
|
[ClientEvent.ReceivedToDeviceMessage]: (payload: ReceivedToDeviceMessage) => void;
|
|
808
809
|
[ClientEvent.AccountData]: (event: MatrixEvent, lastEvent?: MatrixEvent) => void;
|
|
@@ -227,6 +227,7 @@ export let ClientEvent = /*#__PURE__*/function (ClientEvent) {
|
|
|
227
227
|
* events received over context, search, or pagination APIs.
|
|
228
228
|
*
|
|
229
229
|
* The payload is the matrix event which caused this event to fire.
|
|
230
|
+
* The optional second argument is true when replaying a saved sync response.
|
|
230
231
|
* @example
|
|
231
232
|
* ```
|
|
232
233
|
* matrixClient.on("event", function(event){
|
|
@@ -1093,8 +1094,11 @@ export class MatrixClient extends TypedEventEmitter {
|
|
|
1093
1094
|
// attach the event listeners needed by RustCrypto
|
|
1094
1095
|
this.on(RoomMemberEvent.Membership, rustCrypto.onRoomMembership.bind(rustCrypto));
|
|
1095
1096
|
this.on(RoomStateEvent.Events, rustCrypto.onRoomStateEvent.bind(rustCrypto));
|
|
1096
|
-
this.on(ClientEvent.Event, event => {
|
|
1097
|
-
|
|
1097
|
+
this.on(ClientEvent.Event, (event, fromCache) => {
|
|
1098
|
+
// Restored room history must not restart completed verification requests.
|
|
1099
|
+
if (!fromCache) {
|
|
1100
|
+
void rustCrypto.onLiveEventFromSync(event);
|
|
1101
|
+
}
|
|
1098
1102
|
});
|
|
1099
1103
|
|
|
1100
1104
|
// re-emit the events emitted by the crypto impl
|
|
@@ -955,7 +955,7 @@ export class SyncApi {
|
|
|
955
955
|
user.setPresenceEvent(presenceEvent);
|
|
956
956
|
client.store.storeUser(user);
|
|
957
957
|
}
|
|
958
|
-
client.emit(ClientEvent.Event, presenceEvent);
|
|
958
|
+
client.emit(ClientEvent.Event, presenceEvent, syncEventData.fromCache);
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
|
|
@@ -1065,7 +1065,7 @@ export class SyncApi {
|
|
|
1065
1065
|
room.recalculate();
|
|
1066
1066
|
}
|
|
1067
1067
|
stateEvents.forEach(function (e) {
|
|
1068
|
-
client.emit(ClientEvent.Event, e);
|
|
1068
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1069
1069
|
});
|
|
1070
1070
|
}));
|
|
1071
1071
|
|
|
@@ -1243,7 +1243,7 @@ export class SyncApi {
|
|
|
1243
1243
|
client.emit(ClientEvent.Room, room);
|
|
1244
1244
|
}
|
|
1245
1245
|
this.processEventsForNotifs(room, timelineEvents);
|
|
1246
|
-
const emitEvent = e => client.emit(ClientEvent.Event, e);
|
|
1246
|
+
const emitEvent = e => client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1247
1247
|
// this fires a couple of times for some events. (eg state events are in the timeline and the state)
|
|
1248
1248
|
// should this get a sync section as an additional event emission param (e, syncSection))?
|
|
1249
1249
|
stateEvents.forEach(emitEvent);
|
|
@@ -1278,16 +1278,16 @@ export class SyncApi {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
this.processEventsForNotifs(room, timelineEvents);
|
|
1280
1280
|
stateEvents?.forEach(function (e) {
|
|
1281
|
-
client.emit(ClientEvent.Event, e);
|
|
1281
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1282
1282
|
});
|
|
1283
1283
|
stateAfterEvents?.forEach(function (e) {
|
|
1284
|
-
client.emit(ClientEvent.Event, e);
|
|
1284
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1285
1285
|
});
|
|
1286
1286
|
timelineEvents.forEach(function (e) {
|
|
1287
|
-
client.emit(ClientEvent.Event, e);
|
|
1287
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1288
1288
|
});
|
|
1289
1289
|
accountDataEvents.forEach(function (e) {
|
|
1290
|
-
client.emit(ClientEvent.Event, e);
|
|
1290
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1291
1291
|
});
|
|
1292
1292
|
}));
|
|
1293
1293
|
|
|
@@ -1305,7 +1305,7 @@ export class SyncApi {
|
|
|
1305
1305
|
room.recalculate();
|
|
1306
1306
|
}
|
|
1307
1307
|
stateEvents.forEach(function (e) {
|
|
1308
|
-
client.emit(ClientEvent.Event, e);
|
|
1308
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1309
1309
|
});
|
|
1310
1310
|
}));
|
|
1311
1311
|
|
|
@@ -1017,6 +1017,7 @@ export enum ClientEvent {
|
|
|
1017
1017
|
* events received over context, search, or pagination APIs.
|
|
1018
1018
|
*
|
|
1019
1019
|
* The payload is the matrix event which caused this event to fire.
|
|
1020
|
+
* The optional second argument is true when replaying a saved sync response.
|
|
1020
1021
|
* @example
|
|
1021
1022
|
* ```
|
|
1022
1023
|
* matrixClient.on("event", function(event){
|
|
@@ -1158,7 +1159,7 @@ export type EmittedEvents =
|
|
|
1158
1159
|
|
|
1159
1160
|
export type ClientEventHandlerMap = {
|
|
1160
1161
|
[ClientEvent.Sync]: (state: SyncState, prevState: SyncState | null, data?: ISyncStateData) => void;
|
|
1161
|
-
[ClientEvent.Event]: (event: MatrixEvent) => void;
|
|
1162
|
+
[ClientEvent.Event]: (event: MatrixEvent, fromCache?: boolean) => void;
|
|
1162
1163
|
[ClientEvent.ToDeviceEvent]: (event: MatrixEvent) => void;
|
|
1163
1164
|
[ClientEvent.ReceivedToDeviceMessage]: (payload: ReceivedToDeviceMessage) => void;
|
|
1164
1165
|
[ClientEvent.AccountData]: (event: MatrixEvent, lastEvent?: MatrixEvent) => void;
|
|
@@ -2049,8 +2050,11 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
|
|
2049
2050
|
// attach the event listeners needed by RustCrypto
|
|
2050
2051
|
this.on(RoomMemberEvent.Membership, rustCrypto.onRoomMembership.bind(rustCrypto));
|
|
2051
2052
|
this.on(RoomStateEvent.Events, rustCrypto.onRoomStateEvent.bind(rustCrypto));
|
|
2052
|
-
this.on(ClientEvent.Event, (event) => {
|
|
2053
|
-
|
|
2053
|
+
this.on(ClientEvent.Event, (event, fromCache) => {
|
|
2054
|
+
// Restored room history must not restart completed verification requests.
|
|
2055
|
+
if (!fromCache) {
|
|
2056
|
+
void rustCrypto.onLiveEventFromSync(event);
|
|
2057
|
+
}
|
|
2054
2058
|
});
|
|
2055
2059
|
|
|
2056
2060
|
// re-emit the events emitted by the crypto impl
|
|
@@ -1131,7 +1131,7 @@ export class SyncApi {
|
|
|
1131
1131
|
user.setPresenceEvent(presenceEvent);
|
|
1132
1132
|
client.store.storeUser(user);
|
|
1133
1133
|
}
|
|
1134
|
-
client.emit(ClientEvent.Event, presenceEvent);
|
|
1134
|
+
client.emit(ClientEvent.Event, presenceEvent, syncEventData.fromCache);
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
@@ -1249,7 +1249,7 @@ export class SyncApi {
|
|
|
1249
1249
|
room.recalculate();
|
|
1250
1250
|
}
|
|
1251
1251
|
stateEvents.forEach(function (e) {
|
|
1252
|
-
client.emit(ClientEvent.Event, e);
|
|
1252
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1253
1253
|
});
|
|
1254
1254
|
}),
|
|
1255
1255
|
);
|
|
@@ -1477,7 +1477,7 @@ export class SyncApi {
|
|
|
1477
1477
|
|
|
1478
1478
|
this.processEventsForNotifs(room, timelineEvents);
|
|
1479
1479
|
|
|
1480
|
-
const emitEvent = (e: MatrixEvent): boolean => client.emit(ClientEvent.Event, e);
|
|
1480
|
+
const emitEvent = (e: MatrixEvent): boolean => client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1481
1481
|
// this fires a couple of times for some events. (eg state events are in the timeline and the state)
|
|
1482
1482
|
// should this get a sync section as an additional event emission param (e, syncSection))?
|
|
1483
1483
|
stateEvents.forEach(emitEvent);
|
|
@@ -1518,16 +1518,16 @@ export class SyncApi {
|
|
|
1518
1518
|
this.processEventsForNotifs(room, timelineEvents);
|
|
1519
1519
|
|
|
1520
1520
|
stateEvents?.forEach(function (e) {
|
|
1521
|
-
client.emit(ClientEvent.Event, e);
|
|
1521
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1522
1522
|
});
|
|
1523
1523
|
stateAfterEvents?.forEach(function (e) {
|
|
1524
|
-
client.emit(ClientEvent.Event, e);
|
|
1524
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1525
1525
|
});
|
|
1526
1526
|
timelineEvents.forEach(function (e) {
|
|
1527
|
-
client.emit(ClientEvent.Event, e);
|
|
1527
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1528
1528
|
});
|
|
1529
1529
|
accountDataEvents.forEach(function (e) {
|
|
1530
|
-
client.emit(ClientEvent.Event, e);
|
|
1530
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1531
1531
|
});
|
|
1532
1532
|
}),
|
|
1533
1533
|
);
|
|
@@ -1549,7 +1549,7 @@ export class SyncApi {
|
|
|
1549
1549
|
room.recalculate();
|
|
1550
1550
|
}
|
|
1551
1551
|
stateEvents.forEach(function (e) {
|
|
1552
|
-
client.emit(ClientEvent.Event, e);
|
|
1552
|
+
client.emit(ClientEvent.Event, e, syncEventData.fromCache);
|
|
1553
1553
|
});
|
|
1554
1554
|
}),
|
|
1555
1555
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]
|
|
1
|
+
const Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\[\x20-\x7e])*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is an Email
|
|
4
4
|
* @specification https://datatracker.ietf.org/doc/html/rfc5322
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as FormatBidi from './format/bidi.mjs';
|
|
2
2
|
import * as LabelUnicode from './label/unicode.mjs';
|
|
3
3
|
import * as LabelPuny from './label/puny.mjs';
|
|
4
|
+
// ------------------------------------------------------------------
|
|
5
|
+
// IsLabel
|
|
6
|
+
// ------------------------------------------------------------------
|
|
4
7
|
function IsValidLabelLength(value) {
|
|
5
8
|
return value.length > 0 && value.length <= 63;
|
|
6
9
|
}
|
|
@@ -8,9 +11,24 @@ function IsLabel(value) {
|
|
|
8
11
|
return IsValidLabelLength(value) && (LabelPuny.IsPunyLabel(value) ||
|
|
9
12
|
LabelUnicode.IsUnicodeLabel(value));
|
|
10
13
|
}
|
|
14
|
+
// ------------------------------------------------------------------
|
|
15
|
+
// NormalizeHostname
|
|
16
|
+
//
|
|
17
|
+
// Normalizes a hostname for label validation. Normalizes for NFC
|
|
18
|
+
// such that equivalent codepoint sequences can be uniformly
|
|
19
|
+
// compared. It also removes codepoints that IDNA mapping ignores,
|
|
20
|
+
// and converts full stop variants to ASCII '.' so the hostname can
|
|
21
|
+
// be split into labels.
|
|
22
|
+
// ------------------------------------------------------------------
|
|
11
23
|
function NormalizeHostname(value) {
|
|
12
|
-
return value
|
|
24
|
+
return value
|
|
25
|
+
.normalize('NFC')
|
|
26
|
+
.replace(/[\u00ad\u034f\u180b-\u180d\u200b\ufe00-\ufe0f\u{e0100}-\u{e01ef}]/gu, '') // RE_IGNORED_MAPPING
|
|
27
|
+
.replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.'); // RE_FULL_STOP_MAPPING
|
|
13
28
|
}
|
|
29
|
+
// ------------------------------------------------------------------
|
|
30
|
+
// IsIdnHostname
|
|
31
|
+
// ------------------------------------------------------------------
|
|
14
32
|
export function IsIdnHostname(value) {
|
|
15
33
|
if (value.length === 0 || value.includes(' '))
|
|
16
34
|
return false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns true if the value is a json pointer
|
|
3
|
-
* @specification
|
|
4
|
-
* @source ajv-formats
|
|
3
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc6901
|
|
4
|
+
* @source https://github.com/ajv-validator/ajv-formats
|
|
5
5
|
*/
|
|
6
6
|
export declare function IsJsonPointer(value: string): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is a json pointer
|
|
4
|
-
* @specification
|
|
5
|
-
* @source ajv-formats
|
|
4
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc6901
|
|
5
|
+
* @source https://github.com/ajv-validator/ajv-formats
|
|
6
6
|
*/
|
|
7
7
|
export function IsJsonPointer(value) {
|
|
8
8
|
return JsonPointer.test(value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns true if the value is a json pointer uri fragment
|
|
3
|
-
* @specification
|
|
4
|
-
* @source ajv-formats
|
|
3
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc6901
|
|
4
|
+
* @source https://github.com/ajv-validator/ajv-formats
|
|
5
5
|
*/
|
|
6
6
|
export declare function IsJsonPointerUriFragment(value: string): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is a json pointer uri fragment
|
|
4
|
-
* @specification
|
|
5
|
-
* @source ajv-formats
|
|
4
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc6901
|
|
5
|
+
* @source https://github.com/ajv-validator/ajv-formats
|
|
6
6
|
*/
|
|
7
7
|
export function IsJsonPointerUriFragment(value) {
|
|
8
8
|
return JsonPointerUriFragment.test(value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns true if the value is a relative json pointer
|
|
3
|
-
* @specification
|
|
4
|
-
* @source ajv-formats
|
|
3
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc6901
|
|
4
|
+
* @source https://github.com/ajv-validator/ajv-formats
|
|
5
5
|
*/
|
|
6
6
|
export declare function IsRelativeJsonPointer(value: string): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is a relative json pointer
|
|
4
|
-
* @specification
|
|
5
|
-
* @source ajv-formats
|
|
4
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc6901
|
|
5
|
+
* @source https://github.com/ajv-validator/ajv-formats
|
|
6
6
|
*/
|
|
7
7
|
export function IsRelativeJsonPointer(value) {
|
|
8
8
|
return RelativeJsonPointer.test(value);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// deno-lint-ignore-file ban-types no-explicit-any
|
|
2
2
|
// deno-fmt-ignore-file
|
|
3
3
|
import { Metrics } from './metrics.mjs';
|
|
4
|
+
import { Freeze } from './freeze.mjs';
|
|
4
5
|
/**
|
|
5
6
|
* Performs an Object assign using the Left and Right object types. We track this operation as it
|
|
6
7
|
* creates a new GC handle per assignment.
|
|
7
8
|
*/
|
|
8
9
|
export function Assign(left, right) {
|
|
9
10
|
Metrics.assign += 1;
|
|
10
|
-
return { ...left, ...right };
|
|
11
|
+
return Freeze({ ...left, ...right });
|
|
11
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deno-lint-ignore-file no-explicit-any
|
|
2
|
-
// deno-fmt-ignore-file
|
|
3
2
|
import { Settings } from '../settings/index.mjs';
|
|
4
3
|
import { Metrics } from './metrics.mjs';
|
|
4
|
+
import { Freeze } from './freeze.mjs';
|
|
5
5
|
function MergeHidden(left, right) {
|
|
6
6
|
for (const key of Object.keys(right)) {
|
|
7
7
|
Object.defineProperty(left, key, {
|
|
@@ -23,8 +23,7 @@ function Merge(left, right) {
|
|
|
23
23
|
*/
|
|
24
24
|
export function Create(hidden, enumerable, options = {}) {
|
|
25
25
|
Metrics.create += 1;
|
|
26
|
-
const settings = Settings.Get();
|
|
27
26
|
const withOptions = Merge(enumerable, options);
|
|
28
|
-
const withHidden =
|
|
29
|
-
return
|
|
27
|
+
const withHidden = Settings.Get().enumerableKind ? Merge(withOptions, hidden) : MergeHidden(withOptions, hidden);
|
|
28
|
+
return Freeze(withHidden);
|
|
30
29
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deno-lint-ignore-file no-explicit-any
|
|
2
|
-
// deno-fmt-ignore-file
|
|
3
2
|
import { Guard } from '../../guard/index.mjs';
|
|
4
3
|
import { Metrics } from './metrics.mjs';
|
|
4
|
+
import { Freeze } from './freeze.mjs';
|
|
5
5
|
import { Clone } from './clone.mjs';
|
|
6
6
|
/** Discards multiple property keys from the given object value */
|
|
7
7
|
export function Discard(value, propertyKeys) {
|
|
@@ -14,5 +14,5 @@ export function Discard(value, propertyKeys) {
|
|
|
14
14
|
descriptor.value = Clone(descriptor.value);
|
|
15
15
|
Object.defineProperty(result, key, descriptor);
|
|
16
16
|
}
|
|
17
|
-
return result;
|
|
17
|
+
return Freeze(result);
|
|
18
18
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// deno-lint-ignore-file no-explicit-any
|
|
2
|
+
import { Settings } from '../settings/index.mjs';
|
|
3
|
+
/** Conditionally freezes the value if `immutableTypes` is true, otherwise no action. */
|
|
4
|
+
export function Freeze(value) {
|
|
5
|
+
return Settings.Get().immutableTypes ? Object.freeze(value) : value;
|
|
6
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// deno-
|
|
1
|
+
// deno-lint-ignore-file no-explicit-any
|
|
2
2
|
import { Settings } from '../settings/index.mjs';
|
|
3
3
|
import { Metrics } from './metrics.mjs';
|
|
4
|
+
import { Freeze } from './freeze.mjs';
|
|
4
5
|
import { Clone } from './clone.mjs';
|
|
5
6
|
/**
|
|
6
7
|
* Updates a value with new properties while preserving property enumerability. Use this function to modify
|
|
@@ -28,5 +29,5 @@ export function Update(current, hidden, enumerable) {
|
|
|
28
29
|
value: enumerable[key]
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
return result;
|
|
32
|
+
return Freeze(result);
|
|
32
33
|
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"hasSubcommands": true
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
-
"icon": "https://cdn.simpleicons.org/matrix",
|
|
17
16
|
"commandAliases": [
|
|
18
17
|
{
|
|
19
18
|
"name": "matrix"
|
|
@@ -48,6 +47,9 @@
|
|
|
48
47
|
"configWrites": {
|
|
49
48
|
"type": "boolean"
|
|
50
49
|
},
|
|
50
|
+
"joinIntro": {
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
51
53
|
"defaultAccount": {
|
|
52
54
|
"type": "string"
|
|
53
55
|
},
|
|
@@ -56,7 +58,15 @@
|
|
|
56
58
|
"propertyNames": {
|
|
57
59
|
"type": "string"
|
|
58
60
|
},
|
|
59
|
-
"additionalProperties": {
|
|
61
|
+
"additionalProperties": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"joinIntro": {
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"additionalProperties": {}
|
|
69
|
+
}
|
|
60
70
|
},
|
|
61
71
|
"markdown": {
|
|
62
72
|
"type": "object",
|
|
@@ -957,6 +967,10 @@
|
|
|
957
967
|
"label": "Matrix",
|
|
958
968
|
"description": "open protocol; install the plugin to enable.",
|
|
959
969
|
"uiHints": {
|
|
970
|
+
"joinIntro": {
|
|
971
|
+
"label": "Matrix Group Join Introduction",
|
|
972
|
+
"help": "Post one brief introduction when the bot joins an allowed group room (default: true). Account settings override the channel-wide setting."
|
|
973
|
+
},
|
|
960
974
|
"mentionPatterns": {
|
|
961
975
|
"label": "Matrix Mention Pattern Policy",
|
|
962
976
|
"help": "Scopes configured groupChat mentionPatterns to selected Matrix room IDs. Native Matrix mention evidence still triggers even when regex patterns are denied."
|
|
@@ -1019,7 +1033,7 @@
|
|
|
1019
1033
|
},
|
|
1020
1034
|
"streaming.progress.toolProgress": {
|
|
1021
1035
|
"label": "Matrix Progress Tool Lines",
|
|
1022
|
-
"help": "Show
|
|
1036
|
+
"help": "Show individual tool activity in progress drafts (default: false). Quiet drafts retain plans, approval requests, failures, and authored progress text."
|
|
1023
1037
|
},
|
|
1024
1038
|
"streaming.progress.commandText": {
|
|
1025
1039
|
"label": "Matrix Progress Command Text",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/matrix",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.2",
|
|
4
4
|
"description": "OpenClaw Matrix channel plugin for rooms and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"@matrix-org/matrix-sdk-crypto-nodejs": "0.6.6",
|
|
12
12
|
"@matrix-org/matrix-sdk-crypto-wasm": "18.5.0",
|
|
13
13
|
"fake-indexeddb": "6.2.5",
|
|
14
|
-
"markdown-it": "15.0.
|
|
14
|
+
"markdown-it": "15.0.1",
|
|
15
15
|
"matrix-js-sdk": "42.2.0",
|
|
16
16
|
"music-metadata": "11.15.0",
|
|
17
|
-
"typebox": "1.3.
|
|
17
|
+
"typebox": "1.3.18",
|
|
18
18
|
"zod": "4.4.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"openclaw": ">=2026.9.
|
|
21
|
+
"openclaw": ">=2026.9.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
24
24
|
"openclaw": {
|
|
@@ -162,15 +162,16 @@
|
|
|
162
162
|
"install": {
|
|
163
163
|
"clawhubSpec": "clawhub:@openclaw/matrix",
|
|
164
164
|
"npmSpec": "@openclaw/matrix",
|
|
165
|
-
"defaultChoice": "
|
|
165
|
+
"defaultChoice": "npm",
|
|
166
166
|
"minHostVersion": ">=2026.4.10",
|
|
167
167
|
"allowInvalidConfigRecovery": true
|
|
168
168
|
},
|
|
169
169
|
"compat": {
|
|
170
|
-
"pluginApi": ">=2026.9.
|
|
170
|
+
"pluginApi": ">=2026.9.2"
|
|
171
171
|
},
|
|
172
172
|
"build": {
|
|
173
|
-
"
|
|
173
|
+
"bundledDist": false,
|
|
174
|
+
"openclawVersion": "2026.9.2"
|
|
174
175
|
},
|
|
175
176
|
"release": {
|
|
176
177
|
"publishToClawHub": true,
|