Skip to content

feat(cli): add portable traces installer#19

Merged
drewstone merged 2 commits into
mainfrom
fix/installable-cli-contract
Jul 3, 2026
Merged

feat(cli): add portable traces installer#19
drewstone merged 2 commits into
mainfrom
fix/installable-cli-contract

Conversation

@drewstone

@drewstone drewstone commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Added a repo-level install.sh that installs @tangle-network/traces from npm, handles non-writable global prefixes by using ~/.local, and verifies the exact installed binary path before falling back to PATH.
  • Added traces --version / traces version.
  • Added pnpm check:package to prove the npm tarball ships dist/cli.js, SDK entrypoints, README, installer, and package metadata.
  • Wired the package check into CI, the publish workflow, and prepublishOnly.

Why

Dotfiles and other repos should depend on the released traces CLI, not a local source checkout on one machine.

Verification

  • pnpm typecheck
  • pnpm test (13 files, 82 tests)
  • pnpm build
  • node dist/cli.js --version -> traces 0.8.11
  • pnpm check:package -> package binary ok for @tangle-network/traces@0.8.11
  • PATH=<fake-old-traces>:$PATH ./install.sh --prefix $(mktemp -d) -> validated the temp-prefix binary, not the fake PATH binary; installed bin/traces; --help returned 2804 bytes
  • git merge-tree --write-tree origin/main HEAD -> 6626fc27afd06a18ac0b39b35fc31a6ee6d7c478

@drewstone drewstone marked this pull request as ready for review July 3, 2026 04:20

@tangletools tangletools left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Auto-approved drewstone PR — b6074b1c

This PR was opened by the trusted drewstone account.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: drewstone_author · 2026-07-03T04:20:24Z

@drewstone drewstone merged commit 5bba40b into main Jul 3, 2026
1 check passed
@drewstone drewstone deleted the fix/installable-cli-contract branch July 3, 2026 04:23
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.

2 participants