react-grab@0.1.47
triggerdotdev/trigger.devreact-grab@0.1.47Jun 18, 2026by github-actions[bot]
AI Summary
This patch release improves context grabbing for wrapper-heavy elements by treating app-owned shared-UI/design-system frames like node_modules. It adds a maxContextLines option to control line budgets and enhances trace readability.
Key Highlights
- Treats app-owned shared-UI/design-system frames like node_modules to dig deeper into meaningful feature sources.
- Adds a maxContextLines option to raise the line budget for large applications and agent prompts.
- Hardens the trace logic to handle non-finite/negative values by falling back to defaults.
- Collapses consecutive duplicate trace lines from shared-UI frames to improve readability.
New Features
- Support for maxContextLines option via script data-options attribute.
- Automatic deeper context digging through UI primitives for wrapper-heavy elements.
- Improved trace readability with duplicate line collapsing logic.
Full Release Notes
### Patch Changes - 5407d4e: Surface deeper copy context for wrapper-heavy elements. App-owned shared-UI / design-system frames (files under `components/ui/`, `packages/ui/`, `design-system(s)/`, or `primitives/`, e.g. shadcn's `components/ui` or a monorepo `packages/ui`) are now treated like `node_modules` frames: still shown, but exempt from the compact line budget, so a grabbed wrapper digs through its UI primitives to the meaningful feature source by default. Adds a `maxContextLines` option (also settable via the script `data-options` attribute) to raise the budget further for large apps and agent/edit prompts — restoring the option the CLI already writes. Also hardens the trace: a non-finite/negative `maxContextLines` no longer disables the hard line cap (it falls back to the default), and consecutive duplicate trace lines from shared-UI frames are collapsed so the output stays readable. - @react-grab/cli@0.1.47