Skip to content
Français

validateRecipeProject

import { validateRecipeProject } from "@elie-laloum/outpost/recipes";

Read the separate recipe and configuration files and validate graph, named component references and extension metadata. Does not import user modules, read secret values or allocate sandboxes. Extension exports are checked only when running.

Complete example and detailed rules.

  • optionsRequired
    RecipeProjectOptions
    Paths of the two YAML files and optional descriptors used to validate named components.
  • options.fileRequired
    string
    Recipe YAML path resolved from the process working directory.
  • options.configRequired
    string
    Required separate local execution YAML path; its directory anchors repository and extension paths.
  • options.registryOptional
    RecipeRegistry | undefined
    Additional trusted descriptors combined with native components; duplicate factory names fail.

Promise<RecipeProjectValidation>

export declare function validateRecipeProject(
  options: RecipeProjectOptions,
): Promise<RecipeProjectValidation>;