@atlaskit/rovo-agent-analytics 1.10.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,16 @@
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
+
3
14
  ## 1.10.0
4
15
 
5
16
  ### Minor Changes
@@ -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.10.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": {