mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 06:41:08 +00:00
Plugins: scope SDK imports and harden Matrix routing
This commit is contained in:
@@ -14,6 +14,7 @@ async function main() {
|
||||
password: auth.password,
|
||||
deviceId: auth.deviceId,
|
||||
encryption: false,
|
||||
accountId: auth.accountId,
|
||||
});
|
||||
|
||||
const targetUserId = process.argv[2]?.trim() || "@user:example.org";
|
||||
|
||||
@@ -25,6 +25,7 @@ async function main() {
|
||||
password: auth.password,
|
||||
deviceId: auth.deviceId,
|
||||
encryption: true,
|
||||
accountId: auth.accountId,
|
||||
});
|
||||
const initCrypto = (client as unknown as { initializeCryptoIfNeeded?: () => Promise<void> })
|
||||
.initializeCryptoIfNeeded;
|
||||
|
||||
@@ -23,6 +23,7 @@ async function main() {
|
||||
password: auth.password,
|
||||
deviceId: auth.deviceId,
|
||||
encryption: false,
|
||||
accountId: auth.accountId,
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
@@ -31,6 +31,7 @@ async function main() {
|
||||
password: auth.password,
|
||||
deviceId: auth.deviceId,
|
||||
encryption: true,
|
||||
accountId: auth.accountId,
|
||||
});
|
||||
|
||||
const stamp = new Date().toISOString();
|
||||
|
||||
@@ -26,6 +26,7 @@ async function main() {
|
||||
password: auth.password,
|
||||
deviceId: auth.deviceId,
|
||||
encryption: true,
|
||||
accountId: auth.accountId,
|
||||
});
|
||||
|
||||
const stamp = new Date().toISOString();
|
||||
|
||||
@@ -40,6 +40,7 @@ async function main() {
|
||||
password: auth.password,
|
||||
deviceId: auth.deviceId,
|
||||
encryption: true,
|
||||
accountId: auth.accountId,
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
@@ -21,6 +21,7 @@ async function main() {
|
||||
password: auth.password,
|
||||
deviceId: auth.deviceId,
|
||||
encryption: false,
|
||||
accountId: auth.accountId,
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user