RunContext
Defined in: execution/context.ts:27
Execution context for running plans.
All fields are optional:
readFile: Required for FileInput plansglob: Required for FilesInput plansregistry: Transform registry (defaults to globalRegistry)
Example
Section titled “Example”// DirectInput only - no context neededconst result = await run(plan)
// With file accessconst result = await run(plan, { readFile: myReadFile })
// With glob supportconst result = await run(plan, { readFile: myReadFile, glob: myGlob })
// With custom registryconst result = await run(plan, { readFile: myReadFile, registry: myRegistry })Properties
Section titled “Properties”glob()?
Section titled “glob()?”
readonlyoptionalglob: (pattern) =>Promise<string[]>
Defined in: execution/context.ts:29
Parameters
Section titled “Parameters”pattern
Section titled “pattern”string
Returns
Section titled “Returns”Promise<string[]>
readFile()?
Section titled “readFile()?”
readonlyoptionalreadFile: (path) =>FileContent|Promise<FileContent>
Defined in: execution/context.ts:28
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”FileContent | Promise<FileContent>
registry?
Section titled “registry?”
readonlyoptionalregistry:TransformRegistry
Defined in: execution/context.ts:30