mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
A Mail switch in the chat sends the AI the latest 40 messages (attachments and text for the newest and for the ones the request names). The AI may answer with a plan (a coucou-mail JSON block): sort, reply drafts, sends, a mail merge that gives each recipient their page of a PDF, saving attachments. The chat shows it as a card: the mails to send, the ones that can't be sent in red, Send me a test, and Run, which starts a 5-second countdown before anything happens. Sends are listed in the Mail section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
10 lines
421 B
Bash
Executable File
10 lines
421 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-mail-triage.XXXXXX")"
|
|
trap 'rm -rf "$TEST_DIR"' EXIT
|
|
swiftc -swift-version 6 -strict-concurrency=complete \
|
|
NotchBuddy/Sources/App/MailTriage.swift NotchBuddy/Sources/App/MailPlan.swift \
|
|
tests/MailTriageTests.swift tests/MailPlanTests.swift -o "$TEST_DIR/mail-triage-tests"
|
|
"$TEST_DIR/mail-triage-tests"
|