fix(cli): inject version from package.json, fix docker hint, add --port to dev

- version.ts: replace hardcoded "0.1.0" with __CLI_VERSION__ injected by
  tsup at build time from package.json — fixes version mismatch where
  `hyperframes --version` reported 0.1.0 while package was 0.1.4
- tsup.config.ts: add define.__CLI_VERSION__ using package.json version
- render.ts: renderDocker error handler showed "Try --docker" even when
  already using --docker — changed to "Check Docker is running: docker info"
- dev.ts: add missing --port arg to embedded mode; findAvailablePort now
  starts from the user-supplied port instead of hardcoded 3002

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Miguel Ángel
2026-03-27 00:45:36 +00:00
committed by Miguel Ángel
co-authored by Claude Sonnet 4.6
parent fd9d56f7e9
commit 9d2362990b
4 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -1 +1,2 @@
export const VERSION = "0.1.0";
declare const __CLI_VERSION__: string;
export const VERSION = __CLI_VERSION__;