UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

49 lines (48 loc) 1.3 kB
import type { AnyQuestion } from "./ask.js"; export interface SetupWireOption { id: string; label: string; hint?: string; disabled?: boolean; disabledReason?: string; locked?: boolean; lockedReason?: string; } type SharedWireQuestion = { key: string; message: string; required: boolean; }; export type SetupWireQuestion = (SharedWireQuestion & { kind: "confirm"; recommended?: boolean; }) | (SharedWireQuestion & { kind: "text"; placeholder?: string; sensitive?: false; }) | (SharedWireQuestion & { kind: "environment"; variable: string; sensitive: true; }) | (SharedWireQuestion & { kind: "select"; recommended?: string; options: readonly SetupWireOption[]; }) | (SharedWireQuestion & { kind: "multi-select"; recommended?: readonly string[]; options: readonly SetupWireOption[]; }) | (SharedWireQuestion & { kind: "editable-select"; recommended?: string; options: readonly SetupWireOption[]; editable: { key: string; optionId: string; label: string; recommended: string; }; }); /** Removes runtime values and validators from one internal setup question. */ export declare function setupQuestionToWire(question: AnyQuestion): SetupWireQuestion; export {};