···18181919It generates:
20202121-- `clayterm.wasm` — the compiled WebAssembly module built from the C sources
2222-- `wasm.ts` — a generated TypeScript file derived from `clayterm.wasm`
2121+- `layout.wasm` — the layout WebAssembly module built from the C sources
2222+- `input.wasm` — the input WebAssembly module built from the C sources
2323+- `layout.wasm.ts` — generated TypeScript derived from `layout.wasm`
2424+- `input.wasm.ts` — generated TypeScript derived from `input.wasm`
23252424-`wasm.ts` is generated output, not hand-maintained source.
2626+These `.ts` files are generated output, not hand-maintained source.
25272628## Clone the repo with submodules
2729···182184183185This should produce:
184186185185-- `clayterm.wasm`
186186-- `wasm.ts`
187187+- `layout.wasm`
188188+- `input.wasm`
189189+- `layout.wasm.ts`
190190+- `input.wasm.ts`
187191188192For a clean rebuild:
189193···197201198202- you change files under `src/`
199203- you update the `clay` submodule
200200-- `clayterm.wasm` or `wasm.ts` is missing
204204+- `layout.wasm`, `input.wasm`, `layout.wasm.ts`, or `input.wasm.ts` is missing
201205- generated outputs look stale after switching branches or pulling changes
202206203207When in doubt, use a clean rebuild:
···247251Symptoms may include:
248252249253- target-related `clang` errors mentioning `wasm32`
250250-- linker failures while producing `clayterm.wasm`
254254+- linker failures while producing the `.wasm` outputs
251255252256Recovery:
253257···267271268272Symptoms may include:
269273270270-- `clayterm.wasm` is missing
271271-- `wasm.ts` is missing
274274+- `layout.wasm` or `input.wasm` is missing
275275+- `layout.wasm.ts` or `input.wasm.ts` is missing
272276- you changed `src/` or updated `clay/`, but the generated outputs do not match
273277274278Recovery: