Files
legal-ai/docs/changelog-2026-05-hooks-jobs.md

22 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# שינויים — legal-ai backend (2026-05-17)
## הוספת webhook emitter לסטטוס תיק
### `web/paperclip_api.py`
- נוספה `emit_case_status_webhook()` — fire-and-forget helper שמדווח ל-Paperclip plugin על שינוי סטטוס
- שימוש ב-`datetime.now(timezone.utc)` במקום `datetime.utcnow()` המיושן (תואם Python 3.12+)
### `web/app.py`
- `PUT /api/cases/{case_number}` — שולח webhook ב-BackgroundTask כשהסטטוס משתנה
- שומר `old_status` לפני העדכון → משווה עם `new_status` → מפעיל webhook רק אם שונה
- `GET /api/cases/stale?days=3` — מחזיר תיקים שלא עודכנו N+ ימים (לשימוש `stale-case-reminder` job)
- `GET /api/chair-feedback/weekly-summary?days=7` — מסכם פידבק יו"ר לשבוע אחרון (לשימוש `weekly-feedback-analysis` job)
## שינויים ב-sync script
### `scripts/sync_agents_across_companies.py`
- `--check-instructions`: מדפיס טבלה עם סטטוס הוראות לכל 14 הסוכנים (✅ מעודכן / DRIFT / ⚠ NOT SET)
- pre-flight validation לפני `--apply`: אם קובץ הוראות חסר → מבטל בעדינות
- מעקב `claude_md_mtime` + `claude_md_last_synced` ב-metadata של הסוכן
- alias: `check-agents` ב-`.bashrc`