@atlaskit/rovo-agent-analytics 1.5.0 → 1.6.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,13 @@
1
1
  # @atlaskit/rovo-agent-analytics
2
2
 
3
+ ## 1.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`1382e455b2661`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1382e455b2661) -
8
+ Add subagent analytics tracking events for create, delete, edit tools and tool configuration
9
+ actions
10
+
3
11
  ## 1.5.0
4
12
 
5
13
  ### Minor Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -52,4 +52,12 @@ export type AgentInteractionsEventPayload = {
52
52
  actionSubject: 'rovoAgent';
53
53
  action: 'unverify';
54
54
  attributes: BaseAgentAnalyticsAttributes;
55
+ } | {
56
+ actionSubject: 'rovoAgent';
57
+ action: 'editTools';
58
+ attributes: BaseAgentAnalyticsAttributes;
59
+ } | {
60
+ actionSubject: 'rovoAgent';
61
+ action: 'editToolConfiguration';
62
+ attributes: BaseAgentAnalyticsAttributes;
55
63
  };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Action Group: agentInteractions
3
+ *
4
+ * User-initiated interactions with an agent — typically from the overflow menu ("...")
5
+ * or agent profile surfaces (viewing, editing, deleting, duplicating, starring, sharing, verifying).
6
+ *
7
+ * NOTE: This is about UI interactions, not backend "actions" (which are being replaced by "tools").
8
+ *
9
+ * ## Adding a new action
10
+ * 1. Add a new variant to the `AgentInteractionsEventPayload` union type below with a data-portal link
11
+ * 2. If this action doesn't fit user interactions, create a new group file instead
12
+ * (see other files in this directory for the template)
13
+ */
14
+ import type { BaseAgentAnalyticsAttributes } from '../../common/types';
15
+ /**
16
+ * Discriminated union payload type for agent interaction events.
17
+ * Use with `trackAgentEvent()`.
18
+ */
19
+ export type SubagentInteractionsEventPayload = {
20
+ actionSubject: 'rovoAgent';
21
+ action: 'subagentCreate';
22
+ attributes: BaseAgentAnalyticsAttributes;
23
+ } | {
24
+ actionSubject: 'rovoAgent';
25
+ action: 'subagentEdit';
26
+ attributes: BaseAgentAnalyticsAttributes;
27
+ } | {
28
+ actionSubject: 'rovoAgent';
29
+ action: 'subagentDelete';
30
+ attributes: BaseAgentAnalyticsAttributes;
31
+ } | {
32
+ actionSubject: 'rovoAgent';
33
+ action: 'subagentEditTools';
34
+ attributes: BaseAgentAnalyticsAttributes;
35
+ } | {
36
+ actionSubject: 'rovoAgent';
37
+ action: 'subagentEditToolConfiguration';
38
+ attributes: BaseAgentAnalyticsAttributes;
39
+ };
@@ -3,6 +3,7 @@ import type { DebugEventPayload } from '../actions/groups/debug';
3
3
  import type { EditingEventPayload } from '../actions/groups/editing';
4
4
  import type { EvaluationEventPayload } from '../actions/groups/evaluation';
5
5
  import type { InsightsEventPayload } from '../actions/groups/insights';
6
+ import type { SubagentInteractionsEventPayload } from '../actions/groups/subagent-interactions';
6
7
  import type { ToolsEventPayload } from '../actions/groups/tools';
7
8
  export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
8
9
  export type BaseAgentAnalyticsAttributes = {
@@ -49,4 +50,4 @@ export type ErrorEventPayload = {
49
50
  * Union of all event payload types.
50
51
  * Use with `trackAgentEvent()` for typed event tracking.
51
52
  */
52
- export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
53
+ export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | SubagentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
@@ -52,4 +52,12 @@ export type AgentInteractionsEventPayload = {
52
52
  actionSubject: 'rovoAgent';
53
53
  action: 'unverify';
54
54
  attributes: BaseAgentAnalyticsAttributes;
55
+ } | {
56
+ actionSubject: 'rovoAgent';
57
+ action: 'editTools';
58
+ attributes: BaseAgentAnalyticsAttributes;
59
+ } | {
60
+ actionSubject: 'rovoAgent';
61
+ action: 'editToolConfiguration';
62
+ attributes: BaseAgentAnalyticsAttributes;
55
63
  };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Action Group: agentInteractions
3
+ *
4
+ * User-initiated interactions with an agent — typically from the overflow menu ("...")
5
+ * or agent profile surfaces (viewing, editing, deleting, duplicating, starring, sharing, verifying).
6
+ *
7
+ * NOTE: This is about UI interactions, not backend "actions" (which are being replaced by "tools").
8
+ *
9
+ * ## Adding a new action
10
+ * 1. Add a new variant to the `AgentInteractionsEventPayload` union type below with a data-portal link
11
+ * 2. If this action doesn't fit user interactions, create a new group file instead
12
+ * (see other files in this directory for the template)
13
+ */
14
+ import type { BaseAgentAnalyticsAttributes } from '../../common/types';
15
+ /**
16
+ * Discriminated union payload type for agent interaction events.
17
+ * Use with `trackAgentEvent()`.
18
+ */
19
+ export type SubagentInteractionsEventPayload = {
20
+ actionSubject: 'rovoAgent';
21
+ action: 'subagentCreate';
22
+ attributes: BaseAgentAnalyticsAttributes;
23
+ } | {
24
+ actionSubject: 'rovoAgent';
25
+ action: 'subagentEdit';
26
+ attributes: BaseAgentAnalyticsAttributes;
27
+ } | {
28
+ actionSubject: 'rovoAgent';
29
+ action: 'subagentDelete';
30
+ attributes: BaseAgentAnalyticsAttributes;
31
+ } | {
32
+ actionSubject: 'rovoAgent';
33
+ action: 'subagentEditTools';
34
+ attributes: BaseAgentAnalyticsAttributes;
35
+ } | {
36
+ actionSubject: 'rovoAgent';
37
+ action: 'subagentEditToolConfiguration';
38
+ attributes: BaseAgentAnalyticsAttributes;
39
+ };
@@ -3,6 +3,7 @@ import type { DebugEventPayload } from '../actions/groups/debug';
3
3
  import type { EditingEventPayload } from '../actions/groups/editing';
4
4
  import type { EvaluationEventPayload } from '../actions/groups/evaluation';
5
5
  import type { InsightsEventPayload } from '../actions/groups/insights';
6
+ import type { SubagentInteractionsEventPayload } from '../actions/groups/subagent-interactions';
6
7
  import type { ToolsEventPayload } from '../actions/groups/tools';
7
8
  export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
8
9
  export type BaseAgentAnalyticsAttributes = {
@@ -49,4 +50,4 @@ export type ErrorEventPayload = {
49
50
  * Union of all event payload types.
50
51
  * Use with `trackAgentEvent()` for typed event tracking.
51
52
  */
52
- export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
53
+ export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | SubagentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-analytics",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Rovo Agents analytics",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
6
6
  "atlassian": {