Repository navigation
chore(npm): retire the legacy @bugsee/bugsee-cli package #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -528,21 +528,17 @@ Every metadata `POST` sets `X-Bugsee-Uploader: cli`. The in-language fallback up | |
| |---|---| | ||
| | GitHub Releases + `download.bugsee.com/cli` (archives, `.sha256`, `latest/` and `v<major>.x/version.txt`), with the shell / PowerShell installers and `bugsee-cli update` | everyone; generic CI | | ||
| | npm `@bugsee/cli` — per-platform `optionalDependencies` | JS toolchains (React Native, web bundler plugins) | | ||
| | npm `@bugsee/bugsee-cli` — single package, `postinstall` downloader | legacy alias for the above | | ||
| | npm `@bugsee/bugsee-cli` — single package, `postinstall` downloader | **deprecated**, frozen at 0.8.2; use `@bugsee/cli` | | ||
| | CDN download + SHA-256 checksum on first use | fastlane plugin (`resolveCli`), iOS SDK BugseeAgent | | ||
| | Homebrew tap `bugsee/tap` | macOS / Linux developers | | ||
|
|
||
| Planned, not published yet: Maven Central `com.bugsee:bugsee-cli`, NuGet `Bugsee.CLI` and UPM `com.bugsee.cli`. | ||
|
|
||
| Target platforms: macOS arm64 + x86_64, Linux x86_64 + aarch64 (glibc only; no musl build), Windows x86_64 + arm64. (Windows arm64 builds natively on a `windows-11-arm` runner — see [#20](https://github.com/bugsee/bugsee-cli/issues/20).) | ||
|
|
||
| ### The two npm packages | ||
| ### npm packages | ||
|
|
||
| Both ship the same binary at the same version, and both are published from | ||
| `.github/workflows/npm-publish.yml` off the same release. They differ in how | ||
| the binary reaches `node_modules`: | ||
|
|
||
| **`@bugsee/cli` — prefer this one.** The binary lives in six per-platform | ||
| **`@bugsee/cli`.** The binary lives in six per-platform | ||
| packages (`@bugsee/cli-darwin-arm64`, `-darwin-x64`, `-linux-arm64`, | ||
| `-linux-x64`, `-win32-x64`, `-win32-arm64`), each declaring `os`/`cpu` and | ||
| pinned to the exact version by the front package's `optionalDependencies`. npm | ||
|
|
@@ -556,12 +552,14 @@ it warns and exits 0, leaving the error to surface only if `bugsee-cli` is | |
| actually invoked. It also exports `binaryPath()` for spawning the binary | ||
| directly. Sources: [`npm/`](npm/). | ||
|
|
||
| **`@bugsee/bugsee-cli` — the cargo-dist package, kept as a working alias.** | ||
| One package, no binary inside; its `postinstall` runs `install.js`, which | ||
| downloads the archive for the host on every fresh install. That means it needs | ||
| network at install time and does nothing at all under `--ignore-scripts`. | ||
| Generated by cargo-dist from `installers = [..., "npm"]`; unchanged, still | ||
| published, still supported. New integrations should use `@bugsee/cli`. | ||
| **`@bugsee/bugsee-cli` — deprecated.** The former cargo-dist package: one | ||
| package, no binary inside, whose `postinstall` downloaded the archive on every | ||
| fresh install (so it needed network and did nothing under `--ignore-scripts`). | ||
| It is no longer published. 0.8.2 is the last version and still downloads the | ||
| 0.8.1 binary; it fixes a launcher that exited `0` when the binary was killed by | ||
| a signal ([#87](https://github.com/bugsee/bugsee-cli/issues/87)). Every earlier | ||
|
Comment on lines
+559
to
+560
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Describe the legacy launcher bug accurately.
🤖 Prompt for AI Agents |
||
| version is deprecated. Migrate to `@bugsee/cli`, which reports a signal death as | ||
| `128 + signum`. | ||
|
|
||
| ## Design notes | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Do not state npm deprecation as complete.
The PR objectives state that manual publication and deprecation of
@bugsee/bugsee-cliversions are still pending. These lines state that the package is no longer published and that every earlier version is deprecated. Until the npm 2FA step is complete, describe the repository policy instead of the registry state. Apply the same correction tonpm/README.md,npm/cli/README.md, andCLAUDE.md.Also applies to: 558-561
🤖 Prompt for AI Agents