Split the system prompt into an editable part (persona/focus/tone/ format — what the briefing prioritises and how strict its length is) and a fixed structural appendix (how the Manual Context and Recent Previous Insights sections get interpreted, which map directly to conditional data the code assembles, not just prose — kept safe from being accidentally edited away). New ai_insights_prompt_instructions config key, a GET /api/ai-insights/default-prompt endpoint so the Settings UI can pre-fill/reset to the built-in default, and a textarea in the AI Insights settings card. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| jobs | ||
| lib | ||
| routes | ||
| auth.js | ||
| db.js | ||
| index.js | ||
| ip-check.js | ||