You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(inquirerer): ship string-width as a runtime dependency - #165
inquirerer imports string-width at runtime, but string-width was only a devDependency. So consumers of the published package fail with Cannot find module 'string-width'. This is what turned constructive-db#4504's audit check red, when Safegres loads inquirerer.
This PR moves string-width from devDependencies to dependencies in packages/inquirerer/package.json and updates the lockfile. The inquirerer tests pass (217), and safegres --help loads with the packed fix.
This PR reclassifies string-width as a runtime dependency of the inquirerer package, which is correct for a CLI that measures terminal output width at runtime.
Files
Change
packages/inquirerer/package.json
Moves string-width 4.2.3 from devDependencies to dependencies so it resolves in published installs.
The change is minimal and consistent with the existing lockfile; no issues were found.
Merge Risk: Minimal · up to 51e1f · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
Security architecture risk: Minimal · up to 51e1f
The change makes the same pinned version of string-width available to production consumers that already need it. The change does not add permissions or alter application code, and no material security or rollback risk was identified.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — Exposure changes for downstream production installations that previously did not resolve string-width: those installations now receive the pinned package. The diff adds no new caller or authority grant; the number of affected consumers was not established.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: moving string-width from devDependencies to dependencies in the inquirerer package so the runtime import works for consumers. The raw summary confirms that exact move …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: moving string-width from devDependencies to dependencies in the inquirerer package so the runtime import works for consumers. The raw summary confirms that exact move in packages/inquirerer/package.json, and the objectives say inquirerer imports string-width at runtime. The title uses the conventional fix(scope) form and is specific, short, and free of file lists.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between 799f77f and 51e1f01.
Files ignored due to path filters: 1
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
Files selected for processing: 1
packages/inquirerer/package.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
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
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.
Summary
inquirererimportsstring-widthat runtime, butstring-widthwas only a devDependency. So consumers of the published package fail withCannot find module 'string-width'. This is what turned constructive-db#4504'sauditcheck red, when Safegres loadsinquirerer.This PR moves
string-widthfromdevDependenciestodependenciesinpackages/inquirerer/package.jsonand updates the lockfile. The inquirerer tests pass (217), andsafegres --helploads with the packed fix.Implemented in session Review and merge phat's headless CLI PRs
Review with Devin · Open in Devin Desktop
Summary by CodeRabbit
string-width.