Skip to main content

import_content_pack

Function import_content_pack 

Source
pub async fn import_content_pack<R: Runtime>(
    webview: WebviewWindow<R>,
    scheduler: State<'_, Scheduler>,
    path: String,
) -> Result<MergeSummary, String>
Expand description

Import a content pack from path: read (size-capped), parse, validate, and merge its hints + routines into the active profile additively (duplicates and id-collisions skipped). Persists and returns a summary of what was added. Errors are user-facing strings.