@adobe/spectrum-design-data-mcp 1.0.12 → 1.0.13
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 +20 -0
- package/package.json +2 -2
- package/src/tools/tokens.js +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# [**@adobe/spectrum-design-data-mcp**](https://github.com/adobe/spectrum-design-data-mcp)
|
|
2
2
|
|
|
3
|
+
## 1.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#669](https://github.com/adobe/spectrum-design-data/pull/669) [`ae68c41`](https://github.com/adobe/spectrum-design-data/commit/ae68c412101b32b114d0d56893d1214f5225210a) Thanks [@GarthDB](https://github.com/GarthDB)! - feat(tooling): add renamed property support to token processing tools
|
|
8
|
+
|
|
9
|
+
Updated token processing tools to extract and display the new `renamed` property:
|
|
10
|
+
- **MCP Token Processor**: Extracts `renamed`, `deprecated`, and `deprecated_comment`
|
|
11
|
+
properties in token results
|
|
12
|
+
- **CSV Generator**: Added `renamed`, `deprecated`, and `deprecated_comment` columns
|
|
13
|
+
to CSV export
|
|
14
|
+
- **Diff Generator**: Updated documentation - tool automatically tracks `renamed`
|
|
15
|
+
property changes
|
|
16
|
+
|
|
17
|
+
These updates support the new `renamed` property added to the token schema for
|
|
18
|
+
tracking 1:1 token replacements.
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`ae68c41`](https://github.com/adobe/spectrum-design-data/commit/ae68c412101b32b114d0d56893d1214f5225210a)]:
|
|
21
|
+
- @adobe/spectrum-tokens@14.1.0
|
|
22
|
+
|
|
3
23
|
## 1.0.12
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spectrum-design-data-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Model Context Protocol server for Spectrum design data including tokens, schemas, and component anatomy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@modelcontextprotocol/sdk": "^0.5.0",
|
|
50
50
|
"commander": "^13.1.0",
|
|
51
|
-
"@adobe/spectrum-tokens": "14.
|
|
51
|
+
"@adobe/spectrum-tokens": "14.1.0",
|
|
52
52
|
"@adobe/spectrum-component-api-schemas": "6.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
package/src/tools/tokens.js
CHANGED
|
@@ -236,6 +236,9 @@ export function createTokenTools() {
|
|
|
236
236
|
schema: token.$schema,
|
|
237
237
|
uuid: token.uuid,
|
|
238
238
|
private: token.private || false,
|
|
239
|
+
deprecated: token.deprecated || false,
|
|
240
|
+
deprecated_comment: token.deprecated_comment,
|
|
241
|
+
renamed: token.renamed,
|
|
239
242
|
relevanceReason: nameMatch ? "name match" : "description match",
|
|
240
243
|
});
|
|
241
244
|
}
|
|
@@ -293,6 +296,9 @@ export function createTokenTools() {
|
|
|
293
296
|
schema: token.$schema,
|
|
294
297
|
uuid: token.uuid,
|
|
295
298
|
private: token.private || false,
|
|
299
|
+
deprecated: token.deprecated || false,
|
|
300
|
+
deprecated_comment: token.deprecated_comment,
|
|
301
|
+
renamed: token.renamed,
|
|
296
302
|
});
|
|
297
303
|
}
|
|
298
304
|
});
|
|
@@ -517,6 +523,11 @@ function processTokens(tokens, fileName, query, type) {
|
|
|
517
523
|
value: value.$value || value.value,
|
|
518
524
|
description: value.$description || value.description,
|
|
519
525
|
extensions: value.$extensions || value.extensions,
|
|
526
|
+
uuid: value.uuid,
|
|
527
|
+
private: value.private || false,
|
|
528
|
+
deprecated: value.deprecated || false,
|
|
529
|
+
deprecated_comment: value.deprecated_comment,
|
|
530
|
+
renamed: value.renamed,
|
|
520
531
|
});
|
|
521
532
|
} else {
|
|
522
533
|
// Recurse into nested objects
|