@atlaskit/rovo-agent-analytics 0.16.0 → 0.18.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,21 @@
1
1
  # @atlaskit/rovo-agent-analytics
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c2adfceefe4d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2adfceefe4d2) -
8
+ Add scenarioId to chat; add more guardrail for rovo agent analytics; add single instrumentation id
9
+ for rovoAgent toolsExecutionResult; add trackAIMauAction
10
+
11
+ ## 0.17.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`0f9bf8c0ac300`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f9bf8c0ac300) -
16
+ Add examplePromptKey attribute in analytics context for when example prompt is used. Add SA_DRAFT
17
+ event for rovo agent analytics"
18
+
3
19
  ## 0.16.0
4
20
 
5
21
  ### Minor Changes
@@ -37,6 +37,8 @@ var AgentCreateActions = exports.AgentCreateActions = /*#__PURE__*/function (Age
37
37
  AgentCreateActions["BROWSE_CLICK_NO_SKILLS_MODAL"] = "browseClickNoSkillsModal";
38
38
  /* Discard no skills modal - https://data-portal.internal.atlassian.com/analytics/registry/97437 */
39
39
  AgentCreateActions["DISCARD_NO_SKILLS_MODAL"] = "discardNoSkillsModal";
40
+ /* Draft created from solution architect plan card - https://data-portal.internal.atlassian.com/analytics/registry/97924 */
41
+ AgentCreateActions["SA_DRAFT"] = "saDraft";
40
42
  return AgentCreateActions;
41
43
  }({});
42
44
  var globalEventConfig = (0, _utils.getDefaultTrackEventConfig)();
@@ -26,6 +26,8 @@ export let AgentCreateActions = /*#__PURE__*/function (AgentCreateActions) {
26
26
  AgentCreateActions["BROWSE_CLICK_NO_SKILLS_MODAL"] = "browseClickNoSkillsModal";
27
27
  /* Discard no skills modal - https://data-portal.internal.atlassian.com/analytics/registry/97437 */
28
28
  AgentCreateActions["DISCARD_NO_SKILLS_MODAL"] = "discardNoSkillsModal";
29
+ /* Draft created from solution architect plan card - https://data-portal.internal.atlassian.com/analytics/registry/97924 */
30
+ AgentCreateActions["SA_DRAFT"] = "saDraft";
29
31
  return AgentCreateActions;
30
32
  }({});
31
33
  const globalEventConfig = getDefaultTrackEventConfig();
@@ -30,6 +30,8 @@ export var AgentCreateActions = /*#__PURE__*/function (AgentCreateActions) {
30
30
  AgentCreateActions["BROWSE_CLICK_NO_SKILLS_MODAL"] = "browseClickNoSkillsModal";
31
31
  /* Discard no skills modal - https://data-portal.internal.atlassian.com/analytics/registry/97437 */
32
32
  AgentCreateActions["DISCARD_NO_SKILLS_MODAL"] = "discardNoSkillsModal";
33
+ /* Draft created from solution architect plan card - https://data-portal.internal.atlassian.com/analytics/registry/97924 */
34
+ AgentCreateActions["SA_DRAFT"] = "saDraft";
33
35
  return AgentCreateActions;
34
36
  }({});
35
37
  var globalEventConfig = getDefaultTrackEventConfig();
@@ -1,5 +1,5 @@
1
1
  import type { BaseAgentAnalyticsAttributes, RemainingRequired } from '../common/types';
2
- import type { AgentToolActions, ToolsExecutionAttributes } from './tool-actions';
2
+ import type { AgentToolActions, ToolsExecutionAttributes, ToolsExecutionResultAttributes } from './tool-actions';
3
3
  export declare enum AgentDebugActions {
4
4
  VIEW = "debugView",
5
5
  COPY_ALL = "debugCopyAll",
@@ -42,7 +42,7 @@ type ActionAttributes = {
42
42
  [AgentDebugActions.VIEW]: EmptyAttributes;
43
43
  [AgentToolActions.TOOLS_EXECUTION_CONFIRMED]: ToolsExecutionAttributes;
44
44
  [AgentToolActions.TOOLS_EXECUTION_STREAM_STOPPED]: ToolsExecutionAttributes;
45
- [AgentToolActions.TOOLS_EXECUTION_RESULT_VIEWED]: ToolsExecutionAttributes;
45
+ [AgentToolActions.TOOLS_EXECUTION_RESULT_VIEWED]: ToolsExecutionResultAttributes;
46
46
  [AgentToolActions.TOOLS_EXECUTION_RESULT_ERROR]: ToolsExecutionAttributes;
47
47
  };
48
48
  export declare const useRovoAgentActionAnalytics: <T extends {}>(commonAttributes: T) => {
@@ -11,4 +11,8 @@ export type ToolsExecutionAttributes = BaseAgentAnalyticsAttributes & {
11
11
  toolSource: string;
12
12
  resolutionType: string;
13
13
  }[];
14
+ singleInstrumentationId: string | undefined;
15
+ };
16
+ export type ToolsExecutionResultAttributes = ToolsExecutionAttributes & {
17
+ scenarioId: string | null | undefined;
14
18
  };
@@ -12,7 +12,8 @@ export declare enum AgentCreateActions {
12
12
  DISCARD = "createDiscard",
13
13
  SHOW_NO_SKILLS_MODAL = "showNoSkillsModal",
14
14
  BROWSE_CLICK_NO_SKILLS_MODAL = "browseClickNoSkillsModal",
15
- DISCARD_NO_SKILLS_MODAL = "discardNoSkillsModal"
15
+ DISCARD_NO_SKILLS_MODAL = "discardNoSkillsModal",
16
+ SA_DRAFT = "saDraft"
16
17
  }
17
18
  export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [string | null, {
18
19
  readonly trackCreateSession: (action: Omit<AgentCreateActions, AgentCreateActions.START>, attributes?: CommonAnalyticsAttributes) => void;
@@ -1,5 +1,5 @@
1
1
  import type { BaseAgentAnalyticsAttributes, RemainingRequired } from '../common/types';
2
- import type { AgentToolActions, ToolsExecutionAttributes } from './tool-actions';
2
+ import type { AgentToolActions, ToolsExecutionAttributes, ToolsExecutionResultAttributes } from './tool-actions';
3
3
  export declare enum AgentDebugActions {
4
4
  VIEW = "debugView",
5
5
  COPY_ALL = "debugCopyAll",
@@ -42,7 +42,7 @@ type ActionAttributes = {
42
42
  [AgentDebugActions.VIEW]: EmptyAttributes;
43
43
  [AgentToolActions.TOOLS_EXECUTION_CONFIRMED]: ToolsExecutionAttributes;
44
44
  [AgentToolActions.TOOLS_EXECUTION_STREAM_STOPPED]: ToolsExecutionAttributes;
45
- [AgentToolActions.TOOLS_EXECUTION_RESULT_VIEWED]: ToolsExecutionAttributes;
45
+ [AgentToolActions.TOOLS_EXECUTION_RESULT_VIEWED]: ToolsExecutionResultAttributes;
46
46
  [AgentToolActions.TOOLS_EXECUTION_RESULT_ERROR]: ToolsExecutionAttributes;
47
47
  };
48
48
  export declare const useRovoAgentActionAnalytics: <T extends {}>(commonAttributes: T) => {
@@ -11,4 +11,8 @@ export type ToolsExecutionAttributes = BaseAgentAnalyticsAttributes & {
11
11
  toolSource: string;
12
12
  resolutionType: string;
13
13
  }[];
14
+ singleInstrumentationId: string | undefined;
15
+ };
16
+ export type ToolsExecutionResultAttributes = ToolsExecutionAttributes & {
17
+ scenarioId: string | null | undefined;
14
18
  };
@@ -12,7 +12,8 @@ export declare enum AgentCreateActions {
12
12
  DISCARD = "createDiscard",
13
13
  SHOW_NO_SKILLS_MODAL = "showNoSkillsModal",
14
14
  BROWSE_CLICK_NO_SKILLS_MODAL = "browseClickNoSkillsModal",
15
- DISCARD_NO_SKILLS_MODAL = "discardNoSkillsModal"
15
+ DISCARD_NO_SKILLS_MODAL = "discardNoSkillsModal",
16
+ SA_DRAFT = "saDraft"
16
17
  }
17
18
  export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [
18
19
  string | null,
package/package.json CHANGED
@@ -41,9 +41,6 @@
41
41
  },
42
42
  "techstack": {
43
43
  "@atlassian/frontend": {
44
- "code-structure": [
45
- "tangerine-next"
46
- ],
47
44
  "import-structure": [
48
45
  "atlassian-conventions"
49
46
  ],
@@ -77,13 +74,8 @@
77
74
  ]
78
75
  }
79
76
  },
80
- "techstackIgnore": {
81
- "stricter": [
82
- "@atlassian/tangerine/project-structure"
83
- ]
84
- },
85
77
  "name": "@atlaskit/rovo-agent-analytics",
86
- "version": "0.16.0",
78
+ "version": "0.18.0",
87
79
  "description": "Rovo Agents analytics",
88
80
  "author": "Atlassian Pty Ltd",
89
81
  "license": "Apache-2.0",