@sixbell-telco/sdk-tools 0.1.4 → 0.1.5
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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/mcp/catalog.mjs +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.5] - 2026-12-02
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **mcp**: `get_tokens` returns `radiusUsage`, the radius-by-role rule, and names `rounded-inner` when the installed SDK has it
|
|
15
|
+
|
|
10
16
|
## [0.1.4] - 2026-11-19
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ A component repo set (the `.mcp.json` at the component root, the app in `mfe/`)
|
|
|
131
131
|
| `list_components` | Every component, directive and pipe: selector, class, kind, entry point, one-line description (`kind` filters) |
|
|
132
132
|
| `search_components` | The best matches for a need in a few words (`"confirm dialog"`) |
|
|
133
133
|
| `get_component` | One component: inputs with allowed values and defaults, outputs, slots, import line, a starting template, related components, stories, do and don't |
|
|
134
|
-
| `get_tokens` | Theme tokens by group (color, radius, shadow, ease, animate, font, text)
|
|
134
|
+
| `get_tokens` | Theme tokens by group (color, radius, shadow, ease, animate, font, text), the deprecated ones with their replacements and radius by role (`rounded-inner` in a card) |
|
|
135
135
|
| `check_usage` | `check`'s lint findings (kit API and design rules) for a `file` in the app or a `snippet` (template or component source). No type check |
|
|
136
136
|
| `get_recipe` | A step-by-step recipe; with no `id`, the list: `custom-component` (a local kit candidate) and the `add` recipes with the `files` they write |
|
|
137
137
|
| `get_upgrade_guide` | For `from` and `to` (at most the installed version; `3.x` works): the migrations that would run, the steps no migration applies and the changelog consumer-upgrade steps |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixbell-telco/sdk-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI and MCP server for apps built with @sixbell-telco/sdk: check templates, imports and types against the installed SDK, and create or upgrade MFEs from their template repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/mcp/catalog.mjs
CHANGED
|
@@ -223,6 +223,17 @@ export function getComponent(manifest, query) {
|
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Radius by role, naming only the utilities the installed SDK has (`rounded-inner` arrived later).
|
|
228
|
+
* @param {string[]} utilities
|
|
229
|
+
*/
|
|
230
|
+
function radiusUsage(utilities) {
|
|
231
|
+
const inner = utilities.includes('rounded-inner')
|
|
232
|
+
? ' A surface with its own background inside a card (image, iframe, chart, nested panel in st-card-body) takes rounded-inner: concentric, card radius minus card padding, never below rounded-selector.'
|
|
233
|
+
: '';
|
|
234
|
+
return `Radius by role: rounded-box for surfaces (card, panel, dialog, popover), rounded-field for controls (button, input, select, tab), rounded-selector for compact status (badge, chip, checkbox).${inner} Never override the --radius-* tokens in the app.`;
|
|
235
|
+
}
|
|
236
|
+
|
|
226
237
|
/**
|
|
227
238
|
* The theme tokens, by group, with their Tailwind utilities and the deprecated aliases.
|
|
228
239
|
* @param {Manifest} manifest
|
|
@@ -242,6 +253,7 @@ export function getTokens(manifest, { group } = {}) {
|
|
|
242
253
|
colorUsage: `Color tokens go after a color utility prefix: ${(manifest.colorUtilities ?? ['bg', 'text', 'border']).join(', ')}. Example: bg-base-200 text-base-content border-base-300. Status text uses the -strong tokens (text-error-strong).`,
|
|
243
254
|
}
|
|
244
255
|
: {}),
|
|
256
|
+
...(byGroup.radius ? { radiusUsage: radiusUsage(byGroup.radius) } : {}),
|
|
245
257
|
groups: byGroup,
|
|
246
258
|
deprecated: selected.filter((t) => t.deprecated).map((t) => ({ token: t.name, replacement: t.deprecated?.replacement })),
|
|
247
259
|
};
|