938 B
938 B
Auto-reply refactor notes (2025-11-26)
- Split
src/auto-reply/reply.tsinto smaller helpers:- Command handling lives in
src/auto-reply/command-reply.ts. - Audio transcription helpers live in
src/auto-reply/transcription.ts. - Shared reply types live in
src/auto-reply/types.ts(re-exported fromreply.ts).
- Command handling lives in
runCommandReplynow returns{ payload, meta }, supports injected enqueue runners for tests, logs structured metadata, and respectsmediaMaxMbfor local media paths.- Added focused tests:
src/auto-reply/command-reply.test.tsexercises Claude flag injection, session args, timeout messaging, media token handling, and Claude metadata reporting.src/auto-reply/transcription.test.tscovers media download + transcription command invocation.
- Existing public surface (
getReplyFromConfig,autoReplyIfConfigured,ReplyPayload) remains unchanged; integration tests still pass (pnpm test).