···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···184186185187This should produce:
186188187187-- `clayterm.wasm`
188188-- `wasm.ts`
189189+- `layout.wasm`
190190+- `input.wasm`
191191+- `layout.wasm.ts`
192192+- `input.wasm.ts`
189193190194For a clean rebuild:
191195···199203200204- you change files under `src/`
201205- you update the `clay` submodule
202202-- `clayterm.wasm` or `wasm.ts` is missing
206206+- `layout.wasm`, `input.wasm`, `layout.wasm.ts`, or `input.wasm.ts` is missing
203207- generated outputs look stale after switching branches or pulling changes
204208205209When in doubt, use a clean rebuild:
···249253Symptoms may include:
250254251255- target-related `clang` errors mentioning `wasm32`
252252-- linker failures while producing `clayterm.wasm`
256256+- linker failures while producing the `.wasm` outputs
253257254258Recovery:
255259···270274271275Symptoms may include:
272276273273-- `clayterm.wasm` is missing
274274-- `wasm.ts` is missing
277277+- `layout.wasm` or `input.wasm` is missing
278278+- `layout.wasm.ts` or `input.wasm.ts` is missing
275279- you changed `src/` or updated `clay/`, but the generated outputs do not match
276280277281Recovery: