Scaffold web app

This commit is contained in:
tedspare
2025-11-18 16:05:05 -05:00
parent 15dce46be2
commit 51a8916a4c
40 changed files with 808 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
import { createTool } from '@rubriclab/agents'
import z from 'zod/v4'
import db from '~/db'
export default createTool({
async execute({ status, title }) {
await db.task.create({
data: {
status,
title
}
})
return undefined
},
schema: {
input: z.object({
status: z.boolean(),
title: z.string()
}),
output: z.undefined()
}
})