Skip to content

feat: support beta/pre-release npm packages for tools#564

Merged
Power-Maverick merged 2 commits into
devfrom
copilot/support-beta-packages
Jun 15, 2026
Merged

feat: support beta/pre-release npm packages for tools#564
Power-Maverick merged 2 commits into
devfrom
copilot/support-beta-packages

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Adds opt-in installation of pre-release (beta) npm dist-tag versions of registry tools, surfaced via a contextual button on the Tool Details page — similar to VS Code's "Switch to Pre-Release Version" pattern.

Changes

Type detection

  • ToolRegistryEntry gains npmPackageName (populated from Supabase packagename column), propagated to the ToolDetail renderer type

npm registry check (toolRegistryManager.ts)

  • checkBetaPackage(npmPackageName) — queries https://registry.npmjs.org/-/package/<name>/dist-tags for a beta tag; uses encodeURIComponent() for correct scoped-package encoding (@org/pkg%40org%2Fkg); returns version string or null

Install flow (toolsManager.ts)

  • installPrereleaseToolFromNpm(name) — installs <pkg>@beta via pnpm, loads using base name; distinct per-step error messages (install failure vs load failure)
  • resolvePackageDirectoryName() — strips @tag/@version specifiers so versioned pnpm installs (e.g. pkg@beta) resolve to the correct node_modules/pkg directory; this also fixes the pre-existing debug-install bug for any versioned package spec

IPC / preload

  • New CHECK_BETA_PACKAGE and INSTALL_PRERELEASE_TOOL channels wired through index.tspreload.tsToolboxAPI

Tool Details UI (marketplaceManagement.ts)

  • On panel open, checkAndShowPrereleaseButton() asynchronously checks beta availability and reveals an "Install Pre-Release Version (vX.Y.Z-beta.N)" button when a beta dist-tag exists
  • Stale-tab guard: discards the result if the user navigated away before the API responded

Update check untouchedcheckForUpdates() compares only against Supabase registry versions; beta packages are never surfaced as automatic updates


  • Use a meaningful title for the pull request.
  • Follow the guidelines from the CONTRIBUTING.md.
  • Test the change in your own code. (Compile and run)
  • Resolve all GH Copilot comments.

Copilot AI linked an issue Jun 15, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add support for beta packages in the tool feat: support beta/pre-release npm packages for tools Jun 15, 2026
Copilot AI requested a review from Power-Maverick June 15, 2026 15:08
@Power-Maverick Power-Maverick marked this pull request as ready for review June 15, 2026 16:45
@github-actions

Copy link
Copy Markdown

Bundle Size Report 📦

Bundle Size
Main Process 972.86 KB
Renderer JS 551.68 KB
Renderer CSS 96.89 KB
Total 1.58 MB

Bundle Analysis Reports

The detailed bundle analysis reports are available in the workflow artifacts:

  • 📊 Main Process: stats-main.html
  • 📊 Renderer Process: stats-renderer.html

Download the artifacts from the workflow run to view interactive visualizations.


Bundle size tracking is now active! This helps prevent bundle bloat.

@Power-Maverick Power-Maverick merged commit d892992 into dev Jun 15, 2026
3 checks passed
@Power-Maverick Power-Maverick deleted the copilot/support-beta-packages branch June 15, 2026 16:47
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.

[Feature]: Support for BETA packages

2 participants