pub fn emit_claude_code_with_native_purpose(
ir: &WarbleIr,
out_dir: &Path,
target_id: &str,
render_flavor: RenderFlavor,
models: &ModelConfig,
hybrid: HybridRealization,
context: &ContextInjection,
providers: &[ProviderFragment],
purpose: Option<NativePurpose>,
native_scope: Option<NativeSessionScope>,
native_mcp: Option<NativeMcpDescriptor>,
) -> Result<(), DispatchError>Expand description
As emit_claude_code_with_providers, opting into the v2 native Sessions contract.
purpose is a closed, server-selected allowlist; it selects neither a caller cwd nor prompt.