@atlaskit/ads-mcp 0.20.0 → 0.20.2
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 +22 -0
- package/dist/cjs/helpers/analytics.js +17 -16
- package/dist/cjs/helpers/compute-multi-term-fuse-allocation.js +21 -0
- package/dist/cjs/helpers/config-path.js +13 -0
- package/dist/cjs/helpers/fuse-multi-term.js +8 -23
- package/dist/cjs/helpers/staff-id.js +9 -0
- package/dist/cjs/tools/get-all-components/components.codegen.js +2 -2
- package/dist/cjs/tools/migration-guides/index.js +2 -1
- package/dist/cjs/tools/migration-guides/migration-registry.js +10 -0
- package/dist/cjs/tools/migration-guides/registry.js +10 -8
- package/dist/es2019/helpers/analytics.js +7 -13
- package/dist/es2019/helpers/compute-multi-term-fuse-allocation.js +15 -0
- package/dist/es2019/helpers/config-path.js +7 -0
- package/dist/es2019/helpers/fuse-multi-term.js +3 -22
- package/dist/es2019/helpers/staff-id.js +4 -0
- package/dist/es2019/tools/get-all-components/components.codegen.js +2 -2
- package/dist/es2019/tools/migration-guides/index.js +2 -1
- package/dist/es2019/tools/migration-guides/migration-registry.js +7 -0
- package/dist/es2019/tools/migration-guides/registry.js +3 -9
- package/dist/esm/helpers/analytics.js +7 -13
- package/dist/esm/helpers/compute-multi-term-fuse-allocation.js +15 -0
- package/dist/esm/helpers/config-path.js +7 -0
- package/dist/esm/helpers/fuse-multi-term.js +3 -22
- package/dist/esm/helpers/staff-id.js +4 -0
- package/dist/esm/tools/get-all-components/components.codegen.js +2 -2
- package/dist/esm/tools/migration-guides/index.js +2 -1
- package/dist/esm/tools/migration-guides/migration-registry.js +3 -0
- package/dist/esm/tools/migration-guides/registry.js +3 -5
- package/dist/types/helpers/analytics.d.ts +2 -9
- package/dist/types/helpers/compute-multi-term-fuse-allocation.d.ts +14 -0
- package/dist/types/helpers/config-path.d.ts +7 -0
- package/dist/types/helpers/fuse-multi-term.d.ts +1 -20
- package/dist/types/helpers/staff-id.d.ts +1 -0
- package/dist/types/tools/get-all-components/components.codegen.d.ts +1 -1
- package/dist/types/tools/migration-guides/migration-registry.d.ts +2 -0
- package/dist/types/tools/migration-guides/registry.d.ts +1 -2
- package/dist/types-ts4.5/helpers/analytics.d.ts +2 -9
- package/dist/types-ts4.5/helpers/compute-multi-term-fuse-allocation.d.ts +14 -0
- package/dist/types-ts4.5/helpers/config-path.d.ts +7 -0
- package/dist/types-ts4.5/helpers/fuse-multi-term.d.ts +1 -20
- package/dist/types-ts4.5/helpers/staff-id.d.ts +1 -0
- package/dist/types-ts4.5/tools/get-all-components/components.codegen.d.ts +1 -1
- package/dist/types-ts4.5/tools/migration-guides/migration-registry.d.ts +2 -0
- package/dist/types-ts4.5/tools/migration-guides/registry.d.ts +1 -2
- package/package.json +4 -4
|
@@ -4,7 +4,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { zodToJsonSchema } from '../../helpers';
|
|
7
|
-
import {
|
|
7
|
+
import { migrationRegistry } from './migration-registry';
|
|
8
|
+
import { getAvailableMigrationIds, getAvailableMigrationsDescription } from './registry';
|
|
8
9
|
|
|
9
10
|
// Build the enum dynamically from the registry
|
|
10
11
|
var migrationIds = getAvailableMigrationIds();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { onboardingJiraSpotlight, onboardingMultiStep, onboardingSingleStep, onboardingWithMotion } from './migrations/onboarding-to-spotlight';
|
|
3
|
+
export var migrationRegistry = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, onboardingJiraSpotlight.id, onboardingJiraSpotlight), onboardingSingleStep.id, onboardingSingleStep), onboardingMultiStep.id, onboardingMultiStep), onboardingWithMotion.id, onboardingWithMotion);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
/**
|
|
3
2
|
* Migration registry - central place to register all available migrations
|
|
4
3
|
*
|
|
@@ -8,9 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
7
|
* 3. The tool will automatically include it in the available options
|
|
9
8
|
*/
|
|
10
9
|
|
|
11
|
-
import {
|
|
12
|
-
export var migrationRegistry = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, onboardingJiraSpotlight.id, onboardingJiraSpotlight), onboardingSingleStep.id, onboardingSingleStep), onboardingMultiStep.id, onboardingMultiStep), onboardingWithMotion.id, onboardingWithMotion);
|
|
13
|
-
|
|
10
|
+
import { migrationRegistry } from './migration-registry';
|
|
14
11
|
/**
|
|
15
12
|
* Get all available migration IDs for use in the tool schema
|
|
16
13
|
*/
|
|
@@ -26,4 +23,5 @@ export var getAvailableMigrationsDescription = function getAvailableMigrationsDe
|
|
|
26
23
|
return Object.values(migrationRegistry).map(function (m) {
|
|
27
24
|
return "- \"".concat(m.id, "\": ").concat(m.description);
|
|
28
25
|
});
|
|
29
|
-
};
|
|
26
|
+
};
|
|
27
|
+
export { migrationRegistry } from './migration-registry';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const staffId: string;
|
|
2
1
|
/**
|
|
3
2
|
* This is a user-passed value via environment to define what agent we may be running in.
|
|
4
3
|
* This could be anything, do not rely on it!
|
|
@@ -6,13 +5,6 @@ export declare const staffId: string;
|
|
|
6
5
|
*/
|
|
7
6
|
type AGENT = 'cursor' | 'vscode' | 'rovodev' | 'codelassian' | string;
|
|
8
7
|
export declare const agent: AGENT;
|
|
9
|
-
/**
|
|
10
|
-
* The path to the MCP config file that is being used to run the MCP server
|
|
11
|
-
* e.g. 'mcp.json', 'jira/.cursor/mcp.json', 'platform/.vscode/mcp.json' or 'unknown'
|
|
12
|
-
* This could be anything, do not rely on it!
|
|
13
|
-
* @default `'unknown'`
|
|
14
|
-
*/
|
|
15
|
-
export declare const configPath: string;
|
|
16
8
|
interface OperationalEventOptions {
|
|
17
9
|
action: string;
|
|
18
10
|
actionSubject: string;
|
|
@@ -25,4 +17,5 @@ interface OperationalEventOptions {
|
|
|
25
17
|
* If analytics client is not available, this function is a no-op
|
|
26
18
|
*/
|
|
27
19
|
export declare function sendOperationalEvent({ action, actionSubject, actionSubjectId, attributes, }: OperationalEventOptions): void;
|
|
28
|
-
export {};
|
|
20
|
+
export { staffId } from './staff-id';
|
|
21
|
+
export { configPath } from './config-path';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function computeMultiTermFuseAllocation(limit: number, termCount: number): {
|
|
2
|
+
/**
|
|
3
|
+
* The amount token by each term, minimum of 1.
|
|
4
|
+
*/
|
|
5
|
+
perTermTake: number;
|
|
6
|
+
/**
|
|
7
|
+
* Hits to take from the spaced combined query.
|
|
8
|
+
*/
|
|
9
|
+
combinedTake: number;
|
|
10
|
+
/**
|
|
11
|
+
* The total amount of hits to take, minimum of 1.
|
|
12
|
+
*/
|
|
13
|
+
totalTake: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The path to the MCP config file that is being used to run the MCP server
|
|
3
|
+
* e.g. 'mcp.json', 'jira/.cursor/mcp.json', 'platform/.vscode/mcp.json' or 'unknown'
|
|
4
|
+
* This could be anything, do not rely on it!
|
|
5
|
+
* @default `'unknown'`
|
|
6
|
+
*/
|
|
7
|
+
export declare const configPath: string;
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allocation for multi-query Fuse search: each term alone, plus one spaced combined query.
|
|
3
|
-
*
|
|
4
|
-
* `poolMax = limit * termCount`. From each term we take up to `perTermTake` hits; the rest of the
|
|
5
|
-
* pool is filled from the spaced combined query.
|
|
6
|
-
*/
|
|
7
|
-
export declare function computeMultiTermFuseAllocation(limit: number, termCount: number): {
|
|
8
|
-
/**
|
|
9
|
-
* The amount token by each term, minimum of 1.
|
|
10
|
-
*/
|
|
11
|
-
perTermTake: number;
|
|
12
|
-
/**
|
|
13
|
-
* Hits to take from the spaced combined query.
|
|
14
|
-
*/
|
|
15
|
-
combinedTake: number;
|
|
16
|
-
/**
|
|
17
|
-
* The total amount of hits to take, minimum of 1.
|
|
18
|
-
*/
|
|
19
|
-
totalTake: number;
|
|
20
|
-
};
|
|
21
1
|
export type FuseHit<T> = {
|
|
22
2
|
item: T;
|
|
23
3
|
/**
|
|
@@ -43,3 +23,4 @@ export declare function mergeMultiTermFuseResults<T>({ searchTerms, limit, searc
|
|
|
43
23
|
*/
|
|
44
24
|
searchTermsJoin?: ' ' | '.';
|
|
45
25
|
}): T[];
|
|
26
|
+
export { computeMultiTermFuseAllocation } from './compute-multi-term-fuse-allocation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const staffId: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Structured content components from design-system *.docs.tsx files
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::fc752f16c4f1b2afc7681c52c16d7042>>
|
|
7
7
|
* @codegenCommand yarn workspace @af/ads-ai-tooling codegen:structured-docs-components
|
|
8
8
|
*/
|
|
9
9
|
import type { ComponentMcpPayload } from './types';
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* 2. Import and add to the registry below
|
|
7
7
|
* 3. The tool will automatically include it in the available options
|
|
8
8
|
*/
|
|
9
|
-
import type { MigrationRegistry } from './types';
|
|
10
|
-
export declare const migrationRegistry: MigrationRegistry;
|
|
11
9
|
/**
|
|
12
10
|
* Get all available migration IDs for use in the tool schema
|
|
13
11
|
*/
|
|
@@ -17,3 +15,4 @@ export declare const getAvailableMigrationIds: () => string[];
|
|
|
17
15
|
* Useful for tool descriptions and help text
|
|
18
16
|
*/
|
|
19
17
|
export declare const getAvailableMigrationsDescription: () => string[];
|
|
18
|
+
export { migrationRegistry } from './migration-registry';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const staffId: string;
|
|
2
1
|
/**
|
|
3
2
|
* This is a user-passed value via environment to define what agent we may be running in.
|
|
4
3
|
* This could be anything, do not rely on it!
|
|
@@ -6,13 +5,6 @@ export declare const staffId: string;
|
|
|
6
5
|
*/
|
|
7
6
|
type AGENT = 'cursor' | 'vscode' | 'rovodev' | 'codelassian' | string;
|
|
8
7
|
export declare const agent: AGENT;
|
|
9
|
-
/**
|
|
10
|
-
* The path to the MCP config file that is being used to run the MCP server
|
|
11
|
-
* e.g. 'mcp.json', 'jira/.cursor/mcp.json', 'platform/.vscode/mcp.json' or 'unknown'
|
|
12
|
-
* This could be anything, do not rely on it!
|
|
13
|
-
* @default `'unknown'`
|
|
14
|
-
*/
|
|
15
|
-
export declare const configPath: string;
|
|
16
8
|
interface OperationalEventOptions {
|
|
17
9
|
action: string;
|
|
18
10
|
actionSubject: string;
|
|
@@ -25,4 +17,5 @@ interface OperationalEventOptions {
|
|
|
25
17
|
* If analytics client is not available, this function is a no-op
|
|
26
18
|
*/
|
|
27
19
|
export declare function sendOperationalEvent({ action, actionSubject, actionSubjectId, attributes, }: OperationalEventOptions): void;
|
|
28
|
-
export {};
|
|
20
|
+
export { staffId } from './staff-id';
|
|
21
|
+
export { configPath } from './config-path';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function computeMultiTermFuseAllocation(limit: number, termCount: number): {
|
|
2
|
+
/**
|
|
3
|
+
* The amount token by each term, minimum of 1.
|
|
4
|
+
*/
|
|
5
|
+
perTermTake: number;
|
|
6
|
+
/**
|
|
7
|
+
* Hits to take from the spaced combined query.
|
|
8
|
+
*/
|
|
9
|
+
combinedTake: number;
|
|
10
|
+
/**
|
|
11
|
+
* The total amount of hits to take, minimum of 1.
|
|
12
|
+
*/
|
|
13
|
+
totalTake: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The path to the MCP config file that is being used to run the MCP server
|
|
3
|
+
* e.g. 'mcp.json', 'jira/.cursor/mcp.json', 'platform/.vscode/mcp.json' or 'unknown'
|
|
4
|
+
* This could be anything, do not rely on it!
|
|
5
|
+
* @default `'unknown'`
|
|
6
|
+
*/
|
|
7
|
+
export declare const configPath: string;
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allocation for multi-query Fuse search: each term alone, plus one spaced combined query.
|
|
3
|
-
*
|
|
4
|
-
* `poolMax = limit * termCount`. From each term we take up to `perTermTake` hits; the rest of the
|
|
5
|
-
* pool is filled from the spaced combined query.
|
|
6
|
-
*/
|
|
7
|
-
export declare function computeMultiTermFuseAllocation(limit: number, termCount: number): {
|
|
8
|
-
/**
|
|
9
|
-
* The amount token by each term, minimum of 1.
|
|
10
|
-
*/
|
|
11
|
-
perTermTake: number;
|
|
12
|
-
/**
|
|
13
|
-
* Hits to take from the spaced combined query.
|
|
14
|
-
*/
|
|
15
|
-
combinedTake: number;
|
|
16
|
-
/**
|
|
17
|
-
* The total amount of hits to take, minimum of 1.
|
|
18
|
-
*/
|
|
19
|
-
totalTake: number;
|
|
20
|
-
};
|
|
21
1
|
export type FuseHit<T> = {
|
|
22
2
|
item: T;
|
|
23
3
|
/**
|
|
@@ -43,3 +23,4 @@ export declare function mergeMultiTermFuseResults<T>({ searchTerms, limit, searc
|
|
|
43
23
|
*/
|
|
44
24
|
searchTermsJoin?: ' ' | '.';
|
|
45
25
|
}): T[];
|
|
26
|
+
export { computeMultiTermFuseAllocation } from './compute-multi-term-fuse-allocation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const staffId: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Structured content components from design-system *.docs.tsx files
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::fc752f16c4f1b2afc7681c52c16d7042>>
|
|
7
7
|
* @codegenCommand yarn workspace @af/ads-ai-tooling codegen:structured-docs-components
|
|
8
8
|
*/
|
|
9
9
|
import type { ComponentMcpPayload } from './types';
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* 2. Import and add to the registry below
|
|
7
7
|
* 3. The tool will automatically include it in the available options
|
|
8
8
|
*/
|
|
9
|
-
import type { MigrationRegistry } from './types';
|
|
10
|
-
export declare const migrationRegistry: MigrationRegistry;
|
|
11
9
|
/**
|
|
12
10
|
* Get all available migration IDs for use in the tool schema
|
|
13
11
|
*/
|
|
@@ -17,3 +15,4 @@ export declare const getAvailableMigrationIds: () => string[];
|
|
|
17
15
|
* Useful for tool descriptions and help text
|
|
18
16
|
*/
|
|
19
17
|
export declare const getAvailableMigrationsDescription: () => string[];
|
|
18
|
+
export { migrationRegistry } from './migration-registry';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ads-mcp",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
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",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/icon": "^34.
|
|
38
|
-
"@atlaskit/icon-lab": "^6.
|
|
37
|
+
"@atlaskit/icon": "^34.3.0",
|
|
38
|
+
"@atlaskit/icon-lab": "^6.6.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/tokens": "^13.0.0",
|
|
41
41
|
"@axe-core/playwright": "^4.11.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"playwright": "1.57.0",
|
|
50
50
|
"puppeteer": "13.7.0",
|
|
51
51
|
"zod": "^3.23.8",
|
|
52
|
-
"zod-to-json-schema": "
|
|
52
|
+
"zod-to-json-schema": "3.24.6"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
55
|
"@atlassiansox/analytics-node-client": "^4.0.0"
|