Host API
The wscript module surface config-weave registers for scripts — registered everywhere, foreign-platform functions error off their platform.
The host API is the wscript module surface config-weave registers for all scripts (resources, gatherers, verify). It is identical on every platform: foreign-platform functions exist everywhere and return runtime errors off their platform, so playbooks compile and validate the same on Linux and Windows. Guard platform-specific calls with a condition (os.family == "windows") or sys::family().
Import a module with use <module>. All fallible functions return `Result[…, string] and compose with ?`. The authoritative surface is whatever config-weave wscripti emits, generated from src/hostapi/*.rs.
Cross-platform modules: log, fs, path, shell, http, hash, archive, env, sys, data, template. Windows-only modules: registry, service, com.