@viasat/beam-react-claude-plugin 2.70.0 → 2.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  "name": "beam-react-claude-plugin",
4
4
  "displayName": "Beam React Claude Plugin",
5
5
  "description": "Equips AI tools with Beam Design System context for building, auditing, and answering implementation questions across tokens, components and data sources in React.",
6
- "version": "2.70.0",
6
+ "version": "2.71.0",
7
7
  "author": {
8
8
  "name": "Viasat",
9
9
  "url": "https://git.viasat.com/vega/beam"
@@ -15,7 +15,7 @@
15
15
  "command": "npx",
16
16
  "args": [
17
17
  "-y",
18
- "@viasat/beam-react-mcp@2.70.0"
18
+ "@viasat/beam-react-mcp@2.71.0"
19
19
  ]
20
20
  }
21
21
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viasat/beam-react-claude-plugin",
3
- "version": "2.70.0",
3
+ "version": "2.71.0",
4
4
  "description": "Claude Code plugin that reduces AI hallucinations on Beam usage. Ships skills, reference docs, and a user-invocable token audit command.",
5
5
  "license": "MIT",
6
6
  "author": "Viasat",
@@ -24,10 +24,21 @@ Data comes from `beam-manifest.json`, bundled in the npm package. Zero network c
24
24
  | `listComponents` | Discover components (optional `query`/`category` filter). |
25
25
  | `getComponent` | Full API for one component: props, story index, `pairedHooks`. |
26
26
  | `getComponentStory` | Source of a specific usage example/story. |
27
- | `listIcons` | Available icon names. |
27
+ | `listIconGroups` | Icon groups with `importPath` and `iconCount` — no names. |
28
+ | `searchIcons` | Find icons by name (required `query`, optional `group`/`limit`). |
28
29
  | `listConcepts` | Discover concept docs (theming, styling, tokens, getting started, …). |
29
30
  | `getConcept` | Full MDX content for one concept doc, by slug or title. |
30
31
 
32
+ Icons are a two-step lookup: `listIconGroups` to see which families exist, then `searchIcons('close')` — optionally scoped with `group` (full `importPath` or its last segment, e.g. `flags`). Results come back grouped by import path, best-matching group first. `matchCount` is the total before `limit` (default 50) is applied, so if it far exceeds the returned icons, narrow the query instead of paging. There is no tool that dumps the full catalog — it's several thousand names.
33
+
34
+ **The main icon set uses Material Symbols names — search for those, not industry nicknames.** `@viasat/beam-icons/icons` (2,714 of the 3,777 icons) is Material-derived: the Material name, PascalCased. `access_alarm` → `AccessAlarm`, `wb_incandescent` → `WbIncandescent`, `close_fullscreen` → `CloseFullscreen`. About half the set ships Material's filled/outlined pairs (`Delete` and `DeleteOutlined`). If you know the Material icon you want, you already know Beam's name for it.
35
+
36
+ One wrinkle: the snake_case → PascalCase conversion is inconsistent, so don't assume exact Material casing. Material's `AccountCircle` is `Accountcircle` here, and `ArrowDropDown` is `ArrowDropdown`. Search is case- and separator-insensitive precisely for this reason — type the name as words (`arrow drop down`) and let it match.
37
+
38
+ The other two families are **not** Material. `illustrative-icons` are Beam-authored spot illustrations (`AccountManagement`, `ActiveCyberDefense`, `RecycleBin`), and `logos/*` are proper nouns (`Delta`, `ApplePay`, `ViasatLogoDefault`) — search those by the brand or subject name.
39
+
40
+ **Icon search is literal, not semantic.** Matching is substring over icon names, so industry nicknames fail in two ways. Some return nothing — there is no `hamburger` (it's `Menu`), no `cog` (it's `Settings`), no `spinner`, `ellipsis`, `avatar`, or `envelope`. Others return a confident wrong answer: `mute` surfaces `Commute` before `VolumeMute`, and `bin` returns `Plumbing` before `RecycleBin`. Zero results does **not** mean Beam lacks the icon — retry with the Material name, and read the returned name to confirm it describes the glyph you want before using it.
41
+
31
42
  ### Concept docs (and tokens)
32
43
 
33
44
  Concept docs are MDX guides bundled in the manifest — theming, styling, getting started, and the token reference tables. Discover them with `listConcepts`, then fetch full content with `getConcept('<slug-or-title>')` (case-insensitive; returns `{ title, slug, description, type, mdxContent }`).