Skip to content
Français

createRecipeRuntime

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

Validate a YAML project and create a caller-owned runtime. Each run imports declared extensions, creates its owned components and sandbox, executes the workflow, integrates according to branch policy and closes resources before publishing explicitly configured reports.

Complete example and detailed rules.

  • optionsRequired
    RecipeProjectOptions
    Recipe and local configuration paths, plus optional caller-provided component descriptors.
  • 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<RecipeRuntime>

export declare function createRecipeRuntime(
  options: RecipeProjectOptions,
): Promise<RecipeRuntime>;