import { createLogger } from "../../../../src/utils/logger/index.js";
import { init_logger } from "../../../../src/utils/logger.js";
//#region extensions/feishu/src/actions/message-action-handler.ts
init_logger();
const log = createLogger("FeishuActions");
/**
* Hook for Feishu interactive cards (`card.action.trigger`) before the agent turn runs.
* Extend here for toasts, card updates, or audit — keep side effects bounded and fast.
*/
async function handleFeishuChannelMessageAction(ctx) {
	log.info({
		action: ctx.action,
		accountId: ctx.accountId,
		chatId: ctx.chatId,
		messageId: ctx.messageId,
		dataPreview: typeof ctx.data === "string" && ctx.data.length > 400 ? `${ctx.data.slice(0, 400)}…` : ctx.data
	}, "Feishu interactive card action");
}
//#endregion
export { handleFeishuChannelMessageAction };

//# sourceMappingURL=message-action-handler.js.map