feat: options de génération (thème/style/type) + masquer agents one-shot
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 23s

- Les agents créés par run-for-note ont frequency:'one-shot' et sont
  filtrés de la page /agents (NOT frequency:'one-shot' dans getAgents)
- Panneau slides : sélecteurs Thème (11 palettes) + Style (sharp/soft/rounded/pill)
- Panneau diagramme : sélecteurs Type (auto/flowchart/mindmap/timeline/
  org-chart/architecture/process-map) + Style (sketchy/austere/sketch+)
- Les valeurs sélectionnées sont transmises à l'API et injectées dans le prompt

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Antigravity
2026-05-05 21:45:57 +00:00
parent db200bbc9f
commit 4f950740eb
5 changed files with 102 additions and 44 deletions

View File

@@ -204,7 +204,7 @@ export async function getAgents() {
try {
const agents = await prisma.agent.findMany({
where: { userId: session.user.id },
where: { userId: session.user.id, NOT: { frequency: 'one-shot' } },
include: {
_count: { select: { actions: true } },
actions: {

View File

@@ -61,7 +61,7 @@ export async function POST(req: NextRequest) {
role: defaults.role,
tools: defaults.tools,
maxSteps: defaults.maxSteps,
frequency: 'manual',
frequency: 'one-shot',
isEnabled: true,
sourceNoteIds: JSON.stringify([noteId]),
targetNotebookId: note.notebookId ?? undefined,