pub async fn resolve_profile(
profile: &ProfileDefinition,
args: Value,
app_config: &Config,
) -> Result<ProfilePrompt>Expand description
Resolve a profile script’s prompt.
Spawns a blocking thread, creates a sandboxed Lua VM with all host APIs
plus the context bridge, and calls profile.resolve(args, config, context).