# Distribution Build

## Role
Compile TypeScript code and generate distribution files.

## Actions
1. Clean existing dist/ directory: `rm -rf dist/`
2. Run `npm run build` (tsc)
3. Verify file generation:
   - dist/*.js (compiled files)
   - dist/*.d.ts (type declarations)
   - dist/*.js.map (source maps)
4. Verify bin/autocode points to dist/index.js
5. Test execution: `node dist/index.js --version`

## Validation Criteria
- [ ] `npm run build` runs without errors
- [ ] dist/ contains all compiled files
- [ ] .d.ts files generated for types
- [ ] `node dist/index.js --version` works