@atlaskit/ads-mcp 0.21.0 → 1.0.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/a11y-fixes/package.json +1 -8
  3. package/a11y-guidelines/package.json +1 -8
  4. package/dist/cjs/index.js +23 -23
  5. package/dist/cjs/tools/analyze-a11y/analyze-a11y-tool.js +10 -10
  6. package/dist/cjs/tools/analyze-a11y/analyze-localhost-a11y-tool.js +28 -28
  7. package/dist/cjs/tools/get-a11y-guidelines/get-a11y-guidelines-tool.js +4 -4
  8. package/dist/cjs/tools/get-all-components/components.codegen.js +2 -2
  9. package/dist/cjs/tools/get-all-components/get-all-components-tool.js +1 -1
  10. package/dist/cjs/tools/get-all-icons/get-all-icons-tool.js +1 -1
  11. package/dist/cjs/tools/get-all-tokens/get-all-tokens-tool.js +1 -1
  12. package/dist/cjs/tools/get-atlaskit-components/get-atlaskit-components-tool.js +2 -2
  13. package/dist/cjs/tools/get-guidelines/get-guidelines-tool.js +4 -4
  14. package/dist/cjs/tools/get-lint-rules/get-lint-rules-tool.js +6 -6
  15. package/dist/cjs/tools/i18n-conversion/i18n-conversion-tool.js +1 -1
  16. package/dist/cjs/tools/migration-guides/migration-guides-tool.js +4 -4
  17. package/dist/cjs/tools/plan/plan-tool.js +6 -6
  18. package/dist/cjs/tools/search-atlaskit-components/search-atlaskit-components-tool.js +6 -6
  19. package/dist/cjs/tools/search-components/search-components-tool.js +6 -6
  20. package/dist/cjs/tools/search-icons/search-icons-tool.js +6 -6
  21. package/dist/cjs/tools/search-tokens/search-tokens-tool.js +6 -6
  22. package/dist/cjs/tools/suggest-a11y-fixes/suggest-a11y-fixes-tool.js +4 -4
  23. package/dist/es2019/tools/get-all-components/components.codegen.js +2 -2
  24. package/dist/esm/index.js +23 -23
  25. package/dist/esm/tools/analyze-a11y/analyze-a11y-tool.js +10 -10
  26. package/dist/esm/tools/analyze-a11y/analyze-localhost-a11y-tool.js +28 -28
  27. package/dist/esm/tools/get-a11y-guidelines/get-a11y-guidelines-tool.js +4 -4
  28. package/dist/esm/tools/get-all-components/components.codegen.js +2 -2
  29. package/dist/esm/tools/get-all-components/get-all-components-tool.js +1 -1
  30. package/dist/esm/tools/get-all-icons/get-all-icons-tool.js +1 -1
  31. package/dist/esm/tools/get-all-tokens/get-all-tokens-tool.js +1 -1
  32. package/dist/esm/tools/get-atlaskit-components/get-atlaskit-components-tool.js +2 -2
  33. package/dist/esm/tools/get-guidelines/get-guidelines-tool.js +4 -4
  34. package/dist/esm/tools/get-lint-rules/get-lint-rules-tool.js +6 -6
  35. package/dist/esm/tools/i18n-conversion/i18n-conversion-tool.js +1 -1
  36. package/dist/esm/tools/migration-guides/migration-guides-tool.js +4 -4
  37. package/dist/esm/tools/plan/plan-tool.js +6 -6
  38. package/dist/esm/tools/search-atlaskit-components/search-atlaskit-components-tool.js +6 -6
  39. package/dist/esm/tools/search-components/search-components-tool.js +6 -6
  40. package/dist/esm/tools/search-icons/search-icons-tool.js +6 -6
  41. package/dist/esm/tools/search-tokens/search-tokens-tool.js +6 -6
  42. package/dist/esm/tools/suggest-a11y-fixes/suggest-a11y-fixes-tool.js +4 -4
  43. package/dist/types/tools/get-all-components/components.codegen.d.ts +1 -1
  44. package/i18n-conversion-guide/package.json +1 -8
  45. package/migration-registry/package.json +1 -8
  46. package/package.json +5 -13
  47. package/tools/analyze-a11y/package.json +1 -8
  48. package/tools/get-a11y-guidelines/package.json +1 -8
  49. package/tools/get-all-components/package.json +1 -8
  50. package/tools/get-all-icons/package.json +1 -8
  51. package/tools/get-all-tokens/package.json +1 -8
  52. package/tools/get-guidelines/package.json +1 -8
  53. package/tools/get-lint-rules/package.json +1 -8
  54. package/tools/i18n-conversion/package.json +1 -8
  55. package/tools/migration-guides/package.json +1 -8
  56. package/tools/plan/package.json +1 -8
  57. package/tools/search-components/package.json +1 -8
  58. package/tools/search-icons/package.json +1 -8
  59. package/tools/search-tokens/package.json +1 -8
  60. package/tools/suggest-a11y-fixes/package.json +1 -8
  61. package/dist/types-ts4.5/entry-points/a11y-fixes.d.ts +0 -1
  62. package/dist/types-ts4.5/entry-points/a11y-guidelines.d.ts +0 -1
  63. package/dist/types-ts4.5/entry-points/analyze-a11y.d.ts +0 -5
  64. package/dist/types-ts4.5/entry-points/get-a11y-guidelines.d.ts +0 -3
  65. package/dist/types-ts4.5/entry-points/get-all-components.d.ts +0 -2
  66. package/dist/types-ts4.5/entry-points/get-all-icons.d.ts +0 -2
  67. package/dist/types-ts4.5/entry-points/get-all-tokens.d.ts +0 -2
  68. package/dist/types-ts4.5/entry-points/get-atlaskit-components.d.ts +0 -2
  69. package/dist/types-ts4.5/entry-points/get-guidelines.d.ts +0 -3
  70. package/dist/types-ts4.5/entry-points/get-lint-rules.d.ts +0 -3
  71. package/dist/types-ts4.5/entry-points/i18n-conversion-guide.d.ts +0 -1
  72. package/dist/types-ts4.5/entry-points/i18n-conversion.d.ts +0 -3
  73. package/dist/types-ts4.5/entry-points/migration-guides.d.ts +0 -3
  74. package/dist/types-ts4.5/entry-points/migration-registry.d.ts +0 -1
  75. package/dist/types-ts4.5/entry-points/plan.d.ts +0 -3
  76. package/dist/types-ts4.5/entry-points/search-atlaskit-components.d.ts +0 -3
  77. package/dist/types-ts4.5/entry-points/search-components.d.ts +0 -3
  78. package/dist/types-ts4.5/entry-points/search-icons.d.ts +0 -3
  79. package/dist/types-ts4.5/entry-points/search-tokens.d.ts +0 -3
  80. package/dist/types-ts4.5/entry-points/suggest-a11y-fixes.d.ts +0 -3
  81. package/dist/types-ts4.5/helpers/agent.d.ts +0 -3
  82. package/dist/types-ts4.5/helpers/analytics.d.ts +0 -21
  83. package/dist/types-ts4.5/helpers/clean-query.d.ts +0 -1
  84. package/dist/types-ts4.5/helpers/compute-multi-term-fuse-allocation.d.ts +0 -14
  85. package/dist/types-ts4.5/helpers/config-path.d.ts +0 -7
  86. package/dist/types-ts4.5/helpers/fuse-multi-term.d.ts +0 -26
  87. package/dist/types-ts4.5/helpers/index.d.ts +0 -3
  88. package/dist/types-ts4.5/helpers/send-operational-event.d.ts +0 -13
  89. package/dist/types-ts4.5/helpers/staff-id.d.ts +0 -1
  90. package/dist/types-ts4.5/helpers/validation.d.ts +0 -26
  91. package/dist/types-ts4.5/helpers/zod-to-json-schema.d.ts +0 -3
  92. package/dist/types-ts4.5/index.d.ts +0 -7
  93. package/dist/types-ts4.5/instructions.d.ts +0 -1
  94. package/dist/types-ts4.5/tools/analyze-a11y/analyze-a11y-input-schema.d.ts +0 -17
  95. package/dist/types-ts4.5/tools/analyze-a11y/analyze-a11y-localhost-input-schema.d.ts +0 -17
  96. package/dist/types-ts4.5/tools/analyze-a11y/analyze-a11y-tool.d.ts +0 -8
  97. package/dist/types-ts4.5/tools/analyze-a11y/analyze-localhost-a11y-tool.d.ts +0 -8
  98. package/dist/types-ts4.5/tools/analyze-a11y/generate-ads-fix-for-violation.d.ts +0 -1
  99. package/dist/types-ts4.5/tools/analyze-a11y/list-analyze-a11y-tool.d.ts +0 -2
  100. package/dist/types-ts4.5/tools/analyze-a11y/list-analyze-localhost-a11y-tool.d.ts +0 -2
  101. package/dist/types-ts4.5/tools/get-a11y-guidelines/get-a11y-guidelines-input-schema.d.ts +0 -8
  102. package/dist/types-ts4.5/tools/get-a11y-guidelines/get-a11y-guidelines-tool.d.ts +0 -8
  103. package/dist/types-ts4.5/tools/get-a11y-guidelines/guidelines.d.ts +0 -102
  104. package/dist/types-ts4.5/tools/get-a11y-guidelines/list-get-a11y-guidelines-tool.d.ts +0 -2
  105. package/dist/types-ts4.5/tools/get-all-components/components.codegen.d.ts +0 -10
  106. package/dist/types-ts4.5/tools/get-all-components/components.d.ts +0 -10
  107. package/dist/types-ts4.5/tools/get-all-components/get-all-components-tool.d.ts +0 -6
  108. package/dist/types-ts4.5/tools/get-all-components/list-get-all-components-tool.d.ts +0 -2
  109. package/dist/types-ts4.5/tools/get-all-components/load-all-components.d.ts +0 -2
  110. package/dist/types-ts4.5/tools/get-all-components/types.d.ts +0 -26
  111. package/dist/types-ts4.5/tools/get-all-icons/get-all-icons-tool.d.ts +0 -6
  112. package/dist/types-ts4.5/tools/get-all-icons/icons.d.ts +0 -11
  113. package/dist/types-ts4.5/tools/get-all-icons/list-get-all-icons-tool.d.ts +0 -2
  114. package/dist/types-ts4.5/tools/get-all-tokens/get-all-tokens-tool.d.ts +0 -6
  115. package/dist/types-ts4.5/tools/get-all-tokens/list-get-all-tokens-tool.d.ts +0 -2
  116. package/dist/types-ts4.5/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +0 -10
  117. package/dist/types-ts4.5/tools/get-atlaskit-components/get-atlaskit-components-tool.d.ts +0 -6
  118. package/dist/types-ts4.5/tools/get-atlaskit-components/list-get-atlaskit-components-tool.d.ts +0 -2
  119. package/dist/types-ts4.5/tools/get-guidelines/get-guidelines-input-schema.d.ts +0 -5
  120. package/dist/types-ts4.5/tools/get-guidelines/get-guidelines-tool.d.ts +0 -8
  121. package/dist/types-ts4.5/tools/get-guidelines/guidelines-structured-content.codegen.d.ts +0 -13
  122. package/dist/types-ts4.5/tools/get-guidelines/list-get-guidelines-tool.d.ts +0 -2
  123. package/dist/types-ts4.5/tools/get-lint-rules/get-lint-rules-input-schema.d.ts +0 -6
  124. package/dist/types-ts4.5/tools/get-lint-rules/get-lint-rules-tool.d.ts +0 -4
  125. package/dist/types-ts4.5/tools/get-lint-rules/lint-rules-structured-content.codegen.d.ts +0 -13
  126. package/dist/types-ts4.5/tools/get-lint-rules/list-get-lint-rules-tool.d.ts +0 -19
  127. package/dist/types-ts4.5/tools/i18n-conversion/guide.d.ts +0 -5
  128. package/dist/types-ts4.5/tools/i18n-conversion/i18n-conversion-input-schema.d.ts +0 -10
  129. package/dist/types-ts4.5/tools/i18n-conversion/i18n-conversion-tool.d.ts +0 -8
  130. package/dist/types-ts4.5/tools/i18n-conversion/list-i18n-conversion-tool.d.ts +0 -2
  131. package/dist/types-ts4.5/tools/i18n-conversion/types.d.ts +0 -22
  132. package/dist/types-ts4.5/tools/migration-guides/get-available-migration-ids.d.ts +0 -12
  133. package/dist/types-ts4.5/tools/migration-guides/get-available-migrations-description.d.ts +0 -13
  134. package/dist/types-ts4.5/tools/migration-guides/list-migration-guides-tool.d.ts +0 -2
  135. package/dist/types-ts4.5/tools/migration-guides/migration-guides-input-schema.d.ts +0 -15
  136. package/dist/types-ts4.5/tools/migration-guides/migration-guides-tool.d.ts +0 -8
  137. package/dist/types-ts4.5/tools/migration-guides/migration-registry.d.ts +0 -2
  138. package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-jira-spotlight.d.ts +0 -2
  139. package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-multi-step.d.ts +0 -2
  140. package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-single-step.d.ts +0 -2
  141. package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-with-motion.d.ts +0 -2
  142. package/dist/types-ts4.5/tools/migration-guides/types.d.ts +0 -23
  143. package/dist/types-ts4.5/tools/plan/list-plan-tool.d.ts +0 -2
  144. package/dist/types-ts4.5/tools/plan/plan-input-schema.d.ts +0 -20
  145. package/dist/types-ts4.5/tools/plan/plan-tool.d.ts +0 -15
  146. package/dist/types-ts4.5/tools/search-atlaskit-components/list-search-atlaskit-components-tool.d.ts +0 -2
  147. package/dist/types-ts4.5/tools/search-atlaskit-components/search-atlaskit-components-input-schema.d.ts +0 -11
  148. package/dist/types-ts4.5/tools/search-atlaskit-components/search-atlaskit-components-tool.d.ts +0 -4
  149. package/dist/types-ts4.5/tools/search-components/list-search-components-tool.d.ts +0 -2
  150. package/dist/types-ts4.5/tools/search-components/search-components-input-schema.d.ts +0 -11
  151. package/dist/types-ts4.5/tools/search-components/search-components-tool.d.ts +0 -4
  152. package/dist/types-ts4.5/tools/search-icons/list-search-icons-tool.d.ts +0 -2
  153. package/dist/types-ts4.5/tools/search-icons/search-icons-input-schema.d.ts +0 -11
  154. package/dist/types-ts4.5/tools/search-icons/search-icons-tool.d.ts +0 -4
  155. package/dist/types-ts4.5/tools/search-tokens/list-search-tokens-tool.d.ts +0 -2
  156. package/dist/types-ts4.5/tools/search-tokens/search-tokens-input-schema.d.ts +0 -11
  157. package/dist/types-ts4.5/tools/search-tokens/search-tokens-tool.d.ts +0 -4
  158. package/dist/types-ts4.5/tools/suggest-a11y-fixes/fixes.d.ts +0 -17
  159. package/dist/types-ts4.5/tools/suggest-a11y-fixes/keywords.d.ts +0 -12
  160. package/dist/types-ts4.5/tools/suggest-a11y-fixes/list-suggest-a11y-fixes-tool.d.ts +0 -2
  161. package/dist/types-ts4.5/tools/suggest-a11y-fixes/suggest-a11y-fixes-input-schema.d.ts +0 -17
  162. package/dist/types-ts4.5/tools/suggest-a11y-fixes/suggest-a11y-fixes-tool.d.ts +0 -8
@@ -4,7 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { loadAllComponents } from './load-all-components';
5
5
  export var getAllComponentsTool = /*#__PURE__*/function () {
6
6
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
7
- return _regeneratorRuntime.wrap(function _callee$(_context) {
7
+ return _regeneratorRuntime.wrap(function (_context) {
8
8
  while (1) switch (_context.prev = _context.next) {
9
9
  case 0:
10
10
  return _context.abrupt("return", {
@@ -4,7 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { icons } from './icons';
5
5
  export var getAllIconsTool = /*#__PURE__*/function () {
6
6
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
7
- return _regeneratorRuntime.wrap(function _callee$(_context) {
7
+ return _regeneratorRuntime.wrap(function (_context) {
8
8
  while (1) switch (_context.prev = _context.next) {
9
9
  case 0:
10
10
  return _context.abrupt("return", {
@@ -3,7 +3,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { tokens } from '@atlaskit/tokens/token-metadata';
4
4
  export var getAllTokensTool = /*#__PURE__*/function () {
5
5
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
6
- return _regeneratorRuntime.wrap(function _callee$(_context) {
6
+ return _regeneratorRuntime.wrap(function (_context) {
7
7
  while (1) switch (_context.prev = _context.next) {
8
8
  case 0:
9
9
  return _context.abrupt("return", {
@@ -5,7 +5,7 @@ import { atlaskitComponents } from './atlaskit-components.codegen';
5
5
  export var getAtlaskitComponentsTool = /*#__PURE__*/function () {
6
6
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
7
7
  var components;
8
- return _regeneratorRuntime.wrap(function _callee$(_context) {
8
+ return _regeneratorRuntime.wrap(function (_context) {
9
9
  while (1) switch (_context.prev = _context.next) {
10
10
  case 0:
11
11
  components = atlaskitComponents.map(function (component) {
@@ -20,7 +20,7 @@ export var getAtlaskitComponentsTool = /*#__PURE__*/function () {
20
20
  text: JSON.stringify(components, null, 2)
21
21
  }]
22
22
  });
23
- case 2:
23
+ case 1:
24
24
  case "end":
25
25
  return _context.stop();
26
26
  }
@@ -7,14 +7,14 @@ import { guidelinesStructuredContent } from './guidelines-structured-content.cod
7
7
  export var getGuidelinesTool = /*#__PURE__*/function () {
8
8
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(params) {
9
9
  var _params$terms, terms, _params$limit, limit, searchTerms, guidelineDocs, allGuidelinesMarkdown, fuse, results, seen, uniqueResults, matchedGuidelines, formattedGuidelines;
10
- return _regeneratorRuntime.wrap(function _callee$(_context) {
10
+ return _regeneratorRuntime.wrap(function (_context) {
11
11
  while (1) switch (_context.prev = _context.next) {
12
12
  case 0:
13
13
  _params$terms = params.terms, terms = _params$terms === void 0 ? [] : _params$terms, _params$limit = params.limit, limit = _params$limit === void 0 ? 1 : _params$limit;
14
14
  searchTerms = terms.filter(Boolean).map(cleanQuery);
15
15
  guidelineDocs = guidelinesStructuredContent; // If no search terms provided, return all guidelines formatted as Markdown
16
16
  if (!(searchTerms.length === 0)) {
17
- _context.next = 6;
17
+ _context.next = 1;
18
18
  break;
19
19
  }
20
20
  allGuidelinesMarkdown = guidelineDocs.map(function (guideline) {
@@ -26,7 +26,7 @@ export var getGuidelinesTool = /*#__PURE__*/function () {
26
26
  text: allGuidelinesMarkdown
27
27
  }]
28
28
  });
29
- case 6:
29
+ case 1:
30
30
  // Use Fuse.js to fuzzy-search by keywords and content
31
31
  fuse = new Fuse(guidelineDocs, {
32
32
  keys: [{
@@ -62,7 +62,7 @@ export var getGuidelinesTool = /*#__PURE__*/function () {
62
62
  text: formattedGuidelines
63
63
  }]
64
64
  });
65
- case 13:
65
+ case 2:
66
66
  case "end":
67
67
  return _context.stop();
68
68
  }
@@ -8,14 +8,14 @@ import { lintRulesMcpStructuredContent } from './lint-rules-structured-content.c
8
8
  export var getLintRulesTool = /*#__PURE__*/function () {
9
9
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(params) {
10
10
  var _params$terms, terms, _params$limit, limit, _params$exactName, exactName, searchTerms, ruleDocs, _payload, exactNameMatches, _payload2, fuse, results, uniqueResults, matchedRules, payload;
11
- return _regeneratorRuntime.wrap(function _callee$(_context) {
11
+ return _regeneratorRuntime.wrap(function (_context) {
12
12
  while (1) switch (_context.prev = _context.next) {
13
13
  case 0:
14
14
  _params$terms = params.terms, terms = _params$terms === void 0 ? [] : _params$terms, _params$limit = params.limit, limit = _params$limit === void 0 ? 1 : _params$limit, _params$exactName = params.exactName, exactName = _params$exactName === void 0 ? false : _params$exactName;
15
15
  searchTerms = terms.filter(Boolean).map(cleanQuery);
16
16
  ruleDocs = lintRulesMcpStructuredContent; // If no search terms provided, return all rules as JSON array
17
17
  if (!(searchTerms.length === 0)) {
18
- _context.next = 6;
18
+ _context.next = 1;
19
19
  break;
20
20
  }
21
21
  _payload = ruleDocs.map(function (rule) {
@@ -27,9 +27,9 @@ export var getLintRulesTool = /*#__PURE__*/function () {
27
27
  text: JSON.stringify(_payload)
28
28
  }]
29
29
  });
30
- case 6:
30
+ case 1:
31
31
  if (!exactName) {
32
- _context.next = 10;
32
+ _context.next = 2;
33
33
  break;
34
34
  }
35
35
  exactNameMatches = searchTerms.map(function (term) {
@@ -48,7 +48,7 @@ export var getLintRulesTool = /*#__PURE__*/function () {
48
48
  text: JSON.stringify(_payload2)
49
49
  }]
50
50
  });
51
- case 10:
51
+ case 2:
52
52
  // use Fuse.js to fuzzy-search for the rules
53
53
  fuse = new Fuse(ruleDocs, {
54
54
  keys: [{
@@ -91,7 +91,7 @@ export var getLintRulesTool = /*#__PURE__*/function () {
91
91
  text: JSON.stringify(payload)
92
92
  }]
93
93
  });
94
- case 16:
94
+ case 3:
95
95
  case "end":
96
96
  return _context.stop();
97
97
  }
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  import { i18nConversionGuide } from './guide';
6
6
  export var i18nConversionTool = /*#__PURE__*/function () {
7
7
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_params) {
8
- return _regeneratorRuntime.wrap(function _callee$(_context) {
8
+ return _regeneratorRuntime.wrap(function (_context) {
9
9
  while (1) switch (_context.prev = _context.next) {
10
10
  case 0:
11
11
  return _context.abrupt("return", {
@@ -7,13 +7,13 @@ import { migrationRegistry } from './migration-registry';
7
7
  export var migrationGuidesTool = /*#__PURE__*/function () {
8
8
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(params) {
9
9
  var migration, guide;
10
- return _regeneratorRuntime.wrap(function _callee$(_context) {
10
+ return _regeneratorRuntime.wrap(function (_context) {
11
11
  while (1) switch (_context.prev = _context.next) {
12
12
  case 0:
13
13
  migration = params.migration;
14
14
  guide = migrationRegistry[migration];
15
15
  if (guide) {
16
- _context.next = 4;
16
+ _context.next = 1;
17
17
  break;
18
18
  }
19
19
  return _context.abrupt("return", {
@@ -26,7 +26,7 @@ export var migrationGuidesTool = /*#__PURE__*/function () {
26
26
  }, null, 2)
27
27
  }]
28
28
  });
29
- case 4:
29
+ case 1:
30
30
  return _context.abrupt("return", {
31
31
  content: [{
32
32
  type: 'text',
@@ -43,7 +43,7 @@ export var migrationGuidesTool = /*#__PURE__*/function () {
43
43
  }, null, 2)
44
44
  }]
45
45
  });
46
- case 5:
46
+ case 2:
47
47
  case "end":
48
48
  return _context.stop();
49
49
  }
@@ -12,12 +12,12 @@ import { searchTokensTool } from '../search-tokens/search-tokens-tool';
12
12
  export var planTool = /*#__PURE__*/function () {
13
13
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
14
14
  var tokens_search, icons_search, components_search, atlaskit_components_search, limit, results, searchPromises, getResultCount, consolidatedResult;
15
- return _regeneratorRuntime.wrap(function _callee$(_context) {
15
+ return _regeneratorRuntime.wrap(function (_context) {
16
16
  while (1) switch (_context.prev = _context.next) {
17
17
  case 0:
18
18
  tokens_search = _ref.tokens, icons_search = _ref.icons, components_search = _ref.components, atlaskit_components_search = _ref.atlaskitComponents, limit = _ref.limit;
19
19
  if (!(!(tokens_search !== null && tokens_search !== void 0 && tokens_search.length) && !(icons_search !== null && icons_search !== void 0 && icons_search.length) && !(components_search !== null && components_search !== void 0 && components_search.length) && !(atlaskit_components_search !== null && atlaskit_components_search !== void 0 && atlaskit_components_search.length))) {
20
- _context.next = 3;
20
+ _context.next = 1;
21
21
  break;
22
22
  }
23
23
  return _context.abrupt("return", {
@@ -27,7 +27,7 @@ export var planTool = /*#__PURE__*/function () {
27
27
  text: 'Error: At least one search type (tokens_search, icons_search, components_search, or atlaskit_components_search) must be provided with search terms'
28
28
  }]
29
29
  });
30
- case 3:
30
+ case 1:
31
31
  results = {}; // Execute searches in parallel
32
32
  searchPromises = [];
33
33
  if (tokens_search !== null && tokens_search !== void 0 && tokens_search.length) {
@@ -64,9 +64,9 @@ export var planTool = /*#__PURE__*/function () {
64
64
  }
65
65
 
66
66
  // Wait for all searches to complete
67
- _context.next = 11;
67
+ _context.next = 2;
68
68
  return Promise.all(searchPromises);
69
- case 11:
69
+ case 2:
70
70
  // Helper function to safely count results
71
71
  getResultCount = function getResultCount(result) {
72
72
  var _result$content;
@@ -107,7 +107,7 @@ export var planTool = /*#__PURE__*/function () {
107
107
  text: JSON.stringify(consolidatedResult, null, 2)
108
108
  }]
109
109
  });
110
- case 14:
110
+ case 3:
111
111
  case "end":
112
112
  return _context.stop();
113
113
  }
@@ -17,13 +17,13 @@ var buildComponentResult = function buildComponentResult(result) {
17
17
  export var searchAtlaskitComponentsTool = /*#__PURE__*/function () {
18
18
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
19
19
  var terms, _ref$limit, limit, searchTerms, components, fuse, matchedItems;
20
- return _regeneratorRuntime.wrap(function _callee$(_context) {
20
+ return _regeneratorRuntime.wrap(function (_context) {
21
21
  while (1) switch (_context.prev = _context.next) {
22
22
  case 0:
23
23
  terms = _ref.terms, _ref$limit = _ref.limit, limit = _ref$limit === void 0 ? 2 : _ref$limit;
24
24
  searchTerms = _toConsumableArray(new Set(terms.filter(Boolean).map(cleanQuery)));
25
25
  if (searchTerms.length) {
26
- _context.next = 4;
26
+ _context.next = 1;
27
27
  break;
28
28
  }
29
29
  return _context.abrupt("return", {
@@ -32,7 +32,7 @@ export var searchAtlaskitComponentsTool = /*#__PURE__*/function () {
32
32
  text: '[]'
33
33
  }]
34
34
  });
35
- case 4:
35
+ case 1:
36
36
  components = atlaskitComponents;
37
37
  fuse = new Fuse(components, {
38
38
  keys: [{
@@ -79,7 +79,7 @@ export var searchAtlaskitComponentsTool = /*#__PURE__*/function () {
79
79
  }
80
80
  });
81
81
  if (matchedItems.length) {
82
- _context.next = 9;
82
+ _context.next = 2;
83
83
  break;
84
84
  }
85
85
  return _context.abrupt("return", {
@@ -88,14 +88,14 @@ export var searchAtlaskitComponentsTool = /*#__PURE__*/function () {
88
88
  text: "Error: No Atlaskit components found for '".concat(terms.join(', '), "'.")
89
89
  }]
90
90
  });
91
- case 9:
91
+ case 2:
92
92
  return _context.abrupt("return", {
93
93
  content: [{
94
94
  type: 'text',
95
95
  text: JSON.stringify(matchedItems.map(buildComponentResult))
96
96
  }]
97
97
  });
98
- case 10:
98
+ case 3:
99
99
  case "end":
100
100
  return _context.stop();
101
101
  }
@@ -18,13 +18,13 @@ var buildComponentResult = function buildComponentResult(result) {
18
18
  export var searchComponentsTool = /*#__PURE__*/function () {
19
19
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
20
20
  var terms, _ref$limit, limit, searchTerms, components, fuse, matchedItems;
21
- return _regeneratorRuntime.wrap(function _callee$(_context) {
21
+ return _regeneratorRuntime.wrap(function (_context) {
22
22
  while (1) switch (_context.prev = _context.next) {
23
23
  case 0:
24
24
  terms = _ref.terms, _ref$limit = _ref.limit, limit = _ref$limit === void 0 ? 2 : _ref$limit;
25
25
  searchTerms = _toConsumableArray(new Set(terms.filter(Boolean).map(cleanQuery)));
26
26
  if (searchTerms.length) {
27
- _context.next = 4;
27
+ _context.next = 1;
28
28
  break;
29
29
  }
30
30
  return _context.abrupt("return", {
@@ -33,7 +33,7 @@ export var searchComponentsTool = /*#__PURE__*/function () {
33
33
  text: '[]'
34
34
  }]
35
35
  });
36
- case 4:
36
+ case 1:
37
37
  components = loadAllComponents();
38
38
  fuse = new Fuse(components, {
39
39
  keys: [{
@@ -80,7 +80,7 @@ export var searchComponentsTool = /*#__PURE__*/function () {
80
80
  }
81
81
  });
82
82
  if (matchedItems.length) {
83
- _context.next = 9;
83
+ _context.next = 2;
84
84
  break;
85
85
  }
86
86
  return _context.abrupt("return", {
@@ -91,14 +91,14 @@ export var searchComponentsTool = /*#__PURE__*/function () {
91
91
  }).join(', '))
92
92
  }]
93
93
  });
94
- case 9:
94
+ case 2:
95
95
  return _context.abrupt("return", {
96
96
  content: [{
97
97
  type: 'text',
98
98
  text: JSON.stringify(matchedItems.map(buildComponentResult))
99
99
  }]
100
100
  });
101
- case 10:
101
+ case 3:
102
102
  case "end":
103
103
  return _context.stop();
104
104
  }
@@ -17,13 +17,13 @@ var buildIconResult = function buildIconResult(icon) {
17
17
  export var searchIconsTool = /*#__PURE__*/function () {
18
18
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
19
19
  var terms, _ref$limit, limit, searchTerms, fuse, matchedItems;
20
- return _regeneratorRuntime.wrap(function _callee$(_context) {
20
+ return _regeneratorRuntime.wrap(function (_context) {
21
21
  while (1) switch (_context.prev = _context.next) {
22
22
  case 0:
23
23
  terms = _ref.terms, _ref$limit = _ref.limit, limit = _ref$limit === void 0 ? 2 : _ref$limit;
24
24
  searchTerms = _toConsumableArray(new Set(terms.filter(Boolean).map(cleanQuery)));
25
25
  if (searchTerms.length) {
26
- _context.next = 4;
26
+ _context.next = 1;
27
27
  break;
28
28
  }
29
29
  return _context.abrupt("return", {
@@ -32,7 +32,7 @@ export var searchIconsTool = /*#__PURE__*/function () {
32
32
  text: '[]'
33
33
  }]
34
34
  });
35
- case 4:
35
+ case 1:
36
36
  fuse = new Fuse(icons, {
37
37
  keys: [{
38
38
  name: 'componentName',
@@ -72,7 +72,7 @@ export var searchIconsTool = /*#__PURE__*/function () {
72
72
  }
73
73
  });
74
74
  if (matchedItems.length) {
75
- _context.next = 8;
75
+ _context.next = 2;
76
76
  break;
77
77
  }
78
78
  return _context.abrupt("return", {
@@ -83,14 +83,14 @@ export var searchIconsTool = /*#__PURE__*/function () {
83
83
  }).join(', '))
84
84
  }]
85
85
  });
86
- case 8:
86
+ case 2:
87
87
  return _context.abrupt("return", {
88
88
  content: [{
89
89
  type: 'text',
90
90
  text: JSON.stringify(matchedItems.map(buildIconResult))
91
91
  }]
92
92
  });
93
- case 9:
93
+ case 3:
94
94
  case "end":
95
95
  return _context.stop();
96
96
  }
@@ -10,14 +10,14 @@ import { cleanQuery } from '../../helpers/clean-query';
10
10
  export var searchTokensTool = /*#__PURE__*/function () {
11
11
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
12
12
  var terms, _ref$limit, limit, searchTerms, fuse, matchedItems, matchedTokens;
13
- return _regeneratorRuntime.wrap(function _callee$(_context) {
13
+ return _regeneratorRuntime.wrap(function (_context) {
14
14
  while (1) switch (_context.prev = _context.next) {
15
15
  case 0:
16
16
  terms = _ref.terms, _ref$limit = _ref.limit, limit = _ref$limit === void 0 ? 2 : _ref$limit;
17
17
  // Unique cleaned terms (order preserved) so duplicates don't concatenate into a bogus query.
18
18
  searchTerms = _toConsumableArray(new Set(terms.filter(Boolean).map(cleanQuery)));
19
19
  if (searchTerms.length) {
20
- _context.next = 4;
20
+ _context.next = 1;
21
21
  break;
22
22
  }
23
23
  return _context.abrupt("return", {
@@ -26,7 +26,7 @@ export var searchTokensTool = /*#__PURE__*/function () {
26
26
  text: '[]'
27
27
  }]
28
28
  });
29
- case 4:
29
+ case 1:
30
30
  fuse = new Fuse(tokens, {
31
31
  keys: [{
32
32
  name: 'name',
@@ -70,7 +70,7 @@ export var searchTokensTool = /*#__PURE__*/function () {
70
70
  };
71
71
  });
72
72
  if (matchedTokens.length) {
73
- _context.next = 9;
73
+ _context.next = 2;
74
74
  break;
75
75
  }
76
76
  return _context.abrupt("return", {
@@ -81,14 +81,14 @@ export var searchTokensTool = /*#__PURE__*/function () {
81
81
  }).join(', '))
82
82
  }]
83
83
  });
84
- case 9:
84
+ case 2:
85
85
  return _context.abrupt("return", {
86
86
  content: [{
87
87
  type: 'text',
88
88
  text: JSON.stringify(matchedTokens)
89
89
  }]
90
90
  });
91
- case 10:
91
+ case 3:
92
92
  case "end":
93
93
  return _context.stop();
94
94
  }
@@ -92,13 +92,13 @@ function findBestMatchingFix(violation) {
92
92
  export var suggestA11yFixesTool = /*#__PURE__*/function () {
93
93
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(params) {
94
94
  var violation, component, context, match, _match, key, fix;
95
- return _regeneratorRuntime.wrap(function _callee$(_context) {
95
+ return _regeneratorRuntime.wrap(function (_context) {
96
96
  while (1) switch (_context.prev = _context.next) {
97
97
  case 0:
98
98
  violation = params.violation, component = params.component, context = params.context; // Use improved matching logic
99
99
  match = findBestMatchingFix(violation);
100
100
  if (!match) {
101
- _context.next = 5;
101
+ _context.next = 1;
102
102
  break;
103
103
  }
104
104
  _match = _slicedToArray(match, 2), key = _match[0], fix = _match[1];
@@ -116,7 +116,7 @@ export var suggestA11yFixesTool = /*#__PURE__*/function () {
116
116
  }), null, 2)
117
117
  }]
118
118
  });
119
- case 5:
119
+ case 1:
120
120
  return _context.abrupt("return", {
121
121
  content: [{
122
122
  type: 'text',
@@ -147,7 +147,7 @@ export var suggestA11yFixesTool = /*#__PURE__*/function () {
147
147
  }, null, 2)
148
148
  }]
149
149
  });
150
- case 6:
150
+ case 2:
151
151
  case "end":
152
152
  return _context.stop();
153
153
  }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Structured content components from design-system *.docs.tsx files
5
5
  *
6
- * @codegen <<SignedSource::3ab8a33f5d9a961edc6704383dde23c4>>
6
+ * @codegen <<SignedSource::f011ef2e44bcfe53ddd263aceed05794>>
7
7
  * @codegenCommand yarn workspace @af/ads-ai-tooling codegen:ads-components
8
8
  */
9
9
  import type { ComponentMcpPayload } from './types';
@@ -3,12 +3,5 @@
3
3
  "main": "../dist/cjs/entry-points/i18n-conversion-guide.js",
4
4
  "module": "../dist/esm/entry-points/i18n-conversion-guide.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/i18n-conversion-guide.js",
6
- "types": "../dist/types/entry-points/i18n-conversion-guide.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../dist/types-ts4.5/entry-points/i18n-conversion-guide.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../dist/types/entry-points/i18n-conversion-guide.d.ts"
14
7
  }
@@ -3,12 +3,5 @@
3
3
  "main": "../dist/cjs/entry-points/migration-registry.js",
4
4
  "module": "../dist/esm/entry-points/migration-registry.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/migration-registry.js",
6
- "types": "../dist/types/entry-points/migration-registry.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../dist/types-ts4.5/entry-points/migration-registry.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../dist/types/entry-points/migration-registry.d.ts"
14
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ads-mcp",
3
- "version": "0.21.0",
3
+ "version": "1.0.0",
4
4
  "description": "The official Atlassian Design System MCP server to develop apps and user interfaces matching the Atlassian style.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -19,20 +19,12 @@
19
19
  "bin": "index.js",
20
20
  "main": "dist/cjs/index.js",
21
21
  "types": "dist/types/index.d.ts",
22
- "typesVersions": {
23
- ">=4.5 <5.4": {
24
- "*": [
25
- "dist/types-ts4.5/*",
26
- "dist/types-ts4.5/index.d.ts"
27
- ]
28
- }
29
- },
30
22
  "atlaskit:src": "src/index.tsx",
31
23
  "dependencies": {
32
- "@atlaskit/icon": "^35.2.0",
33
- "@atlaskit/icon-lab": "^6.11.0",
34
- "@atlaskit/platform-feature-flags": "^1.1.0",
35
- "@atlaskit/tokens": "^13.0.0",
24
+ "@atlaskit/icon": "^36.0.0",
25
+ "@atlaskit/icon-lab": "^7.0.0",
26
+ "@atlaskit/platform-feature-flags": "^2.0.0",
27
+ "@atlaskit/tokens": "^14.0.0",
36
28
  "@axe-core/playwright": "^4.11.1",
37
29
  "@axe-core/puppeteer": "^4.11.1",
38
30
  "@babel/runtime": "^7.0.0",
@@ -3,12 +3,5 @@
3
3
  "main": "../../dist/cjs/entry-points/analyze-a11y.js",
4
4
  "module": "../../dist/esm/entry-points/analyze-a11y.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/analyze-a11y.js",
6
- "types": "../../dist/types/entry-points/analyze-a11y.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../../dist/types-ts4.5/entry-points/analyze-a11y.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../../dist/types/entry-points/analyze-a11y.d.ts"
14
7
  }
@@ -3,12 +3,5 @@
3
3
  "main": "../../dist/cjs/entry-points/get-a11y-guidelines.js",
4
4
  "module": "../../dist/esm/entry-points/get-a11y-guidelines.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/get-a11y-guidelines.js",
6
- "types": "../../dist/types/entry-points/get-a11y-guidelines.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../../dist/types-ts4.5/entry-points/get-a11y-guidelines.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../../dist/types/entry-points/get-a11y-guidelines.d.ts"
14
7
  }
@@ -3,12 +3,5 @@
3
3
  "main": "../../dist/cjs/entry-points/get-all-components.js",
4
4
  "module": "../../dist/esm/entry-points/get-all-components.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/get-all-components.js",
6
- "types": "../../dist/types/entry-points/get-all-components.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../../dist/types-ts4.5/entry-points/get-all-components.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../../dist/types/entry-points/get-all-components.d.ts"
14
7
  }
@@ -3,12 +3,5 @@
3
3
  "main": "../../dist/cjs/entry-points/get-all-icons.js",
4
4
  "module": "../../dist/esm/entry-points/get-all-icons.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/get-all-icons.js",
6
- "types": "../../dist/types/entry-points/get-all-icons.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../../dist/types-ts4.5/entry-points/get-all-icons.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../../dist/types/entry-points/get-all-icons.d.ts"
14
7
  }
@@ -3,12 +3,5 @@
3
3
  "main": "../../dist/cjs/entry-points/get-all-tokens.js",
4
4
  "module": "../../dist/esm/entry-points/get-all-tokens.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/get-all-tokens.js",
6
- "types": "../../dist/types/entry-points/get-all-tokens.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../../dist/types-ts4.5/entry-points/get-all-tokens.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../../dist/types/entry-points/get-all-tokens.d.ts"
14
7
  }
@@ -3,12 +3,5 @@
3
3
  "main": "../../dist/cjs/entry-points/get-guidelines.js",
4
4
  "module": "../../dist/esm/entry-points/get-guidelines.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/get-guidelines.js",
6
- "types": "../../dist/types/entry-points/get-guidelines.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../../dist/types-ts4.5/entry-points/get-guidelines.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../../dist/types/entry-points/get-guidelines.d.ts"
14
7
  }
@@ -3,12 +3,5 @@
3
3
  "main": "../../dist/cjs/entry-points/get-lint-rules.js",
4
4
  "module": "../../dist/esm/entry-points/get-lint-rules.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/get-lint-rules.js",
6
- "types": "../../dist/types/entry-points/get-lint-rules.d.ts",
7
- "typesVersions": {
8
- ">=4.5 <5.9": {
9
- "*": [
10
- "../../dist/types-ts4.5/entry-points/get-lint-rules.d.ts"
11
- ]
12
- }
13
- }
6
+ "types": "../../dist/types/entry-points/get-lint-rules.d.ts"
14
7
  }