@atlaskit/ads-mcp 0.9.1 → 0.10.1
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 +15 -0
- package/dist/cjs/helpers/analytics.js +2 -2
- package/dist/cjs/index.js +14 -9
- package/dist/cjs/tools/get-icons/icon-structured-content.codegen.js +2585 -0
- package/dist/cjs/tools/get-icons/index.js +133 -0
- package/dist/cjs/tools/get-tokens/index.js +15 -22
- package/dist/cjs/tools/get-tokens/token-structured-content.codegen.js +2261 -0
- package/dist/es2019/helpers/analytics.js +2 -2
- package/dist/es2019/index.js +13 -9
- package/dist/es2019/tools/analyze-a11y/index.js +1 -1
- package/dist/es2019/tools/get-icons/icon-structured-content.codegen.js +2579 -0
- package/dist/es2019/tools/get-icons/index.js +108 -0
- package/dist/es2019/tools/get-tokens/index.js +7 -22
- package/dist/es2019/tools/get-tokens/token-structured-content.codegen.js +2255 -0
- package/dist/esm/helpers/analytics.js +2 -2
- package/dist/esm/index.js +14 -9
- package/dist/esm/tools/get-icons/icon-structured-content.codegen.js +2579 -0
- package/dist/esm/tools/get-icons/index.js +126 -0
- package/dist/esm/tools/get-tokens/index.js +15 -22
- package/dist/esm/tools/get-tokens/token-structured-content.codegen.js +2255 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/tools/get-icons/icon-structured-content.codegen.d.ts +13 -0
- package/dist/types/tools/get-icons/index.d.ts +35 -0
- package/dist/types/tools/get-tokens/index.d.ts +6 -4
- package/dist/types/tools/get-tokens/token-structured-content.codegen.d.ts +13 -0
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/tools/get-icons/icon-structured-content.codegen.d.ts +13 -0
- package/dist/types-ts4.5/tools/get-icons/index.d.ts +35 -0
- package/dist/types-ts4.5/tools/get-tokens/index.d.ts +6 -4
- package/dist/types-ts4.5/tools/get-tokens/token-structured-content.codegen.d.ts +13 -0
- package/package.json +5 -1
- package/dist/cjs/structured-content/formatters/token.js +0 -11
- package/dist/cjs/structured-content/types.js +0 -1
- package/dist/es2019/structured-content/formatters/token.js +0 -10
- package/dist/es2019/structured-content/types.js +0 -0
- package/dist/esm/structured-content/formatters/token.js +0 -5
- package/dist/esm/structured-content/types.js +0 -0
- package/dist/types/structured-content/formatters/token.d.ts +0 -2
- package/dist/types/structured-content/types.d.ts +0 -20
- package/dist/types-ts4.5/structured-content/formatters/token.d.ts +0 -2
- package/dist/types-ts4.5/structured-content/types.d.ts +0 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/ads-mcp
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a60a82196851a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a60a82196851a) -
|
|
8
|
+
Internal refactors to remove unused variables. No functional or public changes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 0.10.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`b01712bc0727d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b01712bc0727d) -
|
|
16
|
+
Update the structured docs package to generate icon content and update the ADS MCP to consume it.
|
|
17
|
+
|
|
3
18
|
## 0.9.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -51,7 +51,7 @@ if (!isAnalyticsOptedOut) {
|
|
|
51
51
|
subproduct: 'ads-mcp',
|
|
52
52
|
flushInterval: 5000
|
|
53
53
|
});
|
|
54
|
-
} catch (
|
|
54
|
+
} catch (_unused) {
|
|
55
55
|
// Analytics client not available or failed to initialize
|
|
56
56
|
// Log the error but continue without analytics
|
|
57
57
|
console.error('Could not initialize analytics client. This is normal as it is only intended to measure authenticated Atlassians');
|
|
@@ -90,7 +90,7 @@ function sendOperationalEvent(_ref) {
|
|
|
90
90
|
}, attributes)
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
} catch (
|
|
93
|
+
} catch (_unused2) {
|
|
94
94
|
// Analytics errors should not prevent normal operation
|
|
95
95
|
// Silently fail to avoid disrupting the main functionality
|
|
96
96
|
console.error('Error sending operational event to analytics');
|
package/dist/cjs/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var _getA11yGuidelines = require("./tools/get-a11y-guidelines");
|
|
|
20
20
|
var _getAllIcons = require("./tools/get-all-icons");
|
|
21
21
|
var _getAllTokens = require("./tools/get-all-tokens");
|
|
22
22
|
var _getComponents = require("./tools/get-components");
|
|
23
|
+
var _getIcons = require("./tools/get-icons");
|
|
23
24
|
var _getTokens = require("./tools/get-tokens");
|
|
24
25
|
var _plan = require("./tools/plan");
|
|
25
26
|
var _suggestA11yFixes = require("./tools/suggest-a11y-fixes");
|
|
@@ -60,7 +61,7 @@ var generateLogger = function generateLogger(level) {
|
|
|
60
61
|
};
|
|
61
62
|
};
|
|
62
63
|
var getToolRegistry = exports.getToolRegistry = function getToolRegistry() {
|
|
63
|
-
var baseTools = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(
|
|
64
|
+
var baseTools = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _analyzeA11y.listAnalyzeA11yTool.name, {
|
|
64
65
|
handler: _analyzeA11y.analyzeA11yTool,
|
|
65
66
|
inputSchema: _analyzeA11y.analyzeA11yInputSchema,
|
|
66
67
|
tool: _analyzeA11y.listAnalyzeA11yTool
|
|
@@ -72,10 +73,6 @@ var getToolRegistry = exports.getToolRegistry = function getToolRegistry() {
|
|
|
72
73
|
handler: _getA11yGuidelines.getA11yGuidelinesTool,
|
|
73
74
|
inputSchema: _getA11yGuidelines.getA11yGuidelinesInputSchema,
|
|
74
75
|
tool: _getA11yGuidelines.listGetA11yGuidelinesTool
|
|
75
|
-
}), _getAllIcons.listGetAllIconsTool.name, {
|
|
76
|
-
handler: _getAllIcons.getAllIconsTool,
|
|
77
|
-
inputSchema: null,
|
|
78
|
-
tool: _getAllIcons.listGetAllIconsTool
|
|
79
76
|
}), _getComponents.listGetComponentsTool.name, {
|
|
80
77
|
handler: _getComponents.getComponentsTool,
|
|
81
78
|
inputSchema: null,
|
|
@@ -90,19 +87,29 @@ var getToolRegistry = exports.getToolRegistry = function getToolRegistry() {
|
|
|
90
87
|
tool: _suggestA11yFixes.listSuggestA11yFixesTool
|
|
91
88
|
});
|
|
92
89
|
|
|
93
|
-
// Conditionally add token tools based on feature flag
|
|
90
|
+
// Conditionally add token and icon tools based on feature flag
|
|
94
91
|
if ((0, _platformFeatureFlags.fg)('design_system_mcp_structured_content')) {
|
|
95
92
|
baseTools[_getTokens.listGetTokensTool.name] = {
|
|
96
93
|
handler: _getTokens.getTokensTool,
|
|
97
94
|
inputSchema: _getTokens.getTokensInputSchema,
|
|
98
95
|
tool: _getTokens.listGetTokensTool
|
|
99
96
|
};
|
|
97
|
+
baseTools[_getIcons.listGetIconsTool.name] = {
|
|
98
|
+
handler: _getIcons.getIconsTool,
|
|
99
|
+
inputSchema: _getIcons.getIconsInputSchema,
|
|
100
|
+
tool: _getIcons.listGetIconsTool
|
|
101
|
+
};
|
|
100
102
|
} else {
|
|
101
103
|
baseTools[_getAllTokens.listGetAllTokensTool.name] = {
|
|
102
104
|
handler: _getAllTokens.getAllTokensTool,
|
|
103
105
|
inputSchema: null,
|
|
104
106
|
tool: _getAllTokens.listGetAllTokensTool
|
|
105
107
|
};
|
|
108
|
+
baseTools[_getAllIcons.listGetAllIconsTool.name] = {
|
|
109
|
+
handler: _getAllIcons.getAllIconsTool,
|
|
110
|
+
inputSchema: null,
|
|
111
|
+
tool: _getAllIcons.listGetAllIconsTool
|
|
112
|
+
};
|
|
106
113
|
}
|
|
107
114
|
return baseTools;
|
|
108
115
|
};
|
|
@@ -288,6 +295,4 @@ function _runServer() {
|
|
|
288
295
|
runServer().catch(function (error) {
|
|
289
296
|
var errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
290
297
|
console.error("Invalid input to ads-mcp: ".concat(errorMessage));
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
// Export types for use by other packages
|
|
298
|
+
});
|