From bdb28030dbfe879f8ea4ca769b135bc48713dc86 Mon Sep 17 00:00:00 2001 From: luoyuctl <51604064+luoyuctl@users.noreply.github.com> Date: Sun, 10 May 2026 22:22:19 +0800 Subject: [PATCH] Guard root README npm availability wording --- README.md | 2 +- scripts/ci/check-release-surfaces.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 325e489..3a51416 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Windows: iwr -useb https://raw.githubusercontent.com/luoyuctl/agenttrace/master/install.ps1 | iex ``` -The npm wrapper is also available as `agenttrace` after each release is published. +The npm wrapper package is not published yet; use the installer, Homebrew, or Go install paths above for now. ## Common workflows diff --git a/scripts/ci/check-release-surfaces.sh b/scripts/ci/check-release-surfaces.sh index 7c9ef36..89c91e0 100755 --- a/scripts/ci/check-release-surfaces.sh +++ b/scripts/ci/check-release-surfaces.sh @@ -28,6 +28,12 @@ if grep -Eqi "not been published yet|registry 404|until the first publish" npm/R fail "npm README must not present npm install as active while the package is unpublished" fi +if grep -Eqi "not been published yet|registry 404|until the first publish" npm/README.md && + grep -Eqi "npm wrapper is also available|npm install -g agenttrace" README.md && + ! grep -Eqi "npm wrapper package is not published yet|after the package is published" README.md; then + fail "README must not present npm as active while the package is unpublished" +fi + if ! grep -q "