@atlaskit/ads-mcp 1.12.16 → 1.13.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 (61) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/helpers/search-terms-schema.js +11 -0
  3. package/dist/cjs/helpers/validation.js +1 -1
  4. package/dist/cjs/tools/get-all-components/components.codegen.js +2 -2
  5. package/dist/cjs/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
  6. package/dist/cjs/tools/get-guidelines/get-guidelines-input-schema.js +2 -1
  7. package/dist/cjs/tools/get-lint-rules/get-lint-rules-input-schema.js +2 -1
  8. package/dist/cjs/tools/plan/list-plan-tool.js +1 -1
  9. package/dist/cjs/tools/plan/plan-input-schema.js +5 -4
  10. package/dist/cjs/tools/plan/plan-tool.js +27 -13
  11. package/dist/cjs/tools/search-atlaskit-components/search-atlaskit-components-input-schema.js +2 -1
  12. package/dist/cjs/tools/search-atlaskit-hooks/search-atlaskit-hooks-input-schema.js +2 -1
  13. package/dist/cjs/tools/search-atlaskit-utilities/search-atlaskit-utilities-input-schema.js +2 -1
  14. package/dist/cjs/tools/search-components/search-components-input-schema.js +2 -1
  15. package/dist/cjs/tools/search-icons/search-icons-input-schema.js +2 -1
  16. package/dist/cjs/tools/search-tokens/search-tokens-input-schema.js +2 -1
  17. package/dist/es2019/helpers/search-terms-schema.js +3 -0
  18. package/dist/es2019/helpers/validation.js +1 -1
  19. package/dist/es2019/tools/get-all-components/components.codegen.js +2 -2
  20. package/dist/es2019/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
  21. package/dist/es2019/tools/get-guidelines/get-guidelines-input-schema.js +2 -1
  22. package/dist/es2019/tools/get-lint-rules/get-lint-rules-input-schema.js +2 -1
  23. package/dist/es2019/tools/plan/list-plan-tool.js +1 -1
  24. package/dist/es2019/tools/plan/plan-input-schema.js +5 -4
  25. package/dist/es2019/tools/plan/plan-tool.js +21 -13
  26. package/dist/es2019/tools/search-atlaskit-components/search-atlaskit-components-input-schema.js +2 -1
  27. package/dist/es2019/tools/search-atlaskit-hooks/search-atlaskit-hooks-input-schema.js +2 -1
  28. package/dist/es2019/tools/search-atlaskit-utilities/search-atlaskit-utilities-input-schema.js +2 -1
  29. package/dist/es2019/tools/search-components/search-components-input-schema.js +2 -1
  30. package/dist/es2019/tools/search-icons/search-icons-input-schema.js +2 -1
  31. package/dist/es2019/tools/search-tokens/search-tokens-input-schema.js +2 -1
  32. package/dist/esm/helpers/search-terms-schema.js +5 -0
  33. package/dist/esm/helpers/validation.js +1 -1
  34. package/dist/esm/tools/get-all-components/components.codegen.js +2 -2
  35. package/dist/esm/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
  36. package/dist/esm/tools/get-guidelines/get-guidelines-input-schema.js +2 -1
  37. package/dist/esm/tools/get-lint-rules/get-lint-rules-input-schema.js +2 -1
  38. package/dist/esm/tools/plan/list-plan-tool.js +1 -1
  39. package/dist/esm/tools/plan/plan-input-schema.js +5 -4
  40. package/dist/esm/tools/plan/plan-tool.js +27 -13
  41. package/dist/esm/tools/search-atlaskit-components/search-atlaskit-components-input-schema.js +2 -1
  42. package/dist/esm/tools/search-atlaskit-hooks/search-atlaskit-hooks-input-schema.js +2 -1
  43. package/dist/esm/tools/search-atlaskit-utilities/search-atlaskit-utilities-input-schema.js +2 -1
  44. package/dist/esm/tools/search-components/search-components-input-schema.js +2 -1
  45. package/dist/esm/tools/search-icons/search-icons-input-schema.js +2 -1
  46. package/dist/esm/tools/search-tokens/search-tokens-input-schema.js +2 -1
  47. package/dist/types/helpers/search-terms-schema.d.ts +5 -0
  48. package/dist/types/helpers/validation.d.ts +2 -2
  49. package/dist/types/tools/get-all-components/components.codegen.d.ts +1 -1
  50. package/dist/types/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +1 -1
  51. package/dist/types/tools/get-guidelines/get-guidelines-input-schema.d.ts +2 -1
  52. package/dist/types/tools/get-lint-rules/get-lint-rules-input-schema.d.ts +2 -1
  53. package/dist/types/tools/plan/plan-input-schema.d.ts +10 -18
  54. package/dist/types/tools/plan/plan-tool.d.ts +2 -2
  55. package/dist/types/tools/search-atlaskit-components/search-atlaskit-components-input-schema.d.ts +3 -2
  56. package/dist/types/tools/search-atlaskit-hooks/search-atlaskit-hooks-input-schema.d.ts +3 -2
  57. package/dist/types/tools/search-atlaskit-utilities/search-atlaskit-utilities-input-schema.d.ts +3 -2
  58. package/dist/types/tools/search-components/search-components-input-schema.d.ts +3 -2
  59. package/dist/types/tools/search-icons/search-icons-input-schema.d.ts +3 -2
  60. package/dist/types/tools/search-tokens/search-tokens-input-schema.d.ts +3 -2
  61. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @atlaskit/ads-mcp
2
2
 
3
+ ## 1.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2654e3d0ab3e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2654e3d0ab3e0) -
8
+ Updated the search tools and planner fields to accept a single query string as well as an array. A
9
+ scalar is treated as one search term with the same matching behavior as a one-item array.
10
+
11
+ Unused planner fields can be omitted and default to empty arrays. The planner requires at least
12
+ one nonblank search term, skips blank-only categories, and returns shared validation errors for
13
+ invalid direct calls.
14
+
15
+ ### Patch Changes
16
+
17
+ - [`ec57cc84535db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec57cc84535db) -
18
+ Rename `@atlassian/a2ui-catalog` to the public npm package `@atlaskit/a2ui-catalog` and update the
19
+ renderer to consume the new package. Replace the old dependency and import prefix with
20
+ `@atlaskit/a2ui-catalog`; existing API subpaths and wire catalog IDs remain unchanged.
21
+
22
+ Expose the prebuilt ADS and Agentic Jira catalog JSON under `catalogs/<slug>/catalog.json` so
23
+ external agent services can load versioned schemas and instructions without copying website
24
+ content or running schema generation. Add external integration guidance covering model context,
25
+ A2UI message output, host compatibility, validation, and user actions. The package now meets the
26
+ production Atlaskit website's public-package scope filter.
27
+
28
+ - Updated dependencies
29
+
3
30
  ## 1.12.16
4
31
 
5
32
  ### Patch Changes
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.searchTermsSchema = void 0;
7
+ var _zod = require("zod");
8
+ // Treat a scalar as one array entry; preserve existing array contents and order.
9
+ var searchTermsSchema = exports.searchTermsSchema = _zod.z.union([_zod.z.string(), _zod.z.array(_zod.z.string())]).transform(function (terms) {
10
+ return typeof terms === 'string' ? [terms] : terms;
11
+ });
@@ -12,7 +12,7 @@ var _zodToJsonSchema = require("./zod-to-json-schema");
12
12
  *
13
13
  * @param schema - The Zod schema to validate against
14
14
  * @param args - The arguments to validate
15
- * @returns { success: true; data: T } if validation succeeds, { success: false; error: ValidationErrorResult } if validation fails
15
+ * @returns { success: true; data: Output } if validation succeeds, { success: false; error: ValidationErrorResult } if validation fails
16
16
  */
17
17
  function validateToolArguments(schema, args) {
18
18
  var result = schema.safeParse(args);