project-nomad/admin/app/validators/nomad_md.ts
Jake Turner 8a356384d3
feat(AI): nomad.md for custom instructions (#1127)
* feat(AI): nomad.md for custom instructions
* fix(UI): broken HTML tag close
2026-08-04 03:38:33 +00:00

12 lines
436 B
TypeScript

import vine from '@vinejs/vine'
// Allow an empty/absent value so the user can clear their NOMAD.md — AdonisJS
// converts empty request strings to null, so `optional()` (coerced to '' in the
// controller) is what lets a "clear" through. The cap keeps a single system
// prompt from growing unbounded.
export const updateNomadMdSchema = vine.compile(
vine.object({
content: vine.string().maxLength(100_000).optional(),
})
)