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
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:
@@ -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: {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user