Adds GET /enhance/prompts?templates=a,b&limit=10 so the app can offer earlier Enhance prompts again for a series of similar photos.
Response: {"prompts": [{"prompt","template","last_used","uses"}]}; distinct prompts (trimmed), newest use first. template and last_used come from the newest job; uses counts all jobs. Empty/null prompts are excluded; discarded and failed jobs still count.
templates is optional (unknown names match nothing; omitted or empty = all). limit defaults to 10, clamped 1..50.
One GROUP BY query in EnhanceJobDao::recent_prompts (inside trace_db_call). No new index or migration; the table is small and this is a scan.
Bearer auth, not library-scoped, DB only: works with ComfyUI down and, like /enhance/jobs, answers 200 (from existing rows) when Enhance is off.
Tests: DAO unit test and endpoint tests. CLAUDE.md endpoint list updated.
Adds `GET /enhance/prompts?templates=a,b&limit=10` so the app can offer earlier Enhance prompts again for a series of similar photos.
- Response: `{"prompts": [{"prompt","template","last_used","uses"}]}`; distinct prompts (trimmed), newest use first. `template` and `last_used` come from the newest job; `uses` counts all jobs. Empty/null prompts are excluded; discarded and failed jobs still count.
- `templates` is optional (unknown names match nothing; omitted or empty = all). `limit` defaults to 10, clamped 1..50.
- One `GROUP BY` query in `EnhanceJobDao::recent_prompts` (inside `trace_db_call`). No new index or migration; the table is small and this is a scan.
- Bearer auth, not library-scoped, DB only: works with ComfyUI down and, like `/enhance/jobs`, answers 200 (from existing rows) when Enhance is off.
- Tests: DAO unit test and endpoint tests. CLAUDE.md endpoint list updated.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds
GET /enhance/prompts?templates=a,b&limit=10so the app can offer earlier Enhance prompts again for a series of similar photos.{"prompts": [{"prompt","template","last_used","uses"}]}; distinct prompts (trimmed), newest use first.templateandlast_usedcome from the newest job;usescounts all jobs. Empty/null prompts are excluded; discarded and failed jobs still count.templatesis optional (unknown names match nothing; omitted or empty = all).limitdefaults to 10, clamped 1..50.GROUP BYquery inEnhanceJobDao::recent_prompts(insidetrace_db_call). No new index or migration; the table is small and this is a scan./enhance/jobs, answers 200 (from existing rows) when Enhance is off.🤖 Generated with Claude Code