Skip to content

Refactor AI prompt helpers and history selection#11

Merged
sleroq merged 1 commit intomasterfrom
refactor/ai-handler-history-testability
Mar 7, 2026
Merged

Refactor AI prompt helpers and history selection#11
sleroq merged 1 commit intomasterfrom
refactor/ai-handler-history-testability

Conversation

@sleroq
Copy link
Copy Markdown
Owner

@sleroq sleroq commented Mar 7, 2026

Summary

  • extract target ref mapping/annotation and language protocol into standalone pure modules used by Telegram AI handler
  • refactor history building with a shared selectHistoryCandidates pipeline used by both chat history and notes history generation
  • add focused tests for new helper modules and history candidate selection behavior

Verification

  • deno check --allow-import main.ts
  • deno lint
  • AI_TOKEN="test" deno test -A

@sleroq sleroq merged commit 4376a3f into master Mar 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant