Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -30,10 +30,8 @@ export type EmailMatchClient = EmailWorkerClient & {
activity: { create(args: { data: Record<string, unknown> }): Promise<{ id: string }> };
};
function klartextSummary(message: MappedEmailMessage): string {
const who = message.direction === "inbound" ? (message.from.name ?? message.from.address) : (message.to[0]?.name ?? message.to[0]?.address ?? "");
const subject = message.subject?.trim() ? `„${message.subject.trim()}“` : "(ohne Betreff)";
return message.direction === "inbound" ? `Eingehende E-Mail von ${who}: ${subject}` : `Ausgehende E-Mail an ${who}: ${subject}`;
function activitySummaryKey(message: MappedEmailMessage): string {
return message.direction === "inbound" ? "activity.runtime.email.received" : "activity.runtime.email.sent";
}
async function gatherAndDecide(
@@ -144,7 +142,7 @@ export function createEmailAutoMatchHook(): EmailMessageUpsertedHook {
activityType: message.direction === "inbound" ? "email_received" : "email_sent",
subjectType: subject.subjectType,
subjectId: subject.subjectId,
summaryText: klartextSummary(message),
summaryText: activitySummaryKey(message),
relatedEntityRefs: relatedEntityRefs.length > 0 ? relatedEntityRefs : undefined,
metadata: {
emailMessageId: messageId,