@atlaskit/rovo-agent-analytics 1.4.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 +16 -0
- package/dist/cjs/actions/groups/subagent-interactions.js +5 -0
- package/dist/es2019/actions/groups/subagent-interactions.js +1 -0
- package/dist/esm/actions/groups/subagent-interactions.js +1 -0
- package/dist/types/actions/groups/agent-interactions.d.ts +8 -0
- package/dist/types/actions/groups/subagent-interactions.d.ts +39 -0
- package/dist/types/actions/groups/tools.d.ts +2 -1
- package/dist/types/common/types.d.ts +2 -1
- package/dist/types-ts4.5/actions/groups/agent-interactions.d.ts +8 -0
- package/dist/types-ts4.5/actions/groups/subagent-interactions.d.ts +39 -0
- package/dist/types-ts4.5/actions/groups/tools.d.ts +2 -1
- package/dist/types-ts4.5/common/types.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
11
|
+
## 1.5.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`d1b7d4ba4fd6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d1b7d4ba4fd6f) -
|
|
16
|
+
Implement
|
|
17
|
+
https://hello.atlassian.net/wiki/spaces/~598965687/pages/6881328891/Tools+attributes+analytics+spec
|
|
18
|
+
|
|
3
19
|
## 1.4.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
};
|
|
@@ -13,7 +13,8 @@ import type { BaseAgentAnalyticsAttributes } from '../../common/types';
|
|
|
13
13
|
type ToolsExecutionAttributesBase = BaseAgentAnalyticsAttributes & {
|
|
14
14
|
tools: {
|
|
15
15
|
toolId: string;
|
|
16
|
-
|
|
16
|
+
toolKey?: string;
|
|
17
|
+
toolDefinitionSource: string | null;
|
|
17
18
|
resolutionType: string;
|
|
18
19
|
}[];
|
|
19
20
|
singleInstrumentationId: string | undefined;
|
|
@@ -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
|
+
};
|
|
@@ -13,7 +13,8 @@ import type { BaseAgentAnalyticsAttributes } from '../../common/types';
|
|
|
13
13
|
type ToolsExecutionAttributesBase = BaseAgentAnalyticsAttributes & {
|
|
14
14
|
tools: {
|
|
15
15
|
toolId: string;
|
|
16
|
-
|
|
16
|
+
toolKey?: string;
|
|
17
|
+
toolDefinitionSource: string | null;
|
|
17
18
|
resolutionType: string;
|
|
18
19
|
}[];
|
|
19
20
|
singleInstrumentationId: string | undefined;
|
|
@@ -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;
|