Skip to content
Merged
6 changes: 3 additions & 3 deletions integrations/pi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ npm audit --no-package-lock --include=dev
```

The pinned Pi test host includes its own shrinkwrap. `package.json` overrides now pin the
patched `undici` and `minimatch` leaves, so the lock itself resolves to fixed versions and
no post-install repair is needed; `npm audit` is the gate for both the production and the
development trees.
patched `undici`, `minimatch`, `hono`, and `@hono/node-server` leaves, so the lock itself
resolves to fixed versions and no post-install repair is needed; `npm audit` is the gate for
both the production and the development trees.

`npm run verify` type-checks the package, runs its configuration tests, and previews
the publish tarball. The package pins the MCP SDK; update it only with a compatibility
Expand Down
4 changes: 2 additions & 2 deletions integrations/pi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"@modelcontextprotocol/sdk": "1.32.1"
},
"overrides": {
"@hono/node-server": "^2.1.6",
"@hono/node-server": "^2.1.8",
"body-parser": "^2.4.0",
"fast-uri": "^3.1.9",
"hono": "^4.13.16",
"hono": "^4.13.18",
"minimatch": "^11.0.3",
"proxy-addr": "2.0.8",
"undici": "^8.12.3",
Expand Down
14 changes: 10 additions & 4 deletions tests/test_release_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,18 +691,24 @@ def test_release_transitive_dependency_security_floors_cannot_regress():
package = json.loads(_text("integrations/pi/package.json"))
lock = json.loads(_text("integrations/pi/npm-shrinkwrap.json"))
expected_overrides = {
"@hono/node-server": "^2.1.8",
"body-parser": "^2.4.0",
"fast-uri": "^3.1.9",
"hono": "^4.13.18",
"minimatch": "^11.0.3",
"proxy-addr": "2.0.8",
"undici": "^8.12.3",
"zod": "^4.6.6",
}
for name, floor in expected_overrides.items():
assert package["overrides"][name] == floor
locked = lock["packages"][f"node_modules/{name}"]["version"]
assert tuple(map(int, locked.split("."))) >= tuple(
map(int, floor.removeprefix("^").split("."))
)
min_version = tuple(map(int, floor.removeprefix("^").split(".")))
top_key = f"node_modules/{name}"
assert top_key in lock["packages"]
suffix = f"/{top_key}"
for pkg_path, entry in lock["packages"].items():
if pkg_path == top_key or pkg_path.endswith(suffix):
assert tuple(map(int, entry["version"].split("."))) >= min_version, pkg_path

# The Pi test host is pinned to a release whose own shrinkwrap resolves the patched
# leaves. Earlier releases needed a post-install repair, which could not clear the
Expand Down
Loading