Skip to content

fix(inquirerer): ship string-width as a runtime dependency - #165

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
fix/inquirerer-runtime-string-width
Nov 27, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
fix/inquirerer-runtime-string-width

Conversation

@pyramation

@pyramation pyramation commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

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.


Johnny opened this PR for Dan
Implemented in session Review and merge phat's headless CLI PRs
Review with Devin · Open in Devin Desktop


Summary by CodeRabbit

  • Chores
    • Updated the package’s dependency classification for string-width.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@luxor-code-review

luxor-code-review Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


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.

Reviewed commit: 51e1f01

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The package moves string-width version 4.2.3 from development dependencies to production dependencies.

Changes: Dependency declaration

Layer / File(s) Summary
Update dependency declaration
packages/inquirerer/package.json
string-width version 4.2.3 is now a production dependency instead of a development dependency.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit 1343ccf into main Nov 27, 2026
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant