fix(coding-agent): drop min-release-age override from managed npm ci (#11270)

Updates of pi.dev installer installs run npm ci against a release
lockfile that pins every package, so npm never resolves versions and a
configured min-release-age does not apply. The --min-release-age=0 flag
had no effect, but security scanners that block it stopped the update.

Global npm, pnpm and bun self-updates keep their age-gate overrides.

closes #11262
This commit is contained in:
David Brailovsky 2026-10-22 13:50:26 +02:00 • committed by GitHub
parent ac80dd88f3
commit 476a303c12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Changed
- `pi update` for installs from the pi.dev installer no longer passes `--min-release-age=0` to `npm ci`. The release lockfile pins every package, so the flag had no effect, and security scanners that block it stopped the update ([#11262](https://github.com/earendil-works/pi/issues/11262))
## [1.4.0] - 2026-10-21
### New Features

View file

@ -88,10 +88,11 @@ async function fetchInstallerArtifact(url: string, label: string): Promise<strin
}
async function runManagedNpmCi(stageDir: string): Promise<void> {
// No age-gate override: the release lockfile pins every package, so npm never
// resolves versions and a configured min-release-age does not apply.
const args = [
"ci",
"--ignore-scripts",
"--min-release-age=0",
"--omit=dev",
"--include=optional",
"--no-fund",