@aka_openclaw_plugin/mychat 0.2.4 → 0.2.5
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as tryGetMychatRuntime, i as setMychatRuntime, n as init_runtime, t as getMychatRuntime } from "./runtime-CkiGSF1r.js";
|
|
2
|
-
import { t as mychatPlugin } from "./channel-
|
|
2
|
+
import { t as mychatPlugin } from "./channel-DXBwjTlu.js";
|
|
3
3
|
//#region extensions/mychat/api.ts
|
|
4
4
|
init_runtime();
|
|
5
5
|
//#endregion
|
|
@@ -430,6 +430,7 @@ function createMychatMessageHandler(params) {
|
|
|
430
430
|
logger?.debug(`${prefix} duplicate messageId=${message.id}, skipping`);
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
|
+
logger?.debug(`${prefix} preflight check for accountId=${account.accountId} messageId=${message.id}, account=${JSON.stringify(account)}`);
|
|
433
434
|
const preflight = mychatPreflight(message, account);
|
|
434
435
|
if (!preflight.allowed) {
|
|
435
436
|
logger?.info(`${prefix} rejected messageId=${message.id} reason=${preflight.reason} from=${message.from?.id}`);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mychatPlugin } from "./channel-
|
|
1
|
+
import { t as mychatPlugin } from "./channel-DXBwjTlu.js";
|
|
2
2
|
export { mychatPlugin };
|