Skip to content

feat: add independent time normalization feature - #32

Merged
SoonIter merged 6 commits into
mainfrom
fix-time-unit-boundary
Nov 16, 2026
Merged

SoonIter merged 6 commits into
mainfrom
fix-time-unit-boundary

Conversation

@SoonIter

@SoonIter SoonIter commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

transformCLR currently normalizes both ANSI colors and durations, and treats counts such as 3 sources and 2 steps as seconds. Add features.normalizeTime (default true) to control time normalization independently, and require a word boundary after s to preserve those counts. transformCLR now handles only colors.

Time normalization preserves raw ANSI codes and normalized color markers, so it works with color transformation enabled or disabled. Scan each numeric value once and check its suffix separately to avoid repeated backtracking on long non-time values. It continues to support seconds (s); milliseconds (ms) remain unchanged.

Compatibility: users who previously disabled both behaviors with transformCLR: false must now also set normalizeTime: false.

Addresses the time-normalization part of #30. Path and file URL fixes remain separate in #31.

Disable pnpm store caching in Windows CI: restoring the global virtual store repeatedly causes EPERM resolving @swc/helpers before tests run. Keep the global virtual store enabled and install dependencies afresh on Windows.

Validation: 43 tests pass, including all four feature combinations, long numeric inputs, and plain/colored duration and count regressions; pnpm check, the build, and package creation pass. Ubuntu and CodeQL pass. Windows CI passes on two consecutive runs of the latest commit without clearing caches.

Copilot AI balanced review requested due to automatic review settings November 16, 2026 11:56
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T11:56:45.433593Z
We couldn’t complete this review. Comment @codex review to try again.
c5630c8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@SoonIter SoonIter changed the title fix: require a word boundary after seconds feat: add independent time normalization feature Nov 16, 2026
@SoonIter
SoonIter merged commit 5c80d7e into main Nov 16, 2026
5 checks passed
@SoonIter
SoonIter deleted the fix-time-unit-boundary branch November 16, 2026 14:15
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.

2 participants