resolvePromptConfig
Generated reference page for the resolvePromptConfig function export.
- Import:
@kjanat/dreamcli - Export kind: function
- Declared in:
src/core/prompt/index.ts - Source link:
packages/dreamcli/src/core/prompt/index.ts:538
Signatures
ts
function resolvePromptConfig(config: PromptConfig, enumValues: readonly string[] | undefined): ResolvedPromptConfig;| Parameter | Type | Description |
|---|---|---|
config | PromptConfig | Raw prompt config from FlagSchema.prompt |
enumValues | readonly string[] | undefined | Optional enum values from FlagSchema.enumValues |
Members
Members
resolvePromptConfig
Prepare a ResolvedPromptConfig from a raw PromptConfig and optional enum values from the flag schema.
For select/multiselect prompts without explicit choices, this merges the flag's enum values into the choices list. Throws if no choices are available.
This function is called by the resolution chain (prompt-resolve-1), not by the engine itself — keeping the engine free of schema knowledge.
ts
(config: PromptConfig, enumValues: readonly string[] | undefined): ResolvedPromptConfig;