wasm-posix-host
    Preparing search index...

    Function resolveForNode

    • Materialise spec for the Node host. Image mounts get a fresh MemoryFileSystem.fromImage(rootfsImage); scratch mounts get a HostFileSystem rooted at <sessionDir><spec.path> (the directory is created with mkdirSync({recursive:true}) so safePath is happy on first access).

      Pure function: input → output, no global state.

      Parameters

      • spec: MountSpec[]
      • rootfsImage: Uint8Array
      • sessionDir: string

      Returns MountConfig[]