CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-wrap-ansi

tessl install tessl/npm-wrap-ansi@9.0.0

Wordwrap a string with ANSI escape codes

Agent Success

Agent success rate when using this tile

100%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.04x

Baseline

Agent success rate without this tile

96%

rubric.jsonevals/scenario-10/

{
  "context": "This evaluation assesses how effectively the engineer uses the wrap-ansi package to handle text wrapping with nested ANSI codes within hyperlinks. The focus is on correct usage of wrap-ansi's capabilities for preserving both hyperlink and styling escape codes across line breaks.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses wrapAnsi function",
      "description": "The solution imports and uses the wrapAnsi function from the wrap-ansi package as the primary wrapping mechanism.",
      "max_score": 25
    },
    {
      "name": "Correct function signature",
      "description": "Calls wrapAnsi with the correct parameters: wrapAnsi(string, columns, options?) where string contains the text with ANSI codes and columns specifies the wrap width.",
      "max_score": 20
    },
    {
      "name": "Hyperlink preservation",
      "description": "The implementation correctly relies on wrap-ansi's built-in OSC 8 hyperlink support to preserve clickable links across line breaks, without attempting to manually handle hyperlink escape sequences.",
      "max_score": 25
    },
    {
      "name": "Nested style handling",
      "description": "The implementation correctly relies on wrap-ansi's SGR (Select Graphic Rendition) code tracking to preserve nested ANSI styling (colors, bold, underline, etc.) within hyperlinks across line breaks, without manually parsing or reconstructing style codes.",
      "max_score": 25
    },
    {
      "name": "Minimal custom logic",
      "description": "The solution leverages wrap-ansi's built-in capabilities rather than reimplementing wrapping, ANSI parsing, or state tracking logic. The implementation should be concise, primarily delegating to wrapAnsi.",
      "max_score": 5
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/wrap-ansi@9.0.x
tile.json