fix: refresh install metadata after repository pushes - #8
Open
labmimors wants to merge 1 commit into
Open
Conversation
|
@sluckyli2023 is attempting to deploy a commit to the hikariming's projects Team on Vercel. A member of the Team first needs to authorize it. |
labmimors
force-pushed
the
agent/refresh-install-metadata
branch
2 times, most recently
from
August 15, 2026 23:29
aa901d0 to
ac26cf0
Compare
labmimors
force-pushed
the
agent/refresh-install-metadata
branch
from
August 15, 2026 23:39
ac26cf0 to
9c25da9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
plugins.install_cmdstrictly operator-owned. Probing refreshes only the automatic facts andinstall_cmd_auto; it never clears or overwrites a curated command.nullfrom falling back to a stale build-time editorial install-command snapshot. If Turso is unavailable, the existing safe behavior remains: show the unknown/README guidance instead of an old command.There is no repository-specific branch or product allowlist in this change.
Why
Install facts can change much faster than the previous seven-day probe window. A new package publication, release, or README install path should be reflected in automatic metadata after the repository is pushed, without weakening the operator-override contract.
The live
labmimors/dsh-mcp-lenspage currently demonstrates both layers of the lifecycle: its curated primary command still points to rc.7, while the repository root and npm metadata are rc.9 and the README advertisesdsh-mcp-lens@next. This PR deliberately does not guess whether the rc.7 override is accidental. After merge and the next sync, the automatic record can refresh promptly, but the visible curated rc.7 pin still requires an operator to clear or update it. The existing follow-up on issue #3 requests that data correction.Safety boundaries
probe-install.mjsnever writesinstall_cmd, including when its value equals a previousinstall_cmd_autovalue.sync:dbstep; stale-time probing remains as a fallback.Validation
pnpm test— 24/24 pass, including an in-memory query test forpushed_at > install_probed_at, a live-null/no-editorial-fallback test, and the intentional-equal-pin write guard.pnpm exec next typegen— pass.pnpm exec tsc --noEmit— pass.pnpm build— pass using the documented static fallback because Turso credentials were intentionally absent.git diff --check— pass.latest/nextare0.1.0-rc.9; README hint isdsh-mcp-lens@next.Full-repository
pnpm lintstill reports five pre-existing errors inlesson-progress.tsx,locale-switcher.tsx,theme-toggle.tsx,typewriter.tsx, andregistry.ts; none is touched here. The Vercel PR status currently points to a deployment-authorization page rather than a code/test failure.Disclosure
I maintain
labmimors/dsh-mcp-lens, which exposed this stale-metadata path. The change is repository-agnostic and does not request featuring or ranking treatment.