Compare commits

...

7 commits

Author SHA1 Message Date
5cb66d0bf1 Merge pull request 'feat: LLM queue optimizer — resource-aware batch scheduler (closes #2)' (#15) from feature/llm-queue-optimizer into main
All checks were successful
CI / test (push) Successful in 44s
2026-03-15 16:48:37 -07:00
971336841f fix: _trim_to_letter_end matches full name when no profile set
All checks were successful
CI / test (pull_request) Successful in 42s
When _profile is None the fallback pattern \w+ only matched the first
word of a two-word sign-off (e.g. 'Alex' from 'Alex Rivera'), silently
dropping the last name. Switch fallback to \w+(?:\s+\w+)? so a full
first+last sign-off is preserved in no-config environments (CI, first run).
2026-03-15 16:43:27 -07:00
4a996c2628 ci: apt-get update before installing libsqlcipher-dev
Some checks failed
CI / test (pull_request) Failing after 1m2s
2026-03-15 16:37:46 -07:00
5939ae88eb ci: install libsqlcipher-dev before pip install
Some checks failed
CI / test (pull_request) Failing after 7s
2026-03-15 16:36:50 -07:00
2bf73bbd44 ci: re-trigger after actions enabled
Some checks failed
CI / test (pull_request) Failing after 12s
2026-03-15 15:54:27 -07:00
72c1d4a945 ci: enable forgejo actions 2026-03-15 15:48:35 -07:00
782936bae4 ci: trigger runner 2026-03-15 15:39:45 -07:00
2 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get update -q && sudo apt-get install -y libsqlcipher-dev
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:

View file

@ -240,7 +240,7 @@ def _trim_to_letter_end(text: str) -> str:
candidate_first = (_profile.name.split()[0] if _profile else "").strip() candidate_first = (_profile.name.split()[0] if _profile else "").strip()
pattern = ( pattern = (
r'(?:Warm regards|Sincerely|Best regards|Kind regards|Thank you)[,.]?\s*\n+\s*' r'(?:Warm regards|Sincerely|Best regards|Kind regards|Thank you)[,.]?\s*\n+\s*'
+ (re.escape(candidate_first) if candidate_first else r'\w+') + (re.escape(candidate_first) if candidate_first else r'\w+(?:\s+\w+)?')
+ r'\b' + r'\b'
) )
m = re.search(pattern, text, re.IGNORECASE) m = re.search(pattern, text, re.IGNORECASE)