feat: persist research conversations and refine deck headers

This commit is contained in:
2026-09-24 18:50:44 +09:00
parent ceab2e2384
commit 80cadf7242
24 changed files with 1719 additions and 127 deletions
@@ -27,3 +27,12 @@ export const resetResearch = createServerFn({ method: 'POST' })
const { researchService } = await import('./runner.server')
return researchService().reset(data.id)
})
export const selectResearch = createServerFn({ method: 'POST' })
.validator(
z.object({ id: z.uuid(), currentId: z.uuid().nullable() }).strict(),
)
.handler(async ({ data }) => {
const { researchService } = await import('./runner.server')
return researchService().select(data.id, data.currentId)
})