DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

HUISDE /

HUISDE/dsh-pnpm-release-age-zero-fix

Verified

DSH Desktop zero-release-age update-policy compatibility plugin

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@ed88decd

DSH Desktop zero-release-age compatibility plugin

桌面版插件更新等待兼容补丁。仅在启动环境的发布观察期设置为零时运行。它会持久写入当前 profile 的 minimumReleaseAge: 0;卸载不会自动恢复该项,请按需手动恢复。

Install from this public source through the Desktop plugin manager using github:HUISDE/dsh-pnpm-release-age-zero-fix. For a regular web profile: dsh plugin --profile web add github:HUISDE/dsh-pnpm-release-age-zero-fix.

This is a workaround for the observed market policy detector, not a claim of compatibility with every Desktop distribution. It requires an existing readable and writable pnpm-workspace.yaml. Missing files or a failed write leave the environment unchanged. Nonzero environment settings remain untouched.

The Desktop launcher can provide pnpm_config_minimum_release_age=0 to its package manager. The market's update-policy detector scans the Host process environment and cannot distinguish this launcher default from an unknown externally-managed policy.

When that exact variable is present with value 0, this plugin:

  1. Reads the active Desktop profile directory from desktopProfiles.current.dir when the Desktop bridge exposes it, with DSH_PROFILE_DIR as the launcher's standard fallback.
  2. Mirrors the effective Desktop setting as a top-level minimumReleaseAge: 0 in that profile's pnpm-workspace.yaml, preserving the rest of the file.
  3. Removes only the matching zero-valued alias from the Host process environment so the market can read the explicit profile policy. The process variable is restored when this plugin is unloaded.

It does nothing when the Desktop variable is absent or nonzero. The profile setting is persistent so the market and pnpm agree on the same policy after restart. If you later remove this plugin and want to restore the former release-age policy, edit minimumReleaseAge in the Desktop profile's pnpm-workspace.yaml.

—/ 5

No ratings yet

Verified DSH bundle

Commit ed88decd1aaa

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout