chore(deps): bump packages and preserve agents init note styling#186
chore(deps): bump packages and preserve agents init note styling#186SutuSebastian wants to merge 2 commits into
Conversation
Refresh runtime and toolchain deps to latest, and keep dim note() text in agents init after @clack/prompts 1.6 changed the default formatter.
🦋 Changeset detectedLatest commit: 2228218 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reached
More reviews will be available in 52 minutes and 23 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
📝 WalkthroughWalkthroughBumps several runtime and dev dependencies ( ChangesDependency bumps and clack styling fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/agents-init-interactive.ts`:
- Around line 1-2: The CLI startup path in agents-init-interactive.ts uses
node:util.styleText, which breaks on Bun versions below 1.0.31. Update the Bun
engine requirement to match the minimum needed for styleText, or replace
styleText usage with a compatible fallback in the relevant startup/init code so
the path works on the currently advertised Bun range.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 9e684a8c-a4b7-4bb3-9aad-53875119b1f2
⛔ Files ignored due to path filters (1)
bun.lockis excluded by!**/*.lock
📒 Files selected for processing (3)
.changeset/deps-bump-clack-oxc.mdpackage.jsonsrc/agents-init-interactive.ts
| import { styleText } from "node:util"; | ||
|
|
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Runtime/toolchain declarations =="
fd -HI 'package.json|bunfig.toml|\.nvmrc|\.node-version|\.tool-versions|Dockerfile|docker-compose\.ya?ml' .
echo
echo "== engines/packageManager fields =="
fd -HI 'package.json' . -x sh -c 'echo "--- {} ---"; jq "{engines, packageManager, devEngines}" "{}" 2>/dev/null || sed -n "1,220p" "{}"'
echo
echo "== CI/runtime hints =="
fd -HI '.github' . >/dev/null 2>&1 && rg -n -C2 'node-version|bun-version|setup-node|oven-sh/setup-bun|FROM node:|FROM oven/bun:' .github Dockerfile docker-compose.yml docker-compose.yaml 2>/dev/null || true
echo
echo "== styleText call sites =="
rg -n -C2 '\bstyleText\b|\brunAgentsInitInteractive\b' srcRepository: stainless-code/codemap
Length of output: 2670
🌐 Web query:
Node.js util.styleText introduced in which version site:nodejs.org/api/util.html
💡 Result:
The Node.js util.styleText function was introduced in Node.js v20.12.0 [1][2][3][4]. It subsequently became stable in Node.js v22.13.0 and v23.5.0 [1][2][3][4].
Citations:
- 1: https://nodejs.org/en/blog/migrations/chalk-to-styletext
- 2: https://nodejs.org/id/blog/migrations/chalk-to-styletext
- 3: https://nodejs.org/ja/blog/migrations/chalk-to-styletext
- 4: https://nodejs.org/zh-cn/blog/migrations/chalk-to-styletext
🌐 Web query:
Bun node:util styleText support
💡 Result:
Bun supports the node:util styleText API, which provides a native way to apply terminal styling (colors and modifiers) to strings, similar to Node.js [1][2][3]. Key details regarding Bun's support for styleText: Implementation Status Bun fully implements node:util.styleText [1][3]. It was introduced in Bun v1.0.31 [2]. Usage The function accepts a format (or an array of formats) and the text to be styled [1]. You can also pass an optional configuration object to specify a stream for TTY validation [1]. import { styleText } from 'node:util'; // Basic usage console.log(styleText('green', 'Success!')); // Multiple formats console.log(styleText(['underline', 'italic'], 'Styled text')); // Stream options import { stderr } from 'node:process'; console.error(styleText('red', 'Error!', { stream: stderr })); Compatibility and Behavior - Array support: Bun added support for passing an array of formats (e.g., ['green', 'bold']) to mirror Node.js functionality [4][5]. - Environment Variables: As of mid-2026, there have been ongoing reports and tracking issues regarding whether Bun's implementation fully respects environment variables like NO_COLOR or stream TTY status (isTTY) in the same manner as Node.js [6][7]. Users experiencing issues with styling in non-TTY environments or with color-disabling variables should check the official Bun issue tracker for the most recent status updates [6][7]. For TypeScript users, type definitions are available via the @types/bun package (and were previously handled via bun-types) [8].
Citations:
- 1: https://bun.com/reference/node/util/styleText
- 2: https://bun.com/blog/bun-v1.0.31
- 3: https://bun.com/docs/runtime/nodejs-compat
- 4: feat(node:util): support array type in format for the styleText util oven-sh/bun#13807
- 5: Support an array of formats in util.styleText oven-sh/bun#11705
- 6: Bun does not respect
NO_COLOR, etc. environment variables onnode:util.styleTextoven-sh/bun#20129 - 7:
util.styleText()doesn't respectisTTYproperty. oven-sh/bun#25736 - 8: styleText is not yet defined in
node:utiloven-sh/bun#9437
Raise the Bun engine floor or avoid styleText here
node:util.styleText needs Bun 1.0.31+, but the repo still advertises bun >=1.0.0. Older Bun users will hit a startup failure on this CLI path unless the engine requirement is bumped or a fallback is added.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/agents-init-interactive.ts` around lines 1 - 2, The CLI startup path in
agents-init-interactive.ts uses node:util.styleText, which breaks on Bun
versions below 1.0.31. Update the Bun engine requirement to match the minimum
needed for styleText, or replace styleText usage with a compatible fallback in
the relevant startup/init code so the path works on the currently advertised Bun
range.
Re-sync bun.lock workspace metadata to pinned versions, consumer-clean changeset copy, and regression test for agents init note dim styling.
Summary
@clack/prompts,oxc-parser,oxc-resolver,oxfmt,oxlint,tsdown,@types/node, and related dev tooling.note()body text incodemap agents init --interactiveafter@clack/prompts1.6 changed the default formatter.hono/js-yaml/qs/zodoverrides unchanged;bun auditclean.Test plan
bun run check(build, format, lint, test, test:scripts, typecheck, test:golden, test:agent-eval)bun audit— no vulnerabilitiesSummary by CodeRabbit