pi-coding-agent: missing strip-ansi dependency (breaks pnpm strict mode) #1707
iequalspoly
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug
@mariozechner/pi-coding-agent(tested on 0.55.0 and 0.55.1) importsstrip-ansiindist/core/bash-executor.jsbut does not declare it independenciesin itspackage.json.This works in some package managers that hoist aggressively (npm) but breaks under pnpm's strict isolation, since
strip-ansiis never resolved into pi-coding-agent's ownnode_modules.Reproduction
@mariozechner/pi-coding-agent@0.55.1with pnpm (strict mode, default)bash-executor.jsERR_MODULE_NOT_FOUND: Cannot find package 'strip-ansi'Workaround
pnpm
packageExtensionsto inject the missing dep:Suggested Fix
Add
"strip-ansi": "^7.1.0"(or whichever version is used in the source) todependenciesinpackages/pi-coding-agent/package.json.Beta Was this translation helpful? Give feedback.
All reactions