@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
19 lines • 1.01 kB
TypeScript
import { LanguageRuntime } from './language.ts';
import type { ScriptSource } from './types.ts';
/**
* Build the runtime a config program runs on: the one the config named,
* with the settings it gave.
*
* A policy program that names no runtime arrives here as monty, the
* default its parser fills in, so a missing `@pydantic/monty` is
* reported as any missing dependency is, never swapped for another
* runtime. The runtime is
* built fresh and never picked out of a workspace's runtime world: the
* world is the ordered set that serves *agent* code, it is mutable after
* construction, and an entry drops out of it silently when an optional
* dependency is missing. Throws a plain Error whose message is a clause
* about "script", for the caller to prefix with whose script it is.
* Mirrors the Python `script_engine`.
*/
export declare function scriptEngine(script: ScriptSource, runtime: string, config?: Readonly<Record<string, unknown>>): LanguageRuntime;
//# sourceMappingURL=script.d.ts.map