Skip to content

chore(deps): bump packages and preserve agents init note styling#186

Open
SutuSebastian wants to merge 2 commits into
mainfrom
chore/deps-bump-jun-2026
Open

chore(deps): bump packages and preserve agents init note styling#186
SutuSebastian wants to merge 2 commits into
mainfrom
chore/deps-bump-jun-2026

Conversation

@SutuSebastian

@SutuSebastian SutuSebastian commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bump runtime and toolchain dependencies to latest: @clack/prompts, oxc-parser, oxc-resolver, oxfmt, oxlint, tsdown, @types/node, and related dev tooling.
  • Preserve dim note() body text in codemap agents init --interactive after @clack/prompts 1.6 changed the default formatter.
  • Existing hono / js-yaml / qs / zod overrides unchanged; bun audit clean.

Test plan

  • bun run check (build, format, lint, test, test:scripts, typecheck, test:golden, test:agent-eval)
  • bun audit — no vulnerabilities
  • Merge changeset release PR when ready

Summary by CodeRabbit

  • Dependencies
    • Updated several runtime and development tools to newer compatible versions, including prompt, parsing, linting, formatting, TypeScript, and release tooling packages.
  • Bug Fixes
    • Preserved the dimmed appearance of interactive note text in the setup flow after a prompt library update.

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-bot

changeset-bot Bot commented Jun 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2228218

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/codemap Patch

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

@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@SutuSebastian, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 22c3c0ef-f813-4e1d-bc6a-f2240f0c9509

📥 Commits

Reviewing files that changed from the base of the PR and between d368004 and 2228218.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • .changeset/deps-bump-clack-oxc.md
  • src/agents-init-interactive.test.ts
📝 Walkthrough

Walkthrough

Bumps several runtime and dev dependencies (@clack/prompts to 1.6.0, oxc-parser, oxc-resolver, and dev tooling), then adds a dimNote formatter in agents-init-interactive.ts using styleText from node:util to restore dim styling for note body text after @clack/prompts v1.6 changed its defaults. A changeset documents the patch release.

Changes

Dependency bumps and clack styling fix

Layer / File(s) Summary
Dependency version bumps and changeset
package.json, .changeset/deps-bump-clack-oxc.md
@clack/prompts, oxc-parser, oxc-resolver bumped in dependencies; @types/node, @typescript/native-preview, lint-staged, oxfmt, oxlint, tsdown bumped in devDependencies; changeset documents the patch release.
dimNote formatter for clack v1.6 compatibility
src/agents-init-interactive.ts
Imports styleText from node:util, defines dimNote formatter, and passes it to both note() calls to preserve dim body text styling.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐇 A bump here, a bump there,
versions fresh beyond compare!
Clack changed its style, oh no, oh my—
dimNote keeps the text just right.
Hop along, the CI's green,
sleekest rabbit you have seen! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the dependency bumps and the note styling fix in this PR.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/deps-bump-jun-2026

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between aaa5b3a and d368004.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .changeset/deps-bump-clack-oxc.md
  • package.json
  • src/agents-init-interactive.ts

Comment on lines +1 to +2
import { styleText } from "node:util";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 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' src

Repository: 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:


🌐 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:


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.
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