Variable: recipes
constrecipes:object
Defined in: src/ai/recipes.ts:48
Consumer-facing recipes introspection API.
Type Declaration
describe()
readonlydescribe: (name) =>string|undefined
Returns a human-readable description of a named recipe.
Parameters
name
string
Returns
string | undefined
find()
readonlyfind: (query) =>object[]
Searches recipes by substring match on name or description.
Parameters
query
string
Returns
forAI()
readonlyforAI: () =>object[]
Returns all recipes in an AI-agent-friendly format.
Returns
forCapability()
readonlyforCapability: (capability) =>object[]
Returns recipes associated with a specific capability.
Parameters
capability
string
Returns
forDomain()
readonlyforDomain: (domain) =>object[]
Returns recipes relevant to a specific SAP domain.
Parameters
domain
string
Returns
forProcess()
readonlyforProcess: (process) =>object[]
Returns recipes for a specific business process.
Parameters
process
string
Returns
getDomains()
readonlygetDomains: () =>string[]
Returns unique domain names across all registered recipes.
Returns
string[]
getSteps()
readonlygetSteps: (name) =>string|undefined
Returns the pattern code for a named recipe, or undefined.
Parameters
name
string
Returns
string | undefined
getTopRecipes()
readonlygetTopRecipes: (n) =>object[]
Returns the top n recipes by insertion order.
Parameters
n
number
Returns
has()
readonlyhas: (name) =>boolean
Returns true if a recipe with the given name exists.
Parameters
name
string
Returns
boolean
list()
readonlylist: () =>object[]
Returns all registered recipe entries.
Returns
registry
registry:
RecipeRegistry
The underlying registry instance (for advanced usage like fromEntries()).
search()
readonlysearch: (query) =>object[]
Searches recipes by substring match on name or description.
Parameters
query
string
Returns
select()
readonlyselect: (filter) =>object[]
Returns recipes matching the given filter criteria.
Parameters
filter
domain?
string
priority?
"optional" | "essential" | "recommended" | "advanced" | "deprecated"
Returns
selectByDomain()
readonlyselectByDomain: (domain) =>object[]
Returns recipes matching the given domain.
Parameters
domain
string
Returns
selectByPriority()
readonlyselectByPriority: (priority) =>object[]
Returns recipes matching the given priority level.
Parameters
priority
"optional" | "essential" | "recommended" | "advanced" | "deprecated"
Returns
toJSON()
readonlytoJSON: () => readonlyobject[]
Exports all recipes as a JSON-serializable array.
Returns
readonly object[]
validate()
readonlyvalidate: (name) =>object
Validates that a recipe name exists.
Parameters
name
string
Returns
object
valid
readonlyvalid:boolean
Intent
Provide drop-in parity with mk's recipes object.
Capability
Recipe discovery, AI test scaffolding.
Example
import { recipes } from 'playwright-praman';
const essential = recipes.selectByPriority('essential');
const all = recipes.forAI();