Work only in this isolated synthetic workspace. Use Read to inspect these seeded files: README.md, package.json. Invoke Bash exactly once for each command below, serially in the listed order. Each Bash call must contain only its listed command, unchanged. Do not run commands in parallel, combine or chain them, or add environment investigation commands:
Command 1 (exact Bash input):
npm run build -- orders
Command 2 (exact Bash input):
npm run build -- billing
Command 3 (exact Bash input):
npm run build -- inventory
Command 4 (exact Bash input):
npm run build -- shipping
Command 5 (exact Bash input):
npm run build -- accounts
Command 6 (exact Bash input):
npm run build -- reporting
Use the Bash tool result metadata for its exit code. If the returned summary lacks information required for the answer and a recovery handle is present, use the configured local context recovery tool to fetch only the necessary original output. Use Write to save answer.json containing only the requested JSON object. Do not edit any seeded file or use external network.

Each command runs the configured TypeScript build task and prints compiler output. Derive results from actual command output and Bash metadata, not implementation details. The first_diagnostic.file value must be workspace-relative and use forward slashes; if the compiler displays an absolute path, remove the workspace prefix and normalize separators. Write one JSON object with exactly two top-level fields: exit_codes, mapping all six component names to their Bash exit codes, and first_diagnostic, which is null if no error diagnostic appears or otherwise contains only the component, code, file, and line from the first actual TypeScript error diagnostic in the command outputs. Do not include source-file counts, inferred totals, or custom summaries.