feat(cli): add `pty --version` / `pty version` (#66)
Fresh-clone onboarding papercut: `pty --version` printed 'Unknown command'.
Add a version command (`version`, `--version`, `-v`, `-V`) that prints the
version per house convention '<semver>+<short-sha>' — semver from package.json,
short sha from git when this is a pty checkout, gracefully omitted otherwise
(e.g. an npm install prints bare '<semver>').
- src/version.ts: import-safe module with readPackageVersion / readGitShortSha /
formatVersion / printVersion. The sha lookup is gated on a .git in pty's own
package root, so an npm-installed copy inside an unrelated parent repo never
reports that repo's sha as pty's version.
- cli.ts: version switch cases + a Global help line.
- completions: add `version` (+ --version/-v) to bash & zsh.
- tests/version.test.ts: unit tests for formatVersion (with/without sha) +
integration tests that each form prints the version and exits 0.
Verified: all forms print e.g. 0.11.0+c87a6c6; npm run typecheck clean; tests green.