@openclaw/matrix 2026.9.2 → 2026.9.4
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-DA-jfx22.js → account-selection-Bbtc483D.js} +9 -1
- package/dist/{accounts-DR1c4xF_.js → accounts-GwSAk9vY.js} +2 -2
- package/dist/api.js +6 -6
- package/dist/{approval-handler.runtime-BJCD4dLf.js → approval-handler.runtime-6I3IpyeX.js} +6 -6
- package/dist/{approval-ids-Bst7HM_o.js → approval-ids-C4NdeXNz.js} +1 -1
- package/dist/{approval-reaction-auth-DhH8QOSe.js → approval-reaction-auth-cbltZAUQ.js} +2 -2
- package/dist/{channel-Bs8VLb6q.js → channel-Cg97H4c1.js} +13 -202
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CCJRhdH5.js → channel.runtime-Bhpfa1qc.js} +6 -11
- package/dist/{channel.setup-DhmDXwPp.js → channel.setup-DmS7m7aT.js} +3 -3
- package/dist/{cli-IvDUuiDH.js → cli-CLexRrQw.js} +9 -9
- package/dist/{cli-metadata-BGryAl2e.js → cli-metadata-zRyVmUOL.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-oNOlldJI.js → client-C0nZFCTj.js} +2 -2
- package/dist/{client-Dj4mcf-s.js → client-CPcRv6ab.js} +6 -6
- package/dist/{client-bootstrap-n1Rqc8Go.js → client-bootstrap-DLN-K8Xb.js} +1 -6
- package/dist/contract-api.js +2 -2
- package/dist/{credentials-DJj2xs3q.js → credentials-DysXbkv2.js} +2 -2
- package/dist/{credentials-read-mexhw-Ur.js → credentials-read-WWpqi88V.js} +1 -1
- package/dist/{credentials-write.runtime-DQt-kgJq.js → credentials-write.runtime-D22lPwRO.js} +1 -1
- package/dist/{crypto-runtime-m1eplj3b.js → crypto-runtime-DiyH4R3D.js} +3 -25
- package/dist/{crypto-snapshot-doctor.runtime-D0v841D_.js → crypto-snapshot-doctor.runtime-DxgUMXUy.js} +2 -2
- package/dist/{directory-live-DLUgWBhA.js → directory-live-B8-GAVcc.js} +2 -2
- package/dist/doctor-contract-api.js +41 -21
- package/dist/{draft-stream-DglwxWzJ.js → draft-stream--NdEtnZ8.js} +16 -5
- package/dist/{encryption-guidance-BNcZNQZI.js → encryption-guidance-mDyxJV9U.js} +1 -1
- package/dist/{event-helpers-XRfAbOIh.js → event-helpers-CspuhE9k.js} +9 -1
- package/dist/helper-api.js +3 -3
- package/dist/{http-client-DOmFvKvB.js → http-client-BfPeF4CE.js} +1 -1
- package/dist/{idb-persistence-CU7CNLlX.js → idb-persistence-DBdwHSWg.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{messages-Czn8lNEh.js → messages-CpZfiQO0.js} +6 -99
- package/dist/{monitor-DouG43FJ.js → monitor-BUek91SW.js} +61 -92
- package/dist/{outbound-Co_tJyE6.js → outbound-D91JinYa.js} +1 -1
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-DWdw74_H.js +2 -0
- package/dist/{profile-update-CAl8nZNG.js → profile-update-vnhxwjEt.js} +1 -1
- package/dist/{reaction-events-C_7G7bvI.js → reaction-events-2WM2nJe_.js} +5 -7
- package/dist/{resolve-targets-B64O69Nd.js → resolve-targets-K8D0HWPX.js} +1 -1
- package/dist/{resolver.runtime-TRmePJDV.js → resolver.runtime-C88GwQCx.js} +1 -1
- package/dist/{room-info-6viLR3NH.js → room-info-BPVJkXnp.js} +7 -4
- package/dist/runtime-api.js +2 -2
- package/dist/{sdk-C1yfda1L.js → sdk-B4By16Bt.js} +13 -6
- package/dist/{send-B5XChnvB.js → send-UWLIQ0bG.js} +211 -135
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/{setup-bootstrap-S_loyUyM.js → setup-bootstrap-sVqkwtSY.js} +2 -2
- package/dist/{setup-core-XkIfQ65J.js → setup-core-8keb-Yre.js} +14 -29
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-B2yZ8KGc.js → setup-surface-bcluelBI.js} +8 -17
- package/dist/{startup-verification-1Ney1mmI.js → startup-verification-BTSf31hS.js} +2 -1
- package/dist/storage-CV-pfV_2.js +320 -0
- package/dist/{storage-BVf4uucD.js → storage-metadata-DYArLcq1.js} +14 -319
- package/dist/{storage-paths-gUmSydsW.js → storage-paths-DVCANXTc.js} +13 -1
- package/dist/{sync-cache-state-d-A_OhbU.js → sync-cache-state-C-mhj3xb.js} +9 -3
- package/dist/{thread-bindings-BkBnn4te.js → thread-bindings-Bwv87Gve.js} +3 -2
- package/dist/{tool-actions.runtime-a5L5xGSP.js → tool-actions.runtime-Bf98Juk6.js} +295 -256
- package/dist/types-DzSc7Sqm.js +32 -0
- package/dist/{verification-XJtTc5DI.js → verification-BbG-VC9S.js} +2 -2
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/package.json +1 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm.d.ts +69 -4
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.cjs +526 -432
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js +358 -265
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm +0 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm.d.ts +8 -7
- package/openclaw.plugin.json +27 -1
- package/package.json +5 -5
- package/dist/probe.runtime-B1YPxG9x.js +0 -2
- package/dist/runtime-BefyhPWv.js +0 -6
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { n as MATRIX_REACTION_EVENT_TYPE, t as MATRIX_ANNOTATION_RELATION_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
2
|
+
//#region extensions/matrix/src/matrix/send/types.ts
|
|
3
|
+
const MsgType = {
|
|
4
|
+
Text: "m.text",
|
|
5
|
+
Image: "m.image",
|
|
6
|
+
Audio: "m.audio",
|
|
7
|
+
Video: "m.video",
|
|
8
|
+
File: "m.file",
|
|
9
|
+
Notice: "m.notice"
|
|
10
|
+
};
|
|
11
|
+
const RelationType = {
|
|
12
|
+
Annotation: MATRIX_ANNOTATION_RELATION_TYPE,
|
|
13
|
+
Replace: "m.replace",
|
|
14
|
+
Thread: "m.thread"
|
|
15
|
+
};
|
|
16
|
+
const EventType = {
|
|
17
|
+
Direct: "m.direct",
|
|
18
|
+
Reaction: MATRIX_REACTION_EVENT_TYPE,
|
|
19
|
+
RoomMessage: "m.room.message"
|
|
20
|
+
};
|
|
21
|
+
const MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY = "com.openclaw.finalized_preview";
|
|
22
|
+
/**
|
|
23
|
+
* MSC4357 live marker key.
|
|
24
|
+
* When present on event content, signals that the message is still being
|
|
25
|
+
* streamed (e.g. an LLM generating a response). Supporting clients render
|
|
26
|
+
* the message with a streaming animation until an edit without this marker
|
|
27
|
+
* arrives, indicating the stream is complete.
|
|
28
|
+
* @see https://github.com/matrix-org/matrix-spec-proposals/pull/4357
|
|
29
|
+
*/
|
|
30
|
+
const MSC4357_LIVE_KEY = "org.matrix.msc4357.live";
|
|
31
|
+
//#endregion
|
|
32
|
+
export { RelationType as a, MsgType as i, MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY as n, MSC4357_LIVE_KEY as r, EventType as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-
|
|
3
|
-
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-
|
|
2
|
+
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-C0nZFCTj.js";
|
|
3
|
+
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-mDyxJV9U.js";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
6
6
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matrix-org/matrix-sdk-crypto-wasm",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.7.0",
|
|
4
4
|
"homepage": "https://github.com/matrix-org/matrix-sdk-crypto-wasm",
|
|
5
5
|
"description": "WebAssembly bindings of the matrix-sdk-crypto encryption library",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -2445,9 +2445,19 @@ export class OlmMachine {
|
|
|
2445
2445
|
* certificates. These will be used to check X.509 signatures on user
|
|
2446
2446
|
* identities. Any user identity that has a valid signature according to
|
|
2447
2447
|
* the supplied CAs will be considered verified, without any manual
|
|
2448
|
-
*
|
|
2448
|
+
*
|
|
2449
|
+
* * `raw_x509_signer` - Optional async function for signing some data with
|
|
2450
|
+
* an X.509 certificate. Used to sign the user's identity so compatible
|
|
2451
|
+
* clients will recognise this user as verified without manual
|
|
2452
|
+
* verification taking place. If you supply this you must also supply
|
|
2453
|
+
* raw_x509_validity.
|
|
2454
|
+
*
|
|
2455
|
+
* * `raw_x509_validity` - Optional function returning the validity period
|
|
2456
|
+
* of the X.509 certificate used for signing, as the number of
|
|
2457
|
+
* milliseconds since the Unix epoch. If you supply this you must also
|
|
2458
|
+
* supply raw_x509_signer.
|
|
2449
2459
|
*/
|
|
2450
|
-
static initFromStore(user_id: UserId, device_id: DeviceId, store_handle: StoreHandle, logger?: JsLogger, ca_certs_pem?: String): Promise<OlmMachine>;
|
|
2460
|
+
static initFromStore(user_id: UserId, device_id: DeviceId, store_handle: StoreHandle, logger?: JsLogger, ca_certs_pem?: String, raw_x509_signer?: (item: Uint8Array) => Promise<{ signature_bytes: Uint8Array, certificate_chain: string }>, raw_x509_validity?: () => number): Promise<OlmMachine>;
|
|
2451
2461
|
/**
|
|
2452
2462
|
* Create a new `OlmMachine`.
|
|
2453
2463
|
*
|
|
@@ -2479,8 +2489,19 @@ export class OlmMachine {
|
|
|
2479
2489
|
* identities. Any user identity that has a valid signature according to
|
|
2480
2490
|
* the supplied CAs will be considered verified, without any manual
|
|
2481
2491
|
* verification taking place. A PEM-formatted string.
|
|
2492
|
+
*
|
|
2493
|
+
* * `raw_x509_signer` - Optional async function for signing some data with
|
|
2494
|
+
* an X.509 certificate. Used to sign the user's identity so compatible
|
|
2495
|
+
* clients will recognise this user as verified without manual
|
|
2496
|
+
* verification taking place. If you supply this you must also supply
|
|
2497
|
+
* raw_x509_validity.
|
|
2498
|
+
*
|
|
2499
|
+
* * `raw_x509_validity` - Optional function returning the validity period
|
|
2500
|
+
* of the X.509 certificate used for signing, as the number of
|
|
2501
|
+
* milliseconds since the Unix epoch. If you supply this you must also
|
|
2502
|
+
* supply raw_x509_signer.
|
|
2482
2503
|
*/
|
|
2483
|
-
static initialize(user_id: UserId, device_id: DeviceId, store_name?: string, store_passphrase?: string, logger?: JsLogger, ca_certs_pem?: String): Promise<OlmMachine>;
|
|
2504
|
+
static initialize(user_id: UserId, device_id: DeviceId, store_name?: string, store_passphrase?: string, logger?: JsLogger, ca_certs_pem?: String, raw_x509_signer?: (item: Uint8Array) => Promise<{ signature_bytes: Uint8Array, certificate_chain: string }>, raw_x509_validity?: () => number): Promise<OlmMachine>;
|
|
2484
2505
|
/**
|
|
2485
2506
|
* Invalidate the currently active outbound group session for the
|
|
2486
2507
|
* given room.
|
|
@@ -2597,7 +2618,11 @@ export class OlmMachine {
|
|
|
2597
2618
|
* `/sync` response
|
|
2598
2619
|
* * `one_time_keys_counts`: The number of one-time keys on the server,
|
|
2599
2620
|
* from the `/sync` response. A `Map` from string (encryption algorithm)
|
|
2600
|
-
* to number (number of keys).
|
|
2621
|
+
* to number (number of keys). Following the sync v2 semantics, a missing
|
|
2622
|
+
* entry for an algorithm means that there are *zero* keys of that type
|
|
2623
|
+
* on the server. If the caller has no information about the key counts
|
|
2624
|
+
* (for example, because it is processing only part of a sync response),
|
|
2625
|
+
* it should use {@link receiveSyncChangesMsc4186} instead.
|
|
2601
2626
|
* * `unused_fallback_keys`: Optionally, a `Set` of unused fallback keys on
|
|
2602
2627
|
* the server, from the `/sync` response. If this is set, it is used to
|
|
2603
2628
|
* determine if new fallback keys should be uploaded.
|
|
@@ -2614,6 +2639,46 @@ export class OlmMachine {
|
|
|
2614
2639
|
* * {@link InvalidToDeviceEvent}
|
|
2615
2640
|
*/
|
|
2616
2641
|
receiveSyncChanges(to_device_events: string, changed_devices: DeviceLists, one_time_keys_counts: Map<string, number>, unused_fallback_keys?: Set<string>, decryption_settings?: DecryptionSettings): Promise<ProcessedToDeviceEvent[]>;
|
|
2642
|
+
/**
|
|
2643
|
+
* Handle the changes to the end-to-end encryption state we received from
|
|
2644
|
+
* a [MSC4186](https://github.com/matrix-org/matrix-spec-proposals/pull/4186)
|
|
2645
|
+
* (simplified sliding sync) response.
|
|
2646
|
+
*
|
|
2647
|
+
* This behaves exactly like {@link receiveSyncChanges}, except for the
|
|
2648
|
+
* handling of `one_time_keys_counts`: under MSC4186 semantics, a missing
|
|
2649
|
+
* entry for an algorithm means that the number of keys on the server is
|
|
2650
|
+
* *unchanged*, rather than zero.
|
|
2651
|
+
*
|
|
2652
|
+
* This is therefore also the method to use when the caller has no
|
|
2653
|
+
* information about the one-time key counts, for example because it is
|
|
2654
|
+
* processing only the to-device events or the device list changes from a
|
|
2655
|
+
* sync response.
|
|
2656
|
+
*
|
|
2657
|
+
* # Arguments
|
|
2658
|
+
*
|
|
2659
|
+
* * `to_device_events`: the JSON-encoded to-device events from the sync
|
|
2660
|
+
* response
|
|
2661
|
+
* * `changed_devices`: the mapping of changed and left devices, from the
|
|
2662
|
+
* sync response
|
|
2663
|
+
* * `one_time_keys_counts`: The number of one-time keys on the server,
|
|
2664
|
+
* from the sync response. A `Map` from string (encryption algorithm) to
|
|
2665
|
+
* number (number of keys). A missing entry means "unchanged".
|
|
2666
|
+
* * `unused_fallback_keys`: Optionally, a `Set` of unused fallback keys on
|
|
2667
|
+
* the server, from the sync response. If this is set, it is used to
|
|
2668
|
+
* determine if new fallback keys should be uploaded.
|
|
2669
|
+
* * `decryption_settings`: Optionally, the settings to use when decrypting
|
|
2670
|
+
* to-device events. If not set, to-device events will be decrypted with
|
|
2671
|
+
* a {@link TrustRequirement} of `Untrusted`.
|
|
2672
|
+
*
|
|
2673
|
+
* # Returns
|
|
2674
|
+
*
|
|
2675
|
+
* A list of values, each of which can be any of:
|
|
2676
|
+
* * {@link DecryptedToDeviceEvent}
|
|
2677
|
+
* * {@link PlainTextToDeviceEvent}
|
|
2678
|
+
* * {@link UTDToDeviceEvent}
|
|
2679
|
+
* * {@link InvalidToDeviceEvent}
|
|
2680
|
+
*/
|
|
2681
|
+
receiveSyncChangesMsc4186(to_device_events: string, changed_devices: DeviceLists, one_time_keys_counts: Map<string, number>, unused_fallback_keys?: Set<string>, decryption_settings?: DecryptionSettings): Promise<ProcessedToDeviceEvent[]>;
|
|
2617
2682
|
/**
|
|
2618
2683
|
* Receive a verification event.
|
|
2619
2684
|
*
|