@atlaskit/ads-mcp 0.20.3 → 0.20.4
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/dist/cjs/entry-points/analyze-a11y.js +40 -0
- package/dist/cjs/entry-points/get-a11y-guidelines.js +26 -0
- package/dist/cjs/entry-points/get-all-components.js +19 -0
- package/dist/cjs/entry-points/get-all-icons.js +19 -0
- package/dist/cjs/entry-points/get-all-tokens.js +19 -0
- package/dist/cjs/entry-points/get-atlaskit-components.js +19 -0
- package/dist/cjs/entry-points/get-guidelines.js +26 -0
- package/dist/cjs/entry-points/get-lint-rules.js +26 -0
- package/dist/cjs/entry-points/i18n-conversion.js +26 -0
- package/dist/cjs/entry-points/migration-guides.js +26 -0
- package/dist/cjs/entry-points/plan.js +26 -0
- package/dist/cjs/entry-points/search-atlaskit-components.js +26 -0
- package/dist/cjs/entry-points/search-components.js +26 -0
- package/dist/cjs/entry-points/search-icons.js +26 -0
- package/dist/cjs/entry-points/search-tokens.js +26 -0
- package/dist/cjs/entry-points/suggest-a11y-fixes.js +26 -0
- package/dist/cjs/helpers/agent.js +9 -0
- package/dist/cjs/helpers/clean-query.js +10 -0
- package/dist/cjs/helpers/index.js +14 -11
- package/dist/cjs/helpers/send-operational-event.js +56 -0
- package/dist/cjs/helpers/validation.js +2 -2
- package/dist/cjs/helpers/zod-to-json-schema.js +12 -0
- package/dist/cjs/index.js +127 -85
- package/dist/cjs/tools/analyze-a11y/analyze-a11y-input-schema.js +13 -0
- package/dist/cjs/tools/analyze-a11y/analyze-a11y-localhost-input-schema.js +13 -0
- package/dist/cjs/tools/analyze-a11y/analyze-a11y-tool.js +242 -0
- package/dist/cjs/tools/analyze-a11y/analyze-localhost-a11y-tool.js +214 -0
- package/dist/cjs/tools/analyze-a11y/generate-ads-fix-for-violation.js +32 -0
- package/dist/cjs/tools/analyze-a11y/list-analyze-a11y-tool.js +20 -0
- package/dist/cjs/tools/analyze-a11y/list-analyze-localhost-a11y-tool.js +20 -0
- package/dist/cjs/tools/get-a11y-guidelines/get-a11y-guidelines-input-schema.js +14 -0
- package/dist/cjs/tools/get-a11y-guidelines/{index.js → get-a11y-guidelines-tool.js} +1 -18
- package/dist/cjs/tools/get-a11y-guidelines/list-get-a11y-guidelines-tool.js +22 -0
- package/dist/cjs/tools/get-all-components/{index.js → get-all-components-tool.js} +1 -15
- package/dist/cjs/tools/get-all-components/list-get-all-components-tool.js +22 -0
- package/dist/cjs/tools/get-all-icons/{index.js → get-all-icons-tool.js} +1 -15
- package/dist/cjs/tools/get-all-icons/list-get-all-icons-tool.js +22 -0
- package/dist/cjs/tools/get-all-tokens/{index.js → get-all-tokens-tool.js} +1 -18
- package/dist/cjs/tools/get-all-tokens/list-get-all-tokens-tool.js +23 -0
- package/dist/cjs/tools/get-atlaskit-components/atlaskit-components.codegen.js +1944 -0
- package/dist/cjs/tools/get-atlaskit-components/get-atlaskit-components-tool.js +40 -0
- package/dist/cjs/tools/get-atlaskit-components/list-get-atlaskit-components-tool.js +22 -0
- package/dist/cjs/tools/get-guidelines/get-guidelines-input-schema.js +11 -0
- package/dist/cjs/tools/get-guidelines/{index.js → get-guidelines-tool.js} +3 -20
- package/dist/cjs/tools/get-guidelines/list-get-guidelines-tool.js +22 -0
- package/dist/cjs/tools/get-lint-rules/get-lint-rules-input-schema.js +14 -0
- package/dist/cjs/tools/get-lint-rules/{index.js → get-lint-rules-tool.js} +3 -21
- package/dist/cjs/tools/get-lint-rules/list-get-lint-rules-tool.js +22 -0
- package/dist/cjs/tools/i18n-conversion/i18n-conversion-input-schema.js +12 -0
- package/dist/cjs/tools/i18n-conversion/i18n-conversion-tool.js +33 -0
- package/dist/cjs/tools/i18n-conversion/{index.js → list-i18n-conversion-tool.js} +5 -33
- package/dist/cjs/tools/migration-guides/get-available-migration-ids.js +22 -0
- package/dist/cjs/tools/migration-guides/get-available-migrations-description.js +25 -0
- package/dist/cjs/tools/migration-guides/list-migration-guides-tool.js +23 -0
- package/dist/cjs/tools/migration-guides/migration-guides-input-schema.js +17 -0
- package/dist/cjs/tools/migration-guides/{index.js → migration-guides-tool.js} +3 -24
- package/dist/cjs/tools/migration-guides/migration-registry.js +5 -2
- package/dist/cjs/tools/migration-guides/migrations/onboarding-jira-spotlight.js +29 -0
- package/dist/cjs/tools/migration-guides/migrations/onboarding-multi-step.js +23 -0
- package/dist/cjs/tools/migration-guides/migrations/onboarding-single-step.js +23 -0
- package/dist/cjs/tools/migration-guides/migrations/onboarding-with-motion.js +23 -0
- package/dist/cjs/tools/plan/list-plan-tool.js +22 -0
- package/dist/cjs/tools/plan/plan-input-schema.js +16 -0
- package/dist/cjs/tools/plan/{index.js → plan-tool.js} +28 -36
- package/dist/cjs/tools/search-atlaskit-components/list-search-atlaskit-components-tool.js +22 -0
- package/dist/cjs/tools/search-atlaskit-components/search-atlaskit-components-input-schema.js +11 -0
- package/dist/cjs/tools/search-atlaskit-components/search-atlaskit-components-tool.js +114 -0
- package/dist/cjs/tools/search-components/list-search-components-tool.js +22 -0
- package/dist/cjs/tools/search-components/search-components-input-schema.js +13 -0
- package/dist/cjs/tools/search-components/{index.js → search-components-tool.js} +3 -19
- package/dist/cjs/tools/search-icons/list-search-icons-tool.js +22 -0
- package/dist/cjs/tools/search-icons/search-icons-input-schema.js +13 -0
- package/dist/cjs/tools/search-icons/{index.js → search-icons-tool.js} +3 -19
- package/dist/cjs/tools/search-tokens/list-search-tokens-tool.js +22 -0
- package/dist/cjs/tools/search-tokens/search-tokens-input-schema.js +13 -0
- package/dist/cjs/tools/search-tokens/{index.js → search-tokens-tool.js} +3 -19
- package/dist/cjs/tools/suggest-a11y-fixes/list-suggest-a11y-fixes-tool.js +22 -0
- package/dist/cjs/tools/suggest-a11y-fixes/suggest-a11y-fixes-input-schema.js +15 -0
- package/dist/cjs/tools/suggest-a11y-fixes/{index.js → suggest-a11y-fixes-tool.js} +1 -22
- package/dist/es2019/entry-points/analyze-a11y.js +5 -0
- package/dist/es2019/entry-points/get-a11y-guidelines.js +3 -0
- package/dist/es2019/entry-points/get-all-components.js +2 -0
- package/dist/es2019/entry-points/get-all-icons.js +2 -0
- package/dist/es2019/entry-points/get-all-tokens.js +2 -0
- package/dist/es2019/entry-points/get-atlaskit-components.js +2 -0
- package/dist/es2019/entry-points/get-guidelines.js +3 -0
- package/dist/es2019/entry-points/get-lint-rules.js +3 -0
- package/dist/es2019/entry-points/i18n-conversion.js +3 -0
- package/dist/es2019/entry-points/migration-guides.js +3 -0
- package/dist/es2019/entry-points/plan.js +3 -0
- package/dist/es2019/entry-points/search-atlaskit-components.js +3 -0
- package/dist/es2019/entry-points/search-components.js +3 -0
- package/dist/es2019/entry-points/search-icons.js +3 -0
- package/dist/es2019/entry-points/search-tokens.js +3 -0
- package/dist/es2019/entry-points/suggest-a11y-fixes.js +3 -0
- package/dist/es2019/helpers/agent.js +3 -0
- package/dist/es2019/helpers/clean-query.js +2 -0
- package/dist/es2019/helpers/index.js +2 -7
- package/dist/es2019/helpers/send-operational-event.js +49 -0
- package/dist/es2019/helpers/validation.js +1 -1
- package/dist/es2019/helpers/zod-to-json-schema.js +6 -0
- package/dist/es2019/index.js +138 -92
- package/dist/es2019/tools/analyze-a11y/analyze-a11y-input-schema.js +7 -0
- package/dist/es2019/tools/analyze-a11y/analyze-a11y-localhost-input-schema.js +7 -0
- package/dist/es2019/tools/analyze-a11y/analyze-a11y-tool.js +212 -0
- package/dist/es2019/tools/analyze-a11y/analyze-localhost-a11y-tool.js +163 -0
- package/dist/es2019/tools/analyze-a11y/generate-ads-fix-for-violation.js +26 -0
- package/dist/es2019/tools/analyze-a11y/list-analyze-a11y-tool.js +21 -0
- package/dist/es2019/tools/analyze-a11y/list-analyze-localhost-a11y-tool.js +23 -0
- package/dist/es2019/tools/get-a11y-guidelines/get-a11y-guidelines-input-schema.js +7 -0
- package/dist/es2019/tools/get-a11y-guidelines/get-a11y-guidelines-tool.js +34 -0
- package/dist/es2019/tools/get-a11y-guidelines/list-get-a11y-guidelines-tool.js +23 -0
- package/dist/es2019/tools/get-all-components/get-all-components-tool.js +12 -0
- package/dist/es2019/tools/get-all-components/{index.js → list-get-all-components-tool.js} +1 -12
- package/dist/es2019/tools/get-all-icons/get-all-icons-tool.js +10 -0
- package/dist/es2019/tools/get-all-icons/{index.js → list-get-all-icons-tool.js} +2 -11
- package/dist/es2019/tools/get-all-tokens/get-all-tokens-tool.js +13 -0
- package/dist/es2019/tools/get-all-tokens/{index.js → list-get-all-tokens-tool.js} +2 -15
- package/dist/es2019/tools/get-atlaskit-components/atlaskit-components.codegen.js +1938 -0
- package/dist/es2019/tools/get-atlaskit-components/get-atlaskit-components-tool.js +14 -0
- package/dist/es2019/tools/get-atlaskit-components/list-get-atlaskit-components-tool.js +21 -0
- package/dist/es2019/tools/get-guidelines/get-guidelines-input-schema.js +5 -0
- package/dist/es2019/tools/get-guidelines/get-guidelines-tool.js +55 -0
- package/dist/es2019/tools/get-guidelines/{index.js → list-get-guidelines-tool.js} +2 -59
- package/dist/es2019/tools/get-lint-rules/get-lint-rules-input-schema.js +7 -0
- package/dist/es2019/tools/get-lint-rules/{index.js → get-lint-rules-tool.js} +1 -28
- package/dist/es2019/tools/get-lint-rules/list-get-lint-rules-tool.js +24 -0
- package/dist/es2019/tools/i18n-conversion/i18n-conversion-input-schema.js +5 -0
- package/dist/es2019/tools/i18n-conversion/i18n-conversion-tool.js +11 -0
- package/dist/es2019/tools/i18n-conversion/{index.js → list-i18n-conversion-tool.js} +2 -14
- package/dist/es2019/tools/migration-guides/get-available-migration-ids.js +17 -0
- package/dist/es2019/tools/migration-guides/get-available-migrations-description.js +18 -0
- package/dist/es2019/tools/migration-guides/list-migration-guides-tool.js +25 -0
- package/dist/es2019/tools/migration-guides/migration-guides-input-schema.js +10 -0
- package/dist/es2019/tools/migration-guides/migration-guides-tool.js +39 -0
- package/dist/es2019/tools/migration-guides/migration-registry.js +4 -1
- package/dist/es2019/tools/migration-guides/migrations/onboarding-jira-spotlight.js +230 -0
- package/dist/es2019/tools/migration-guides/migrations/onboarding-multi-step.js +179 -0
- package/dist/es2019/tools/migration-guides/migrations/onboarding-single-step.js +120 -0
- package/dist/es2019/tools/migration-guides/migrations/onboarding-with-motion.js +120 -0
- package/dist/es2019/tools/plan/list-plan-tool.js +47 -0
- package/dist/es2019/tools/plan/plan-input-schema.js +9 -0
- package/dist/es2019/tools/plan/plan-tool.js +111 -0
- package/dist/es2019/tools/search-atlaskit-components/list-search-atlaskit-components-tool.js +19 -0
- package/dist/es2019/tools/search-atlaskit-components/search-atlaskit-components-input-schema.js +5 -0
- package/dist/es2019/tools/search-atlaskit-components/search-atlaskit-components-tool.js +84 -0
- package/dist/es2019/tools/search-components/list-search-components-tool.js +19 -0
- package/dist/es2019/tools/search-components/search-components-input-schema.js +6 -0
- package/dist/es2019/tools/search-components/{index.js → search-components-tool.js} +2 -21
- package/dist/es2019/tools/search-icons/list-search-icons-tool.js +25 -0
- package/dist/es2019/tools/search-icons/search-icons-input-schema.js +6 -0
- package/dist/es2019/tools/search-icons/{index.js → search-icons-tool.js} +2 -27
- package/dist/es2019/tools/search-tokens/list-search-tokens-tool.js +25 -0
- package/dist/es2019/tools/search-tokens/search-tokens-input-schema.js +6 -0
- package/dist/es2019/tools/search-tokens/{index.js → search-tokens-tool.js} +2 -27
- package/dist/es2019/tools/suggest-a11y-fixes/list-suggest-a11y-fixes-tool.js +25 -0
- package/dist/es2019/tools/suggest-a11y-fixes/suggest-a11y-fixes-input-schema.js +8 -0
- package/dist/es2019/tools/suggest-a11y-fixes/{index.js → suggest-a11y-fixes-tool.js} +0 -30
- package/dist/esm/entry-points/analyze-a11y.js +5 -0
- package/dist/esm/entry-points/get-a11y-guidelines.js +3 -0
- package/dist/esm/entry-points/get-all-components.js +2 -0
- package/dist/esm/entry-points/get-all-icons.js +2 -0
- package/dist/esm/entry-points/get-all-tokens.js +2 -0
- package/dist/esm/entry-points/get-atlaskit-components.js +2 -0
- package/dist/esm/entry-points/get-guidelines.js +3 -0
- package/dist/esm/entry-points/get-lint-rules.js +3 -0
- package/dist/esm/entry-points/i18n-conversion.js +3 -0
- package/dist/esm/entry-points/migration-guides.js +3 -0
- package/dist/esm/entry-points/plan.js +3 -0
- package/dist/esm/entry-points/search-atlaskit-components.js +3 -0
- package/dist/esm/entry-points/search-components.js +3 -0
- package/dist/esm/entry-points/search-icons.js +3 -0
- package/dist/esm/entry-points/search-tokens.js +3 -0
- package/dist/esm/entry-points/suggest-a11y-fixes.js +3 -0
- package/dist/esm/helpers/agent.js +3 -0
- package/dist/esm/helpers/clean-query.js +4 -0
- package/dist/esm/helpers/index.js +2 -9
- package/dist/esm/helpers/send-operational-event.js +52 -0
- package/dist/esm/helpers/validation.js +1 -1
- package/dist/esm/helpers/zod-to-json-schema.js +6 -0
- package/dist/esm/index.js +65 -23
- package/dist/esm/tools/analyze-a11y/analyze-a11y-input-schema.js +7 -0
- package/dist/esm/tools/analyze-a11y/analyze-a11y-localhost-input-schema.js +7 -0
- package/dist/esm/tools/analyze-a11y/analyze-a11y-tool.js +235 -0
- package/dist/esm/tools/analyze-a11y/analyze-localhost-a11y-tool.js +207 -0
- package/dist/esm/tools/analyze-a11y/generate-ads-fix-for-violation.js +26 -0
- package/dist/esm/tools/analyze-a11y/list-analyze-a11y-tool.js +14 -0
- package/dist/esm/tools/analyze-a11y/list-analyze-localhost-a11y-tool.js +14 -0
- package/dist/esm/tools/get-a11y-guidelines/get-a11y-guidelines-input-schema.js +7 -0
- package/dist/esm/tools/get-a11y-guidelines/{index.js → get-a11y-guidelines-tool.js} +0 -17
- package/dist/esm/tools/get-a11y-guidelines/list-get-a11y-guidelines-tool.js +16 -0
- package/dist/esm/tools/get-all-components/{index.js → get-all-components-tool.js} +0 -15
- package/dist/esm/tools/get-all-components/list-get-all-components-tool.js +16 -0
- package/dist/esm/tools/get-all-icons/{index.js → get-all-icons-tool.js} +0 -15
- package/dist/esm/tools/get-all-icons/list-get-all-icons-tool.js +16 -0
- package/dist/esm/tools/get-all-tokens/{index.js → get-all-tokens-tool.js} +0 -17
- package/dist/esm/tools/get-all-tokens/list-get-all-tokens-tool.js +17 -0
- package/dist/esm/tools/get-atlaskit-components/atlaskit-components.codegen.js +1938 -0
- package/dist/esm/tools/get-atlaskit-components/get-atlaskit-components-tool.js +32 -0
- package/dist/esm/tools/get-atlaskit-components/list-get-atlaskit-components-tool.js +16 -0
- package/dist/esm/tools/get-guidelines/get-guidelines-input-schema.js +5 -0
- package/dist/esm/tools/get-guidelines/{index.js → get-guidelines-tool.js} +1 -19
- package/dist/esm/tools/get-guidelines/list-get-guidelines-tool.js +16 -0
- package/dist/esm/tools/get-lint-rules/get-lint-rules-input-schema.js +7 -0
- package/dist/esm/tools/get-lint-rules/{index.js → get-lint-rules-tool.js} +1 -19
- package/dist/esm/tools/get-lint-rules/list-get-lint-rules-tool.js +15 -0
- package/dist/esm/tools/i18n-conversion/i18n-conversion-input-schema.js +5 -0
- package/dist/esm/tools/i18n-conversion/i18n-conversion-tool.js +26 -0
- package/dist/esm/tools/i18n-conversion/{index.js → list-i18n-conversion-tool.js} +3 -30
- package/dist/esm/tools/migration-guides/get-available-migration-ids.js +17 -0
- package/dist/esm/tools/migration-guides/get-available-migrations-description.js +20 -0
- package/dist/esm/tools/migration-guides/list-migration-guides-tool.js +17 -0
- package/dist/esm/tools/migration-guides/migration-guides-input-schema.js +10 -0
- package/dist/esm/tools/migration-guides/{index.js → migration-guides-tool.js} +1 -23
- package/dist/esm/tools/migration-guides/migration-registry.js +4 -1
- package/dist/esm/tools/migration-guides/migrations/onboarding-jira-spotlight.js +23 -0
- package/dist/esm/tools/migration-guides/migrations/onboarding-multi-step.js +17 -0
- package/dist/esm/tools/migration-guides/migrations/onboarding-single-step.js +17 -0
- package/dist/esm/tools/migration-guides/migrations/onboarding-with-motion.js +17 -0
- package/dist/esm/tools/plan/list-plan-tool.js +16 -0
- package/dist/esm/tools/plan/plan-input-schema.js +9 -0
- package/dist/esm/tools/plan/{index.js → plan-tool.js} +24 -32
- package/dist/esm/tools/search-atlaskit-components/list-search-atlaskit-components-tool.js +16 -0
- package/dist/esm/tools/search-atlaskit-components/search-atlaskit-components-input-schema.js +5 -0
- package/dist/esm/tools/search-atlaskit-components/search-atlaskit-components-tool.js +107 -0
- package/dist/esm/tools/search-components/list-search-components-tool.js +16 -0
- package/dist/esm/tools/search-components/search-components-input-schema.js +6 -0
- package/dist/esm/tools/search-components/{index.js → search-components-tool.js} +2 -18
- package/dist/esm/tools/search-icons/list-search-icons-tool.js +16 -0
- package/dist/esm/tools/search-icons/search-icons-input-schema.js +6 -0
- package/dist/esm/tools/search-icons/{index.js → search-icons-tool.js} +2 -18
- package/dist/esm/tools/search-tokens/list-search-tokens-tool.js +16 -0
- package/dist/esm/tools/search-tokens/search-tokens-input-schema.js +6 -0
- package/dist/esm/tools/search-tokens/{index.js → search-tokens-tool.js} +2 -18
- package/dist/esm/tools/suggest-a11y-fixes/list-suggest-a11y-fixes-tool.js +16 -0
- package/dist/esm/tools/suggest-a11y-fixes/suggest-a11y-fixes-input-schema.js +8 -0
- package/dist/esm/tools/suggest-a11y-fixes/{index.js → suggest-a11y-fixes-tool.js} +0 -21
- package/dist/types/entry-points/analyze-a11y.d.ts +5 -0
- package/dist/types/entry-points/get-a11y-guidelines.d.ts +3 -0
- package/dist/types/entry-points/get-all-components.d.ts +2 -0
- package/dist/types/entry-points/get-all-icons.d.ts +2 -0
- package/dist/types/entry-points/get-all-tokens.d.ts +2 -0
- package/dist/types/entry-points/get-atlaskit-components.d.ts +2 -0
- package/dist/types/entry-points/get-guidelines.d.ts +3 -0
- package/dist/types/entry-points/get-lint-rules.d.ts +3 -0
- package/dist/types/entry-points/i18n-conversion.d.ts +3 -0
- package/dist/types/entry-points/migration-guides.d.ts +3 -0
- package/dist/types/entry-points/plan.d.ts +3 -0
- package/dist/types/entry-points/search-atlaskit-components.d.ts +3 -0
- package/dist/types/entry-points/search-components.d.ts +3 -0
- package/dist/types/entry-points/search-icons.d.ts +3 -0
- package/dist/types/entry-points/search-tokens.d.ts +3 -0
- package/dist/types/entry-points/suggest-a11y-fixes.d.ts +3 -0
- package/dist/types/helpers/agent.d.ts +3 -0
- package/dist/types/helpers/clean-query.d.ts +1 -0
- package/dist/types/helpers/index.d.ts +2 -4
- package/dist/types/helpers/send-operational-event.d.ts +13 -0
- package/dist/types/helpers/zod-to-json-schema.d.ts +3 -0
- package/dist/types/tools/analyze-a11y/analyze-a11y-input-schema.d.ts +17 -0
- package/dist/types/tools/analyze-a11y/analyze-a11y-localhost-input-schema.d.ts +17 -0
- package/dist/types/tools/analyze-a11y/analyze-a11y-tool.d.ts +8 -0
- package/dist/types/tools/analyze-a11y/analyze-localhost-a11y-tool.d.ts +8 -0
- package/dist/types/tools/analyze-a11y/generate-ads-fix-for-violation.d.ts +1 -0
- package/dist/types/tools/analyze-a11y/list-analyze-a11y-tool.d.ts +2 -0
- package/dist/types/tools/analyze-a11y/list-analyze-localhost-a11y-tool.d.ts +2 -0
- package/dist/types/tools/get-a11y-guidelines/get-a11y-guidelines-input-schema.d.ts +8 -0
- package/dist/types/tools/get-a11y-guidelines/get-a11y-guidelines-tool.d.ts +8 -0
- package/dist/types/tools/get-a11y-guidelines/list-get-a11y-guidelines-tool.d.ts +2 -0
- package/dist/types/tools/get-all-components/{index.d.ts → get-all-components-tool.d.ts} +0 -2
- package/dist/types/tools/get-all-components/list-get-all-components-tool.d.ts +2 -0
- package/dist/{types-ts4.5/tools/get-all-icons/index.d.ts → types/tools/get-all-icons/get-all-icons-tool.d.ts} +0 -2
- package/dist/types/tools/get-all-icons/list-get-all-icons-tool.d.ts +2 -0
- package/dist/types/tools/get-all-tokens/{index.d.ts → get-all-tokens-tool.d.ts} +0 -2
- package/dist/types/tools/get-all-tokens/list-get-all-tokens-tool.d.ts +2 -0
- package/dist/types/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +10 -0
- package/dist/types/tools/get-atlaskit-components/get-atlaskit-components-tool.d.ts +6 -0
- package/dist/types/tools/get-atlaskit-components/list-get-atlaskit-components-tool.d.ts +2 -0
- package/dist/types/tools/get-guidelines/get-guidelines-input-schema.d.ts +5 -0
- package/dist/types/tools/get-guidelines/get-guidelines-tool.d.ts +8 -0
- package/dist/types/tools/get-guidelines/list-get-guidelines-tool.d.ts +2 -0
- package/dist/types/tools/get-lint-rules/get-lint-rules-input-schema.d.ts +6 -0
- package/dist/types/tools/get-lint-rules/get-lint-rules-tool.d.ts +4 -0
- package/dist/types/tools/get-lint-rules/{index.d.ts → list-get-lint-rules-tool.d.ts} +0 -8
- package/dist/types/tools/i18n-conversion/i18n-conversion-input-schema.d.ts +8 -0
- package/dist/types/tools/i18n-conversion/i18n-conversion-tool.d.ts +8 -0
- package/dist/types/tools/i18n-conversion/list-i18n-conversion-tool.d.ts +2 -0
- package/dist/types/tools/migration-guides/get-available-migration-ids.d.ts +12 -0
- package/dist/types/tools/migration-guides/get-available-migrations-description.d.ts +13 -0
- package/dist/types/tools/migration-guides/list-migration-guides-tool.d.ts +2 -0
- package/dist/types/tools/migration-guides/migration-guides-input-schema.d.ts +11 -0
- package/dist/types/tools/migration-guides/migration-guides-tool.d.ts +8 -0
- package/dist/types/tools/migration-guides/migrations/onboarding-jira-spotlight.d.ts +2 -0
- package/dist/types/tools/migration-guides/migrations/onboarding-multi-step.d.ts +2 -0
- package/dist/types/tools/migration-guides/migrations/onboarding-single-step.d.ts +2 -0
- package/dist/types/tools/migration-guides/migrations/onboarding-with-motion.d.ts +2 -0
- package/dist/types/tools/plan/list-plan-tool.d.ts +2 -0
- package/dist/types/tools/plan/{index.d.ts → plan-input-schema.d.ts} +3 -15
- package/dist/types/tools/plan/plan-tool.d.ts +15 -0
- package/dist/types/tools/search-atlaskit-components/list-search-atlaskit-components-tool.d.ts +2 -0
- package/dist/types/tools/search-atlaskit-components/search-atlaskit-components-input-schema.d.ts +11 -0
- package/dist/types/tools/search-atlaskit-components/search-atlaskit-components-tool.d.ts +4 -0
- package/dist/types/tools/search-components/list-search-components-tool.d.ts +2 -0
- package/dist/{types-ts4.5/tools/search-components/index.d.ts → types/tools/search-components/search-components-input-schema.d.ts} +0 -3
- package/dist/types/tools/search-components/search-components-tool.d.ts +4 -0
- package/dist/types/tools/search-icons/list-search-icons-tool.d.ts +2 -0
- package/dist/{types-ts4.5/tools/search-icons/index.d.ts → types/tools/search-icons/search-icons-input-schema.d.ts} +0 -3
- package/dist/types/tools/search-icons/search-icons-tool.d.ts +4 -0
- package/dist/types/tools/search-tokens/list-search-tokens-tool.d.ts +2 -0
- package/dist/types/tools/search-tokens/{index.d.ts → search-tokens-input-schema.d.ts} +0 -3
- package/dist/types/tools/search-tokens/search-tokens-tool.d.ts +4 -0
- package/dist/types/tools/suggest-a11y-fixes/list-suggest-a11y-fixes-tool.d.ts +2 -0
- package/dist/types/tools/suggest-a11y-fixes/{index.d.ts → suggest-a11y-fixes-input-schema.d.ts} +0 -8
- package/dist/types/tools/suggest-a11y-fixes/suggest-a11y-fixes-tool.d.ts +8 -0
- package/dist/types-ts4.5/entry-points/analyze-a11y.d.ts +5 -0
- package/dist/types-ts4.5/entry-points/get-a11y-guidelines.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/get-all-components.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/get-all-icons.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/get-all-tokens.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/get-atlaskit-components.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/get-guidelines.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/get-lint-rules.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/i18n-conversion.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/migration-guides.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/plan.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/search-atlaskit-components.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/search-components.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/search-icons.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/search-tokens.d.ts +3 -0
- package/dist/types-ts4.5/entry-points/suggest-a11y-fixes.d.ts +3 -0
- package/dist/types-ts4.5/helpers/agent.d.ts +3 -0
- package/dist/types-ts4.5/helpers/clean-query.d.ts +1 -0
- package/dist/types-ts4.5/helpers/index.d.ts +2 -4
- package/dist/types-ts4.5/helpers/send-operational-event.d.ts +13 -0
- package/dist/types-ts4.5/helpers/zod-to-json-schema.d.ts +3 -0
- package/dist/types-ts4.5/tools/analyze-a11y/analyze-a11y-input-schema.d.ts +17 -0
- package/dist/types-ts4.5/tools/analyze-a11y/analyze-a11y-localhost-input-schema.d.ts +17 -0
- package/dist/types-ts4.5/tools/analyze-a11y/analyze-a11y-tool.d.ts +8 -0
- package/dist/types-ts4.5/tools/analyze-a11y/analyze-localhost-a11y-tool.d.ts +8 -0
- package/dist/types-ts4.5/tools/analyze-a11y/generate-ads-fix-for-violation.d.ts +1 -0
- package/dist/types-ts4.5/tools/analyze-a11y/list-analyze-a11y-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/analyze-a11y/list-analyze-localhost-a11y-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/get-a11y-guidelines/get-a11y-guidelines-input-schema.d.ts +8 -0
- package/dist/types-ts4.5/tools/get-a11y-guidelines/get-a11y-guidelines-tool.d.ts +8 -0
- package/dist/types-ts4.5/tools/get-a11y-guidelines/list-get-a11y-guidelines-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/get-all-components/{index.d.ts → get-all-components-tool.d.ts} +0 -2
- package/dist/types-ts4.5/tools/get-all-components/list-get-all-components-tool.d.ts +2 -0
- package/dist/{types/tools/get-all-icons/index.d.ts → types-ts4.5/tools/get-all-icons/get-all-icons-tool.d.ts} +0 -2
- package/dist/types-ts4.5/tools/get-all-icons/list-get-all-icons-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/get-all-tokens/{index.d.ts → get-all-tokens-tool.d.ts} +0 -2
- package/dist/types-ts4.5/tools/get-all-tokens/list-get-all-tokens-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +10 -0
- package/dist/types-ts4.5/tools/get-atlaskit-components/get-atlaskit-components-tool.d.ts +6 -0
- package/dist/types-ts4.5/tools/get-atlaskit-components/list-get-atlaskit-components-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/get-guidelines/get-guidelines-input-schema.d.ts +5 -0
- package/dist/types-ts4.5/tools/get-guidelines/get-guidelines-tool.d.ts +8 -0
- package/dist/types-ts4.5/tools/get-guidelines/list-get-guidelines-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/get-lint-rules/get-lint-rules-input-schema.d.ts +6 -0
- package/dist/types-ts4.5/tools/get-lint-rules/get-lint-rules-tool.d.ts +4 -0
- package/dist/types-ts4.5/tools/get-lint-rules/{index.d.ts → list-get-lint-rules-tool.d.ts} +0 -8
- package/dist/types-ts4.5/tools/i18n-conversion/{index.d.ts → i18n-conversion-input-schema.d.ts} +0 -8
- package/dist/types-ts4.5/tools/i18n-conversion/i18n-conversion-tool.d.ts +8 -0
- package/dist/types-ts4.5/tools/i18n-conversion/list-i18n-conversion-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/migration-guides/get-available-migration-ids.d.ts +12 -0
- package/dist/types-ts4.5/tools/migration-guides/get-available-migrations-description.d.ts +13 -0
- package/dist/types-ts4.5/tools/migration-guides/list-migration-guides-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/migration-guides/{index.d.ts → migration-guides-input-schema.d.ts} +0 -8
- package/dist/types-ts4.5/tools/migration-guides/migration-guides-tool.d.ts +8 -0
- package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-jira-spotlight.d.ts +2 -0
- package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-multi-step.d.ts +2 -0
- package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-single-step.d.ts +2 -0
- package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-with-motion.d.ts +2 -0
- package/dist/types-ts4.5/tools/plan/list-plan-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/plan/{index.d.ts → plan-input-schema.d.ts} +3 -15
- package/dist/types-ts4.5/tools/plan/plan-tool.d.ts +15 -0
- package/dist/types-ts4.5/tools/search-atlaskit-components/list-search-atlaskit-components-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/search-atlaskit-components/search-atlaskit-components-input-schema.d.ts +11 -0
- package/dist/types-ts4.5/tools/search-atlaskit-components/search-atlaskit-components-tool.d.ts +4 -0
- package/dist/types-ts4.5/tools/search-components/list-search-components-tool.d.ts +2 -0
- package/dist/{types/tools/search-components/index.d.ts → types-ts4.5/tools/search-components/search-components-input-schema.d.ts} +0 -3
- package/dist/types-ts4.5/tools/search-components/search-components-tool.d.ts +4 -0
- package/dist/types-ts4.5/tools/search-icons/list-search-icons-tool.d.ts +2 -0
- package/dist/{types/tools/search-icons/index.d.ts → types-ts4.5/tools/search-icons/search-icons-input-schema.d.ts} +0 -3
- package/dist/types-ts4.5/tools/search-icons/search-icons-tool.d.ts +4 -0
- package/dist/types-ts4.5/tools/search-tokens/list-search-tokens-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/search-tokens/{index.d.ts → search-tokens-input-schema.d.ts} +0 -3
- package/dist/types-ts4.5/tools/search-tokens/search-tokens-tool.d.ts +4 -0
- package/dist/types-ts4.5/tools/suggest-a11y-fixes/list-suggest-a11y-fixes-tool.d.ts +2 -0
- package/dist/types-ts4.5/tools/suggest-a11y-fixes/{index.d.ts → suggest-a11y-fixes-input-schema.d.ts} +0 -8
- package/dist/types-ts4.5/tools/suggest-a11y-fixes/suggest-a11y-fixes-tool.d.ts +8 -0
- package/index.js +0 -2
- package/package.json +4 -9
- package/tools/analyze-a11y/package.json +5 -5
- package/tools/get-a11y-guidelines/package.json +5 -5
- package/tools/get-all-components/package.json +5 -5
- package/tools/get-all-icons/package.json +5 -5
- package/tools/get-all-tokens/package.json +5 -5
- package/tools/get-guidelines/package.json +5 -5
- package/tools/get-lint-rules/package.json +5 -5
- package/tools/i18n-conversion/package.json +5 -5
- package/tools/migration-guides/package.json +5 -5
- package/tools/plan/package.json +5 -5
- package/tools/search-components/package.json +5 -5
- package/tools/search-icons/package.json +5 -5
- package/tools/search-tokens/package.json +5 -5
- package/tools/suggest-a11y-fixes/package.json +5 -5
- package/dist/cjs/tools/analyze-a11y/index.js +0 -483
- package/dist/cjs/tools/migration-guides/migrations/onboarding-to-spotlight.js +0 -77
- package/dist/es2019/tools/analyze-a11y/index.js +0 -432
- package/dist/es2019/tools/get-a11y-guidelines/index.js +0 -58
- package/dist/es2019/tools/migration-guides/index.js +0 -69
- package/dist/es2019/tools/migration-guides/migrations/onboarding-to-spotlight.js +0 -646
- package/dist/es2019/tools/plan/index.js +0 -147
- package/dist/esm/tools/analyze-a11y/index.js +0 -478
- package/dist/esm/tools/migration-guides/migrations/onboarding-to-spotlight.js +0 -71
- package/dist/types/tools/analyze-a11y/index.d.ts +0 -48
- package/dist/types/tools/get-a11y-guidelines/index.d.ts +0 -16
- package/dist/types/tools/get-guidelines/index.d.ts +0 -13
- package/dist/types/tools/i18n-conversion/index.d.ts +0 -16
- package/dist/types/tools/migration-guides/index.d.ts +0 -19
- package/dist/types/tools/migration-guides/migrations/onboarding-to-spotlight.d.ts +0 -5
- package/dist/types-ts4.5/tools/analyze-a11y/index.d.ts +0 -48
- package/dist/types-ts4.5/tools/get-a11y-guidelines/index.d.ts +0 -16
- package/dist/types-ts4.5/tools/get-guidelines/index.d.ts +0 -13
- package/dist/types-ts4.5/tools/migration-guides/migrations/onboarding-to-spotlight.d.ts +0 -5
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
import { AxePuppeteer } from '@axe-core/puppeteer';
|
|
2
|
-
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
3
|
-
|
|
4
|
-
import axe from 'axe-core';
|
|
5
|
-
import puppeteer from 'puppeteer';
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
import { zodToJsonSchema } from '../../helpers';
|
|
8
|
-
export const analyzeA11yInputSchema = z.object({
|
|
9
|
-
code: z.string().describe('Source code of a React component or JSX snippet to analyze (string content only—no file path).'),
|
|
10
|
-
componentName: z.string().optional().describe('Optional label for the component under review (for summaries and reports).'),
|
|
11
|
-
context: z.string().optional().describe('Optional: how the component is used (e.g. in a form, modal) to improve suggestions.'),
|
|
12
|
-
includePatternAnalysis: z.boolean().default(true).describe('When true (default), runs regex-based heuristics on the code string (e.g. unlabeled buttons, missing alt) in addition to other analysis.').optional()
|
|
13
|
-
});
|
|
14
|
-
export const listAnalyzeA11yTool = {
|
|
15
|
-
name: 'ads_analyze_a11y',
|
|
16
|
-
description: `Analyzes a **string of React/JSX** code for likely accessibility issues (heuristics and/or axe-related paths) and returns hints that often **point to** \`ads_suggest_a11y_fixes\` or generic axe/WCAG-style context—not every finding maps to a specific ADS component fix.
|
|
17
|
-
|
|
18
|
-
WHEN TO USE:
|
|
19
|
-
You have component source as text and want automated checks or heuristics before or during a code review.
|
|
20
|
-
|
|
21
|
-
LIMITATIONS:
|
|
22
|
-
- Does not replace testing in a real browser with assistive technologies or full keyboard traversal.
|
|
23
|
-
- For rendered UI, \`ads_analyze_localhost_a11y\` (live URL + axe) is preferable when available—it is **only exposed when this MCP runs locally**, not in the remote MCP deployment.`,
|
|
24
|
-
annotations: {
|
|
25
|
-
title: 'Analyze accessibility (code string)',
|
|
26
|
-
readOnlyHint: true,
|
|
27
|
-
destructiveHint: false,
|
|
28
|
-
idempotentHint: true,
|
|
29
|
-
openWorldHint: true
|
|
30
|
-
},
|
|
31
|
-
inputSchema: zodToJsonSchema(analyzeA11yInputSchema)
|
|
32
|
-
};
|
|
33
|
-
export const analyzeA11yLocalhostInputSchema = z.object({
|
|
34
|
-
url: z.string().describe('Fully qualified page URL to load (e.g. `http://localhost:9000` or a dev URL). Must be reachable from this MCP process.'),
|
|
35
|
-
componentName: z.string().optional().describe('Optional label for reporting (e.g. feature or component under test).'),
|
|
36
|
-
context: z.string().optional().describe('Optional: route, user flow, or feature context for the analyzed page.'),
|
|
37
|
-
selector: z.string().optional().describe('Optional CSS selector to scope axe analysis to a subtree (e.g. `#my-form`, `[data-testid="panel"]`). Omit to analyze the whole document.')
|
|
38
|
-
});
|
|
39
|
-
export const listAnalyzeLocalhostA11yTool = {
|
|
40
|
-
name: 'ads_analyze_localhost_a11y',
|
|
41
|
-
description: `Loads a **live URL** in a headless browser, runs **axe-core**, and returns violations with follow-up hints (often suggesting \`ads_suggest_a11y_fixes\`). Output is anchored in **axe** rule text; remediation may be generic or ADS-biased depending on the violation.
|
|
42
|
-
|
|
43
|
-
**Availability:** This tool is only registered when the ADS MCP runs **on your machine** (local MCP). It is **not** available in the **remote** MCP offering—use \`ads_analyze_a11y\` on source text there instead.
|
|
44
|
-
|
|
45
|
-
WHEN TO USE:
|
|
46
|
-
You have a running app or storybook page and need automated accessibility results on **rendered** UI—especially local or staging URLs.
|
|
47
|
-
|
|
48
|
-
LIMITATIONS:
|
|
49
|
-
- Does not replace manual testing with assistive technologies or keyboard-only navigation.
|
|
50
|
-
- Requires network access to the URL from the environment running the MCP.`,
|
|
51
|
-
annotations: {
|
|
52
|
-
title: 'Analyze accessibility (live URL)',
|
|
53
|
-
readOnlyHint: true,
|
|
54
|
-
destructiveHint: false,
|
|
55
|
-
idempotentHint: true,
|
|
56
|
-
openWorldHint: true
|
|
57
|
-
},
|
|
58
|
-
inputSchema: zodToJsonSchema(analyzeA11yLocalhostInputSchema)
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
// Common accessibility patterns to detect in code
|
|
62
|
-
const accessibilityPatterns = [{
|
|
63
|
-
pattern: /<button[^>]*>(?!.*aria-label|.*>.*<\/button>)/g,
|
|
64
|
-
violation: 'Button without accessible text',
|
|
65
|
-
severity: 'error',
|
|
66
|
-
suggestion: 'Use the ads_suggest_a11y_fixes tool for ADS Button solutions. Describe the issue as "button missing label", "empty button", or "button needs text".'
|
|
67
|
-
}, {
|
|
68
|
-
pattern: /<img[^>]*>(?!.*alt=)/g,
|
|
69
|
-
violation: 'Image without alt text',
|
|
70
|
-
severity: 'error',
|
|
71
|
-
suggestion: 'Use the ads_suggest_a11y_fixes tool for ADS Image solutions. Describe the issue as "image missing alt", "missing alt text", or "image accessibility".'
|
|
72
|
-
}, {
|
|
73
|
-
pattern: /<div[^>]*onClick[^>]*>/g,
|
|
74
|
-
violation: 'Clickable div without accessibility',
|
|
75
|
-
severity: 'warning',
|
|
76
|
-
suggestion: 'Use the ads_suggest_a11y_fixes tool for ADS solutions. Describe the issue as "clickable div", "interactive div", or "div with click handler".'
|
|
77
|
-
}, {
|
|
78
|
-
pattern: /color:\s*['"]#[0-9a-fA-F]{3,6}['"]/g,
|
|
79
|
-
violation: 'Hardcoded color values',
|
|
80
|
-
severity: 'warning',
|
|
81
|
-
suggestion: 'Use the ads_suggest_a11y_fixes tool for design token solutions. Describe the issue as "hardcoded colors", "hex colors", or "design tokens".'
|
|
82
|
-
}, {
|
|
83
|
-
pattern: /<input[^>]*>(?!.*id=)/g,
|
|
84
|
-
violation: 'Input without associated label',
|
|
85
|
-
severity: 'error',
|
|
86
|
-
suggestion: 'Use the ads_suggest_a11y_fixes tool for ADS form solutions. Describe the issue as "input missing label", "form field without label", or "unlabeled input".'
|
|
87
|
-
}, {
|
|
88
|
-
pattern: /<div[^>]*role="button"[^>]*>/g,
|
|
89
|
-
violation: 'Custom button without full accessibility',
|
|
90
|
-
severity: 'warning',
|
|
91
|
-
suggestion: 'Use the ads_suggest_a11y_fixes tool for ADS Button/Focusable solutions. Describe the issue as "custom button", "div with button role", or "interactive element".'
|
|
92
|
-
}, {
|
|
93
|
-
pattern: /style=\{[^}]*color[^}]*\}/g,
|
|
94
|
-
violation: 'Inline color styles',
|
|
95
|
-
severity: 'warning',
|
|
96
|
-
suggestion: 'Use the ads_suggest_a11y_fixes tool for design token solutions. Describe the issue as "inline styles", "hardcoded colors", or "color tokens".'
|
|
97
|
-
}];
|
|
98
|
-
|
|
99
|
-
// ADS accessibility guidelines reference
|
|
100
|
-
const adsGuidelines = {
|
|
101
|
-
buttons: {
|
|
102
|
-
title: 'Button Accessibility',
|
|
103
|
-
guidelines: ['Always provide accessible labels for buttons', 'Use Button component for standard interactions', 'Use Focusable component for custom interactive elements', 'Avoid disabled buttons with tooltips', 'Ensure focus indicators are visible']
|
|
104
|
-
},
|
|
105
|
-
forms: {
|
|
106
|
-
title: 'Form Accessibility',
|
|
107
|
-
guidelines: ['Use TextField component for consistent labeling', 'Associate labels with inputs using id and htmlFor', 'Provide clear error messages with aria-describedby', 'Use MessageWrapper for form validation announcements']
|
|
108
|
-
},
|
|
109
|
-
images: {
|
|
110
|
-
title: 'Image Accessibility',
|
|
111
|
-
guidelines: ['Use Image component with proper alt text', 'Keep alt text under 125 characters', 'Leave alt="" for decorative images', 'Describe the purpose, not just the content']
|
|
112
|
-
},
|
|
113
|
-
colors: {
|
|
114
|
-
title: 'Color and Contrast',
|
|
115
|
-
guidelines: ['Use design tokens for consistent contrast ratios', 'Never rely on color alone for information', 'Use color.text tokens for proper contrast', 'Test with high contrast mode']
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
// Helper function to map axe-core violations to ADS-specific fixes
|
|
120
|
-
function mapAxeViolationsToADSFixes(violations) {
|
|
121
|
-
return violations.map(violation => {
|
|
122
|
-
const adsFix = generateADSFixForViolation(violation);
|
|
123
|
-
return {
|
|
124
|
-
...violation,
|
|
125
|
-
type: adsFix.title,
|
|
126
|
-
// Use the specific fix key that matches fixes.ts
|
|
127
|
-
adsFix,
|
|
128
|
-
severity: violation.impact === 'critical' || violation.impact === 'serious' ? 'error' : 'warning'
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// Helper function to provide ADS-specific guidance for axe-core violations
|
|
134
|
-
function generateADSFixForViolation(violation) {
|
|
135
|
-
const {
|
|
136
|
-
id,
|
|
137
|
-
description,
|
|
138
|
-
help,
|
|
139
|
-
tags
|
|
140
|
-
} = violation;
|
|
141
|
-
|
|
142
|
-
// Provide general guidance without trying to map to specific fixes.ts keys
|
|
143
|
-
const adsFix = `Use the ads_suggest_a11y_fixes tool to get specific ADS component solutions. Describe the issue using the violation details: "${help}" or in your own words (e.g., "button has no text", "missing alt text", "form field needs label").`;
|
|
144
|
-
return {
|
|
145
|
-
title: help,
|
|
146
|
-
// Use axe-core's human-readable description
|
|
147
|
-
description: description,
|
|
148
|
-
adsFix,
|
|
149
|
-
example: 'The ads_suggest_a11y_fixes tool provides detailed code examples and ADS component solutions',
|
|
150
|
-
violationId: id,
|
|
151
|
-
axeHelp: help,
|
|
152
|
-
tags,
|
|
153
|
-
wcagTags: tags.filter(tag => tag.startsWith('wcag')),
|
|
154
|
-
// Extract WCAG compliance info
|
|
155
|
-
reference: `https://atlassian.design/llms-a11y.txt`,
|
|
156
|
-
recommendations: ['Use ADS components for better accessibility out of the box', 'Reference the ads_suggest_a11y_fixes tool for specific solutions', 'Test with keyboard navigation and screen readers', 'Use automated accessibility testing tools']
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
export const analyzeA11yTool = async params => {
|
|
160
|
-
const {
|
|
161
|
-
code,
|
|
162
|
-
componentName,
|
|
163
|
-
context,
|
|
164
|
-
includePatternAnalysis = true
|
|
165
|
-
} = params;
|
|
166
|
-
const violations = [];
|
|
167
|
-
const suggestions = [];
|
|
168
|
-
const axeResults = {};
|
|
169
|
-
try {
|
|
170
|
-
var _axeResults$violation, _axeResults$passes, _axeResults$incomplet;
|
|
171
|
-
// Run axe-core analysis
|
|
172
|
-
const results = await axe.run({
|
|
173
|
-
fromFrames: ['iframe', 'html']
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
// Process axe-core results
|
|
177
|
-
if (results.violations && results.violations.length > 0) {
|
|
178
|
-
const adsViolations = mapAxeViolationsToADSFixes(results.violations);
|
|
179
|
-
violations.push(...adsViolations);
|
|
180
|
-
axeResults.violations = results.violations;
|
|
181
|
-
axeResults.passes = results.passes;
|
|
182
|
-
axeResults.incomplete = results.incomplete;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// Include pattern-based analysis if requested
|
|
186
|
-
if (includePatternAnalysis) {
|
|
187
|
-
accessibilityPatterns.forEach(pattern => {
|
|
188
|
-
const matches = code.match(pattern.pattern);
|
|
189
|
-
if (matches) {
|
|
190
|
-
violations.push({
|
|
191
|
-
type: pattern.violation,
|
|
192
|
-
severity: pattern.severity,
|
|
193
|
-
count: matches.length,
|
|
194
|
-
suggestion: pattern.suggestion,
|
|
195
|
-
adsFix: 'Use the ads_suggest_a11y_fixes tool for specific ADS component solutions',
|
|
196
|
-
example: 'The ads_suggest_a11y_fixes tool provides detailed code examples',
|
|
197
|
-
source: 'pattern-analysis'
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
// Generate ADS-specific suggestions
|
|
204
|
-
if (violations.length > 0) {
|
|
205
|
-
suggestions.push({
|
|
206
|
-
title: 'Accessibility Improvements Needed',
|
|
207
|
-
description: `Found ${violations.length} accessibility issues in your code.`,
|
|
208
|
-
violations,
|
|
209
|
-
nextSteps: ['Review each violation and apply the suggested fixes', 'Use ADS components instead of custom implementations', 'Test with screen readers and keyboard navigation', 'Run automated accessibility tests']
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// Provide relevant ADS guidelines
|
|
214
|
-
const relevantGuidelines = [];
|
|
215
|
-
if (code.includes('button') || code.includes('onClick')) {
|
|
216
|
-
relevantGuidelines.push(adsGuidelines.buttons);
|
|
217
|
-
}
|
|
218
|
-
if (code.includes('input') || code.includes('form')) {
|
|
219
|
-
relevantGuidelines.push(adsGuidelines.forms);
|
|
220
|
-
}
|
|
221
|
-
if (code.includes('img') || code.includes('image')) {
|
|
222
|
-
relevantGuidelines.push(adsGuidelines.images);
|
|
223
|
-
}
|
|
224
|
-
if (code.includes('color') || code.includes('style')) {
|
|
225
|
-
relevantGuidelines.push(adsGuidelines.colors);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// Generate summary
|
|
229
|
-
const summary = {
|
|
230
|
-
componentName: componentName || 'Unknown component',
|
|
231
|
-
totalViolations: violations.length,
|
|
232
|
-
severityBreakdown: {
|
|
233
|
-
error: violations.filter(v => v.severity === 'error').length,
|
|
234
|
-
warning: violations.filter(v => v.severity === 'warning').length
|
|
235
|
-
},
|
|
236
|
-
context: context || 'No additional context provided',
|
|
237
|
-
axeResults: {
|
|
238
|
-
violations: ((_axeResults$violation = axeResults.violations) === null || _axeResults$violation === void 0 ? void 0 : _axeResults$violation.length) || 0,
|
|
239
|
-
passes: ((_axeResults$passes = axeResults.passes) === null || _axeResults$passes === void 0 ? void 0 : _axeResults$passes.length) || 0,
|
|
240
|
-
incomplete: ((_axeResults$incomplet = axeResults.incomplete) === null || _axeResults$incomplet === void 0 ? void 0 : _axeResults$incomplet.length) || 0
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
return {
|
|
244
|
-
content: [{
|
|
245
|
-
type: 'text',
|
|
246
|
-
text: JSON.stringify({
|
|
247
|
-
summary,
|
|
248
|
-
violations,
|
|
249
|
-
suggestions,
|
|
250
|
-
relevantGuidelines,
|
|
251
|
-
axeResults,
|
|
252
|
-
recommendations: ['Use ADS components for better accessibility out of the box', 'Reference https://atlassian.design/llms-a11y.txt for detailed guidelines', 'Test with keyboard navigation and screen readers', 'Use automated accessibility testing tools']
|
|
253
|
-
}, null, 2)
|
|
254
|
-
}]
|
|
255
|
-
};
|
|
256
|
-
} catch {
|
|
257
|
-
// Fallback to pattern-based analysis if axe-core fails
|
|
258
|
-
// console.warn('Axe-core analysis failed, falling back to pattern analysis:', error);
|
|
259
|
-
|
|
260
|
-
// Run pattern analysis as fallback
|
|
261
|
-
accessibilityPatterns.forEach(pattern => {
|
|
262
|
-
const matches = code.match(pattern.pattern);
|
|
263
|
-
if (matches) {
|
|
264
|
-
violations.push({
|
|
265
|
-
type: pattern.violation,
|
|
266
|
-
severity: pattern.severity,
|
|
267
|
-
count: matches.length,
|
|
268
|
-
suggestion: pattern.suggestion,
|
|
269
|
-
adsFix: 'Use the ads_suggest_a11y_fixes tool for specific ADS component solutions',
|
|
270
|
-
example: 'The ads_suggest_a11y_fixes tool provides detailed code examples',
|
|
271
|
-
source: 'pattern-analysis-fallback'
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
return {
|
|
276
|
-
content: [{
|
|
277
|
-
type: 'text',
|
|
278
|
-
text: JSON.stringify({
|
|
279
|
-
summary: {
|
|
280
|
-
componentName: componentName || 'Unknown component',
|
|
281
|
-
totalViolations: violations.length,
|
|
282
|
-
severityBreakdown: {
|
|
283
|
-
error: violations.filter(v => v.severity === 'error').length,
|
|
284
|
-
warning: violations.filter(v => v.severity === 'warning').length
|
|
285
|
-
},
|
|
286
|
-
context: context || 'No additional context provided',
|
|
287
|
-
note: 'Analysis completed using pattern matching (axe-core analysis failed)'
|
|
288
|
-
},
|
|
289
|
-
violations,
|
|
290
|
-
suggestions: violations.length > 0 ? [{
|
|
291
|
-
title: 'Accessibility Improvements Needed',
|
|
292
|
-
description: `Found ${violations.length} accessibility issues in your code.`,
|
|
293
|
-
violations,
|
|
294
|
-
nextSteps: ['Review each violation and apply the suggested fixes', 'Use ADS components instead of custom implementations', 'Test with screen readers and keyboard navigation', 'Run automated accessibility tests']
|
|
295
|
-
}] : [],
|
|
296
|
-
error: 'Axe-core analysis failed, used pattern-based analysis as fallback',
|
|
297
|
-
recommendations: ['Use ADS components for better accessibility out of the box', 'Reference https://atlassian.design/llms-a11y.txt for detailed guidelines', 'Test with keyboard navigation and screen readers', 'Use automated accessibility testing tools']
|
|
298
|
-
}, null, 2)
|
|
299
|
-
}]
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
export const analyzeLocalhostA11yTool = async params => {
|
|
304
|
-
const {
|
|
305
|
-
url,
|
|
306
|
-
componentName,
|
|
307
|
-
context,
|
|
308
|
-
selector
|
|
309
|
-
} = params;
|
|
310
|
-
const violations = [];
|
|
311
|
-
const suggestions = [];
|
|
312
|
-
const axeResults = {};
|
|
313
|
-
const browser = await puppeteer.launch();
|
|
314
|
-
const page = await browser.newPage();
|
|
315
|
-
try {
|
|
316
|
-
var _axeResults$violation2, _axeResults$passes2, _axeResults$incomplet2;
|
|
317
|
-
await page.goto(url, {
|
|
318
|
-
waitUntil: 'networkidle0'
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
// If a selector is provided, check if the element exists
|
|
322
|
-
if (selector) {
|
|
323
|
-
const elementExists = await page.$(selector);
|
|
324
|
-
if (!elementExists) {
|
|
325
|
-
// Get list of available elements with IDs for helpful error message
|
|
326
|
-
const availableElements = await page.evaluate(() => {
|
|
327
|
-
const elements = Array.from(document.querySelectorAll('[id]'));
|
|
328
|
-
return elements.map(el => `#${el.id}`);
|
|
329
|
-
});
|
|
330
|
-
throw new Error(`Element with selector "${selector}" not found on the page after waiting. Available elements: ${availableElements.join(', ')}`);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
// Run axe-core accessibility analysis
|
|
335
|
-
const axePuppeteer = new AxePuppeteer(page);
|
|
336
|
-
|
|
337
|
-
// If selector is provided, analyze only that element
|
|
338
|
-
if (selector) {
|
|
339
|
-
axePuppeteer.include(selector);
|
|
340
|
-
}
|
|
341
|
-
const results = await axePuppeteer.analyze();
|
|
342
|
-
if (results.violations && results.violations.length > 0) {
|
|
343
|
-
const adsViolations = mapAxeViolationsToADSFixes(results.violations);
|
|
344
|
-
violations.push(...adsViolations);
|
|
345
|
-
axeResults.violations = results.violations;
|
|
346
|
-
axeResults.passes = results.passes;
|
|
347
|
-
axeResults.incomplete = results.incomplete;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
// Generate ADS-specific suggestions
|
|
351
|
-
if (violations.length > 0) {
|
|
352
|
-
suggestions.push({
|
|
353
|
-
title: 'Accessibility Improvements Needed',
|
|
354
|
-
description: `Found ${violations.length} accessibility issues in your code.`,
|
|
355
|
-
violations,
|
|
356
|
-
nextSteps: ['Review each violation and apply the suggested fixes', 'Use ADS components instead of custom implementations', 'Test with screen readers and keyboard navigation', 'Run automated accessibility tests']
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
// Provide relevant ADS guidelines
|
|
361
|
-
const relevantGuidelines = [];
|
|
362
|
-
if (url.includes('button') || url.includes('onClick')) {
|
|
363
|
-
relevantGuidelines.push(adsGuidelines.buttons);
|
|
364
|
-
}
|
|
365
|
-
if (url.includes('input') || url.includes('form')) {
|
|
366
|
-
relevantGuidelines.push(adsGuidelines.forms);
|
|
367
|
-
}
|
|
368
|
-
if (url.includes('img') || url.includes('image')) {
|
|
369
|
-
relevantGuidelines.push(adsGuidelines.images);
|
|
370
|
-
}
|
|
371
|
-
if (url.includes('color') || url.includes('style')) {
|
|
372
|
-
relevantGuidelines.push(adsGuidelines.colors);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// Generate summary
|
|
376
|
-
const summary = {
|
|
377
|
-
url,
|
|
378
|
-
selector: selector || 'Entire page analyzed',
|
|
379
|
-
componentName: componentName || 'Unknown component',
|
|
380
|
-
totalViolations: violations.length,
|
|
381
|
-
severityBreakdown: {
|
|
382
|
-
error: violations.filter(v => v.severity === 'error').length,
|
|
383
|
-
warning: violations.filter(v => v.severity === 'warning').length
|
|
384
|
-
},
|
|
385
|
-
context: context || 'No additional context provided',
|
|
386
|
-
axeResults: {
|
|
387
|
-
violations: ((_axeResults$violation2 = axeResults.violations) === null || _axeResults$violation2 === void 0 ? void 0 : _axeResults$violation2.length) || 0,
|
|
388
|
-
passes: ((_axeResults$passes2 = axeResults.passes) === null || _axeResults$passes2 === void 0 ? void 0 : _axeResults$passes2.length) || 0,
|
|
389
|
-
incomplete: ((_axeResults$incomplet2 = axeResults.incomplete) === null || _axeResults$incomplet2 === void 0 ? void 0 : _axeResults$incomplet2.length) || 0
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
await browser.close();
|
|
393
|
-
return {
|
|
394
|
-
content: [{
|
|
395
|
-
type: 'text',
|
|
396
|
-
text: JSON.stringify({
|
|
397
|
-
summary,
|
|
398
|
-
violations,
|
|
399
|
-
suggestions,
|
|
400
|
-
relevantGuidelines,
|
|
401
|
-
axeResults,
|
|
402
|
-
recommendations: ['Use ADS components for better accessibility out of the box', 'Reference https://atlassian.design/llms-a11y.txt for detailed guidelines', 'Test with keyboard navigation and screen readers', 'Use automated accessibility testing tools']
|
|
403
|
-
}, null, 2)
|
|
404
|
-
}]
|
|
405
|
-
};
|
|
406
|
-
} catch (error) {
|
|
407
|
-
await browser.close();
|
|
408
|
-
return {
|
|
409
|
-
content: [{
|
|
410
|
-
type: 'text',
|
|
411
|
-
text: JSON.stringify({
|
|
412
|
-
summary: {
|
|
413
|
-
url,
|
|
414
|
-
selector: selector || 'Entire page analyzed',
|
|
415
|
-
componentName: componentName || 'Unknown component',
|
|
416
|
-
totalViolations: violations.length,
|
|
417
|
-
severityBreakdown: {
|
|
418
|
-
error: violations.filter(v => v.severity === 'error').length,
|
|
419
|
-
warning: violations.filter(v => v.severity === 'warning').length
|
|
420
|
-
},
|
|
421
|
-
context: context || 'No additional context provided',
|
|
422
|
-
note: 'Analysis failed to run on the provided URL'
|
|
423
|
-
},
|
|
424
|
-
violations,
|
|
425
|
-
suggestions: [],
|
|
426
|
-
error: String(error),
|
|
427
|
-
recommendations: ['Use ADS components for better accessibility out of the box', 'Reference https://atlassian.design/llms-a11y.txt for detailed guidelines', 'Test with keyboard navigation and screen readers', 'Use automated accessibility testing tools']
|
|
428
|
-
}, null, 2)
|
|
429
|
-
}]
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
2
|
-
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { zodToJsonSchema } from '../../helpers';
|
|
5
|
-
import { accessibilityGuidelines } from './guidelines';
|
|
6
|
-
const topics = Object.keys(accessibilityGuidelines);
|
|
7
|
-
export const getA11yGuidelinesInputSchema = z.object({
|
|
8
|
-
topic: z.string().optional().describe('ADS accessibility topic key. Omit to receive all topics and the full guideline bundle. Pass a valid key (see response \`availableTopics\`) or \`general\` for a focused overview when supported. Known topics: ' + topics.join(', ') + '.')
|
|
9
|
-
});
|
|
10
|
-
export const listGetA11yGuidelinesTool = {
|
|
11
|
-
name: 'ads_get_a11y_guidelines',
|
|
12
|
-
description: `Returns Atlassian Design System (ADS) accessibility guidance: best practices and patterns for buttons, interactions, color contrast, forms, and other design-system topics shipped in this tool.
|
|
13
|
-
|
|
14
|
-
Use this alongside the Context Engine MCP tool \`get_accessibility_docs\` for Atlassian-wide accessibility standards (e.g. A11YKB); this tool supplies ADS-specific component and pattern guidance.
|
|
15
|
-
|
|
16
|
-
WHEN TO USE:
|
|
17
|
-
You MUST call this when generating or substantially changing a new interactive or visual user interface built with ADS, or when you need topic-specific ADS guidance (e.g. focus, forms, motion).
|
|
18
|
-
|
|
19
|
-
DO NOT rely on generic web accessibility advice alone—ADS conventions may differ. Use \`get_accessibility_docs\` for org-wide standards and this tool for ADS-topic guidance.`,
|
|
20
|
-
annotations: {
|
|
21
|
-
title: 'Get ADS accessibility guidelines',
|
|
22
|
-
readOnlyHint: true,
|
|
23
|
-
destructiveHint: false,
|
|
24
|
-
idempotentHint: true,
|
|
25
|
-
openWorldHint: true
|
|
26
|
-
},
|
|
27
|
-
inputSchema: zodToJsonSchema(getA11yGuidelinesInputSchema)
|
|
28
|
-
};
|
|
29
|
-
export const getA11yGuidelinesTool = async ({
|
|
30
|
-
topic
|
|
31
|
-
}) => {
|
|
32
|
-
if (topic && accessibilityGuidelines[topic]) {
|
|
33
|
-
const guidelines = accessibilityGuidelines[topic];
|
|
34
|
-
return {
|
|
35
|
-
content: [{
|
|
36
|
-
type: 'text',
|
|
37
|
-
text: JSON.stringify({
|
|
38
|
-
topic,
|
|
39
|
-
...guidelines,
|
|
40
|
-
additionalResources: ['https://atlassian.design/llms-a11y.txt - Complete ADS accessibility documentation', 'https://atlassian.design/foundations/accessibility - ADS accessibility foundation', 'https://www.w3.org/WAI/WCAG21/quickref/ - WCAG 2.1 guidelines']
|
|
41
|
-
}, null, 2)
|
|
42
|
-
}]
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Return all guidelines if no specific topic requested
|
|
47
|
-
return {
|
|
48
|
-
content: [{
|
|
49
|
-
type: 'text',
|
|
50
|
-
text: JSON.stringify({
|
|
51
|
-
availableTopics: topics,
|
|
52
|
-
message: 'Specify a topic to get detailed guidelines, or use "general" for overview',
|
|
53
|
-
guidelines: accessibilityGuidelines,
|
|
54
|
-
additionalResources: ['https://atlassian.design/llms-a11y.txt - Complete ADS accessibility documentation', 'https://atlassian.design/foundations/accessibility - ADS accessibility foundation']
|
|
55
|
-
}, null, 2)
|
|
56
|
-
}]
|
|
57
|
-
};
|
|
58
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
2
|
-
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { zodToJsonSchema } from '../../helpers';
|
|
5
|
-
import { migrationRegistry } from './migration-registry';
|
|
6
|
-
import { getAvailableMigrationIds, getAvailableMigrationsDescription } from './registry';
|
|
7
|
-
|
|
8
|
-
// Build the enum dynamically from the registry
|
|
9
|
-
const migrationIds = getAvailableMigrationIds();
|
|
10
|
-
const migrationDescriptions = getAvailableMigrationsDescription();
|
|
11
|
-
export const migrationGuidesInputSchema = z.object({
|
|
12
|
-
migration: z.enum(migrationIds).describe('Migration id from the registry. Must match the guide you want (see tool description list).'),
|
|
13
|
-
description: z.enum(migrationDescriptions).describe('Human-readable migration label that pairs with `migration` in the schema—choose the entry that matches the selected id.')
|
|
14
|
-
});
|
|
15
|
-
export const listMigrationGuidesTool = {
|
|
16
|
-
name: 'ads_migration_guides',
|
|
17
|
-
description: `Returns a structured Atlassian Design System (ADS) **migration guide** for a known package or API migration (before/after examples, best practices, links).
|
|
18
|
-
|
|
19
|
-
WHEN TO USE:
|
|
20
|
-
You are upgrading or refactoring code between ADS packages or APIs and need the official migration pattern for a specific id listed below.
|
|
21
|
-
|
|
22
|
-
Pass **both** \`migration\` and \`description\` using a **matching pair** from the enum (schema enforces valid combinations).
|
|
23
|
-
|
|
24
|
-
Available migrations:
|
|
25
|
-
${getAvailableMigrationsDescription()}`,
|
|
26
|
-
annotations: {
|
|
27
|
-
title: 'ADS Migration Guides',
|
|
28
|
-
readOnlyHint: true,
|
|
29
|
-
destructiveHint: false,
|
|
30
|
-
idempotentHint: true,
|
|
31
|
-
openWorldHint: false
|
|
32
|
-
},
|
|
33
|
-
inputSchema: zodToJsonSchema(migrationGuidesInputSchema)
|
|
34
|
-
};
|
|
35
|
-
export const migrationGuidesTool = async params => {
|
|
36
|
-
const {
|
|
37
|
-
migration
|
|
38
|
-
} = params;
|
|
39
|
-
const guide = migrationRegistry[migration];
|
|
40
|
-
if (!guide) {
|
|
41
|
-
// This shouldn't happen if the schema validation works, but handle gracefully
|
|
42
|
-
return {
|
|
43
|
-
content: [{
|
|
44
|
-
type: 'text',
|
|
45
|
-
text: JSON.stringify({
|
|
46
|
-
error: `Unknown migration: ${migration}`,
|
|
47
|
-
availableMigrations: getAvailableMigrationIds(),
|
|
48
|
-
suggestion: 'Please use one of the available migration IDs listed above.'
|
|
49
|
-
}, null, 2)
|
|
50
|
-
}]
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
content: [{
|
|
55
|
-
type: 'text',
|
|
56
|
-
text: JSON.stringify({
|
|
57
|
-
migration: guide.id,
|
|
58
|
-
title: guide.title,
|
|
59
|
-
description: guide.description,
|
|
60
|
-
fromPackage: guide.fromPackage,
|
|
61
|
-
toPackage: guide.toPackage,
|
|
62
|
-
examples: guide.examples,
|
|
63
|
-
bestPractices: guide.bestPractices,
|
|
64
|
-
additionalResources: guide.additionalResources,
|
|
65
|
-
nextSteps: ['Review the before/after examples to understand the migration pattern', 'Apply the migration pattern', 'Follow the best practices listed above', 'Test the migrated code thoroughly']
|
|
66
|
-
}, null, 2)
|
|
67
|
-
}]
|
|
68
|
-
};
|
|
69
|
-
};
|