TesseraScaffold

Sets up .minecraft/tessera/ on first run: always refreshes the bundled tessera.d.ts (for IDE support) and, when the modules directory doesn't exist yet, drops in the hello-tessera example so there is something to test immediately.

Functions

Link copied to clipboard
fun createModule(modulesDir: Path, name: String): Result<Path>

Scaffold a new module folder <modulesDir>/<name> with a tessera.json manifest and a starter index.ts. Fails if the folder already exists (so we never clobber an existing module). Returns the module directory on success.

Link copied to clipboard
fun install(tesseraDir: Path)
Link copied to clipboard

Open dir in VSCodium. Resolves the launcher per-OS (codium.cmd via cmd /c on Windows, codium elsewhere) and starts it detached. Returns failure if the process can't be spawned.