Problem
Several developer experience gaps in the CLI:
- No `--verbose`/`--debug` flags — when builds fail or config is wrong, there's no way to get detailed output. Config parse errors are silently swallowed by `loadConfig()`.
- No `chronicle validate` command — no way to check config validity without starting the server. Useful in CI pipelines.
- CLI version hardcoded to `'0.1.0'` in `src/cli/index.ts` — should be read from `package.json`.
- Dev server doesn't check port conflicts — starts without warning if the port is already in use.
- Build doesn't report bundle size — no output size summary or warnings for large bundles.
Suggested Fix
- Add `--verbose` global flag that enables debug logging throughout the config loader, build, and dev server
- Add a `chronicle validate` command that parses config, checks content dirs exist, validates API spec files are readable, and reports issues
- Read version from `package.json` at build time
- Check port availability before starting dev server, suggest next available port
Problem
Several developer experience gaps in the CLI:
Suggested Fix