UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

18 lines 622 B
import { PromptRuntime } from "./prompt-runtime.js"; import { RuntimeFactory } from "./runtime-factory.js"; // Export the PromptRuntime class for advanced users export { PromptRuntime }; /** * Create a new prompt runtime * * Factory function that creates and returns a PromptRuntime instance. * This provides the main API for executing prompt flows. * * @param ui - The UI implementation to use * @returns Runtime instance with ask, group, and plugin methods */ export function createRuntime(ui) { return RuntimeFactory.createRuntime(ui); } export { createRuntime as default }; //# sourceMappingURL=core.js.map