Skip to content

fix(cli): resolve trail --version from package.json#21

Merged
khaliqgant merged 2 commits intomainfrom
fix/cli-version-resolution
Apr 13, 2026
Merged

fix(cli): resolve trail --version from package.json#21
khaliqgant merged 2 commits intomainfrom
fix/cli-version-resolution

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented Apr 13, 2026

Summary

  • npx trail --version was reporting a stale 0.1.0 while package.json is at 0.5.2
  • Version string was hardcoded in src/cli/index.ts and src/cli/runner.ts
  • Added src/cli/version.ts that walks up from the compiled file to find package.json and reads version at runtime (mirrors the approach used in ../relay's bootstrap.ts)

Test plan

  • npm run build
  • node dist/cli/index.js --version0.5.2
  • npx trail --version after publish reports the published version

Open with Devin

`trail --version` was reporting a stale "0.1.0" while package.json had
moved to 0.5.2. Read the version dynamically from package.json (mirrors
the approach used in ../relay's bootstrap).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@khaliqgant khaliqgant merged commit e9ee164 into main Apr 13, 2026
6 checks passed
@khaliqgant khaliqgant deleted the fix/cli-version-resolution branch April 13, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant