@atlaskit/rovo-agent-analytics 1.9.0 → 1.11.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/rovo-agent-analytics
2
2
 
3
+ ## 1.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5922ce1f90616`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5922ce1f90616) -
8
+ RAGE-3548: Type `EditingEventPayload['attributes']` as a discriminated union by `field`, so
9
+ field-specific data (e.g. `newValue: boolean` for toggle fields, `skillCount: number` for
10
+ `agenticSkills`) is required at call sites and discoverable to analytics consumers. A
11
+ `{ field: string }` catch-all is kept for backwards compatibility; prefer adding a typed variant
12
+ for new fields.
13
+
14
+ ## 1.10.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`c5948348a4e51`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c5948348a4e51) -
19
+ TREX-1373 (part 3/3): add @typescript-eslint/no-explicit-any OXLint suppression comments across
20
+ rovo-\* and misc packages. Includes OXLint override and Mithril ratchet to prevent new
21
+ suppressions.
22
+
3
23
  ## 1.9.0
4
24
 
5
25
  ### Minor Changes
@@ -14,6 +14,8 @@ var getDefaultTrackEventConfig = exports.getDefaultTrackEventConfig = function g
14
14
  tags: ['atlaskit']
15
15
  };
16
16
  };
17
+
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
19
  var getAttributesFromContexts = exports.getAttributesFromContexts = function getAttributesFromContexts(context) {
18
20
  if (!context || !Array.isArray(context)) {
19
21
  return {};
@@ -2,6 +2,8 @@ export const getDefaultTrackEventConfig = () => ({
2
2
  eventType: 'track',
3
3
  tags: ['atlaskit']
4
4
  });
5
+
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
7
  export const getAttributesFromContexts = context => {
6
8
  if (!context || !Array.isArray(context)) {
7
9
  return {};
@@ -7,6 +7,8 @@ export var getDefaultTrackEventConfig = function getDefaultTrackEventConfig() {
7
7
  tags: ['atlaskit']
8
8
  };
9
9
  };
10
+
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
12
  export var getAttributesFromContexts = function getAttributesFromContexts(context) {
11
13
  if (!context || !Array.isArray(context)) {
12
14
  return {};
@@ -10,12 +10,59 @@
10
10
  * (see other files in this directory for the template)
11
11
  */
12
12
  import type { VersionedAgentAttributes } from '../../common/types';
13
+ type FieldAttributes = {
14
+ field: 'deepResearch';
15
+ isDeepResearchEnabled: boolean;
16
+ } | {
17
+ field: 'webSearch';
18
+ isWebSearchEnabled: boolean;
19
+ } | {
20
+ field: 'agenticSkills';
21
+ skillCount: number;
22
+ } | {
23
+ field: 'tools' | 'actions';
24
+ toolsCount: number;
25
+ } | {
26
+ field: 'actionsAndMcpServers';
27
+ toolsCount: number;
28
+ mcpServersCount: number;
29
+ mcpToolsCount: number;
30
+ } | {
31
+ field: 'knowledgeSources';
32
+ knowledgeSourcesCount: number;
33
+ } | {
34
+ field: 'knowledgeScope';
35
+ isKnowledgeEnabled: boolean;
36
+ } | {
37
+ field: 'name';
38
+ } | {
39
+ field: 'description';
40
+ } | {
41
+ field: 'instructions';
42
+ } | {
43
+ field: 'behaviour';
44
+ } | {
45
+ field: 'invocationDescription';
46
+ } | {
47
+ field: 'authoringTeam';
48
+ } | {
49
+ field: 'authoringTeamId';
50
+ } | {
51
+ field: 'creatorId';
52
+ } | {
53
+ field: 'isActive';
54
+ } | {
55
+ field: 'isDefault';
56
+ } | {
57
+ field: 'responseStrategy';
58
+ } | {
59
+ field: 'executionConfig';
60
+ };
13
61
  export type EditingEventPayload = {
14
62
  actionSubject: 'rovoAgent';
15
63
  action: 'updated';
16
64
  attributes: VersionedAgentAttributes & {
17
65
  agentType?: string;
18
- field: string;
19
66
  /**
20
67
  * Identifies the subagent (formerly "scenario") whose configuration was updated.
21
68
  * Pass the scenario/subagent id when the analytics event is fired at the
@@ -23,5 +70,6 @@ export type EditingEventPayload = {
23
70
  * level (i.e. not scoped to any specific subagent).
24
71
  */
25
72
  subagentId: string | null;
26
- };
73
+ } & FieldAttributes;
27
74
  };
75
+ export {};
@@ -10,12 +10,59 @@
10
10
  * (see other files in this directory for the template)
11
11
  */
12
12
  import type { VersionedAgentAttributes } from '../../common/types';
13
+ type FieldAttributes = {
14
+ field: 'deepResearch';
15
+ isDeepResearchEnabled: boolean;
16
+ } | {
17
+ field: 'webSearch';
18
+ isWebSearchEnabled: boolean;
19
+ } | {
20
+ field: 'agenticSkills';
21
+ skillCount: number;
22
+ } | {
23
+ field: 'tools' | 'actions';
24
+ toolsCount: number;
25
+ } | {
26
+ field: 'actionsAndMcpServers';
27
+ toolsCount: number;
28
+ mcpServersCount: number;
29
+ mcpToolsCount: number;
30
+ } | {
31
+ field: 'knowledgeSources';
32
+ knowledgeSourcesCount: number;
33
+ } | {
34
+ field: 'knowledgeScope';
35
+ isKnowledgeEnabled: boolean;
36
+ } | {
37
+ field: 'name';
38
+ } | {
39
+ field: 'description';
40
+ } | {
41
+ field: 'instructions';
42
+ } | {
43
+ field: 'behaviour';
44
+ } | {
45
+ field: 'invocationDescription';
46
+ } | {
47
+ field: 'authoringTeam';
48
+ } | {
49
+ field: 'authoringTeamId';
50
+ } | {
51
+ field: 'creatorId';
52
+ } | {
53
+ field: 'isActive';
54
+ } | {
55
+ field: 'isDefault';
56
+ } | {
57
+ field: 'responseStrategy';
58
+ } | {
59
+ field: 'executionConfig';
60
+ };
13
61
  export type EditingEventPayload = {
14
62
  actionSubject: 'rovoAgent';
15
63
  action: 'updated';
16
64
  attributes: VersionedAgentAttributes & {
17
65
  agentType?: string;
18
- field: string;
19
66
  /**
20
67
  * Identifies the subagent (formerly "scenario") whose configuration was updated.
21
68
  * Pass the scenario/subagent id when the analytics event is fired at the
@@ -23,5 +70,6 @@ export type EditingEventPayload = {
23
70
  * level (i.e. not scoped to any specific subagent).
24
71
  */
25
72
  subagentId: string | null;
26
- };
73
+ } & FieldAttributes;
27
74
  };
75
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-analytics",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "Rovo Agents analytics",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
6
6
  "atlassian": {