Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript
436 B
Raw Blame
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(),
  })
)