@atlaskit/rovo-agent-analytics 0.20.0 → 1.0.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 +8 -0
- package/README.md +44 -29
- package/dist/cjs/actions/groups/agent-interactions.js +1 -51
- package/dist/cjs/actions/groups/debug.js +1 -42
- package/dist/cjs/actions/groups/editing.js +1 -28
- package/dist/cjs/actions/groups/tools.js +1 -36
- package/dist/cjs/actions/index.js +2 -43
- package/dist/cjs/common/types.js +5 -0
- package/dist/cjs/create/index.js +29 -13
- package/dist/es2019/actions/groups/agent-interactions.js +1 -50
- package/dist/es2019/actions/groups/debug.js +0 -37
- package/dist/es2019/actions/groups/editing.js +1 -27
- package/dist/es2019/actions/groups/tools.js +1 -37
- package/dist/es2019/actions/index.js +1 -47
- package/dist/es2019/common/types.js +5 -0
- package/dist/es2019/create/index.js +23 -11
- package/dist/esm/actions/groups/agent-interactions.js +1 -50
- package/dist/esm/actions/groups/debug.js +0 -37
- package/dist/esm/actions/groups/editing.js +1 -27
- package/dist/esm/actions/groups/tools.js +1 -37
- package/dist/esm/actions/index.js +1 -43
- package/dist/esm/common/types.js +5 -0
- package/dist/esm/create/index.js +24 -9
- package/dist/types/actions/groups/agent-interactions.d.ts +0 -26
- package/dist/types/actions/groups/debug.d.ts +0 -21
- package/dist/types/actions/groups/editing.d.ts +0 -13
- package/dist/types/actions/groups/tools.d.ts +0 -29
- package/dist/types/actions/index.d.ts +1 -20
- package/dist/types/common/types.d.ts +17 -5
- package/dist/types/create/index.d.ts +20 -17
- package/dist/types-ts4.5/actions/groups/agent-interactions.d.ts +0 -26
- package/dist/types-ts4.5/actions/groups/debug.d.ts +0 -21
- package/dist/types-ts4.5/actions/groups/editing.d.ts +0 -13
- package/dist/types-ts4.5/actions/groups/tools.d.ts +0 -29
- package/dist/types-ts4.5/actions/index.d.ts +1 -20
- package/dist/types-ts4.5/common/types.d.ts +17 -5
- package/dist/types-ts4.5/create/index.d.ts +20 -17
- package/package.json +1 -1
- package/actions/add-tools-prompt/package.json +0 -17
- package/actions/agent-interactions/package.json +0 -17
- package/actions/create-flow/package.json +0 -17
- package/actions/debug/package.json +0 -17
- package/actions/editing/package.json +0 -17
- package/actions/evaluation/package.json +0 -17
- package/actions/tool-actions/package.json +0 -17
- package/dist/cjs/actions/groups/add-tools-prompt.js +0 -43
- package/dist/cjs/actions/groups/create-flow.js +0 -51
- package/dist/cjs/actions/registry.js +0 -26
- package/dist/es2019/actions/groups/add-tools-prompt.js +0 -37
- package/dist/es2019/actions/groups/create-flow.js +0 -45
- package/dist/es2019/actions/registry.js +0 -20
- package/dist/esm/actions/groups/add-tools-prompt.js +0 -37
- package/dist/esm/actions/groups/create-flow.js +0 -45
- package/dist/esm/actions/registry.js +0 -20
- package/dist/types/actions/groups/add-tools-prompt.d.ts +0 -39
- package/dist/types/actions/groups/create-flow.d.ts +0 -65
- package/dist/types/actions/registry.d.ts +0 -23
- package/dist/types-ts4.5/actions/groups/add-tools-prompt.d.ts +0 -39
- package/dist/types-ts4.5/actions/groups/create-flow.d.ts +0 -65
- package/dist/types-ts4.5/actions/registry.d.ts +0 -23
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Union type of all valid create agent flow actions.
|
|
3
|
+
* Includes both CreateFlow and AddToolsPrompt actions.
|
|
4
|
+
*
|
|
5
|
+
* Data portal registry links:
|
|
6
|
+
* - createFlowStart: https://data-portal.internal.atlassian.com/analytics/registry/97089
|
|
7
|
+
* - createFlowSkipNL: https://data-portal.internal.atlassian.com/analytics/registry/97127
|
|
8
|
+
* - createFlowReviewNL: https://data-portal.internal.atlassian.com/analytics/registry/97124
|
|
9
|
+
* - createFlowActivate: https://data-portal.internal.atlassian.com/analytics/registry/97123
|
|
10
|
+
* - createFlowRestart: https://data-portal.internal.atlassian.com/analytics/registry/97131
|
|
11
|
+
* - createFlowError: https://data-portal.internal.atlassian.com/analytics/registry/97132
|
|
12
|
+
* - createLandInStudio: https://data-portal.internal.atlassian.com/analytics/registry/97136
|
|
13
|
+
* - createDiscard: https://data-portal.internal.atlassian.com/analytics/registry/97137
|
|
14
|
+
* - saDraft: https://data-portal.internal.atlassian.com/analytics/registry/97924
|
|
15
|
+
* - addToolsPromptShown: https://data-portal.internal.atlassian.com/analytics/registry/98106
|
|
16
|
+
* - addToolsPromptBrowse: https://data-portal.internal.atlassian.com/analytics/registry/98107
|
|
17
|
+
* - addToolsPromptDismiss: https://data-portal.internal.atlassian.com/analytics/registry/98108
|
|
18
|
+
*/
|
|
19
|
+
type AgentCreateAction = 'createFlowStart' | 'createFlowSkipNL' | 'createFlowReviewNL' | 'createFlowActivate' | 'createFlowRestart' | 'createFlowError' | 'createLandInStudio' | 'createDiscard' | 'saDraft' | 'addToolsPromptShown' | 'addToolsPromptBrowse' | 'addToolsPromptDismiss';
|
|
17
20
|
type CommonAnalyticsAttributes = {
|
|
18
21
|
touchPoint?: string;
|
|
19
22
|
} & Record<string, any>;
|
|
20
23
|
export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [string | null, {
|
|
21
|
-
readonly trackCreateSession: (action:
|
|
24
|
+
readonly trackCreateSession: (action: AgentCreateAction, attributes?: CommonAnalyticsAttributes) => void;
|
|
22
25
|
readonly trackCreateSessionStart: (attributes?: CommonAnalyticsAttributes) => void;
|
|
23
26
|
readonly trackCreateSessionError: (error: Error, attributes?: CommonAnalyticsAttributes) => void;
|
|
24
27
|
readonly refreshCSID: () => `${string}-${string}-${string}-${string}-${string}`;
|
|
@@ -53,29 +53,3 @@ export type AgentInteractionsEventPayload = {
|
|
|
53
53
|
action: 'unverify';
|
|
54
54
|
attributes: BaseAgentAnalyticsAttributes;
|
|
55
55
|
};
|
|
56
|
-
/** @deprecated Use AgentInteractionsEventPayload with trackAgentEvent() instead */
|
|
57
|
-
export declare const ACTION_GROUP: "agentInteractions";
|
|
58
|
-
/** @deprecated Use AgentInteractionsEventPayload with trackAgentEvent() instead */
|
|
59
|
-
export declare enum AgentInteractionActions {
|
|
60
|
-
VIEW = "view",
|
|
61
|
-
EDIT = "edit",
|
|
62
|
-
COPY_LINK = "copyLink",
|
|
63
|
-
DELETE = "delete",
|
|
64
|
-
DUPLICATE = "duplicate",
|
|
65
|
-
STAR = "star",
|
|
66
|
-
CHAT = "chat",
|
|
67
|
-
VERIFY = "verify",
|
|
68
|
-
UNVERIFY = "unverify"
|
|
69
|
-
}
|
|
70
|
-
/** @deprecated Use AgentInteractionsEventPayload with trackAgentEvent() instead */
|
|
71
|
-
export type AgentInteractionAttributes = {
|
|
72
|
-
[AgentInteractionActions.VIEW]: BaseAgentAnalyticsAttributes;
|
|
73
|
-
[AgentInteractionActions.EDIT]: BaseAgentAnalyticsAttributes;
|
|
74
|
-
[AgentInteractionActions.COPY_LINK]: BaseAgentAnalyticsAttributes;
|
|
75
|
-
[AgentInteractionActions.DELETE]: BaseAgentAnalyticsAttributes;
|
|
76
|
-
[AgentInteractionActions.DUPLICATE]: BaseAgentAnalyticsAttributes;
|
|
77
|
-
[AgentInteractionActions.STAR]: BaseAgentAnalyticsAttributes;
|
|
78
|
-
[AgentInteractionActions.CHAT]: BaseAgentAnalyticsAttributes;
|
|
79
|
-
[AgentInteractionActions.VERIFY]: BaseAgentAnalyticsAttributes;
|
|
80
|
-
[AgentInteractionActions.UNVERIFY]: BaseAgentAnalyticsAttributes;
|
|
81
|
-
};
|
|
@@ -32,24 +32,3 @@ export type DebugEventPayload = {
|
|
|
32
32
|
isExpanded: boolean;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
/** @deprecated Use DebugEventPayload with trackAgentEvent() instead */
|
|
36
|
-
export declare const ACTION_GROUP: "debug";
|
|
37
|
-
/** @deprecated Use DebugEventPayload with trackAgentEvent() instead */
|
|
38
|
-
export declare enum AgentDebugActions {
|
|
39
|
-
VIEW = "debugView",
|
|
40
|
-
COPY_ALL = "debugCopyAll",
|
|
41
|
-
COPY = "debugCopy",
|
|
42
|
-
TOGGLE_SKILL_INFO = "debugToggleSkillInfo"
|
|
43
|
-
}
|
|
44
|
-
type EmptyAttributes = {};
|
|
45
|
-
/** @deprecated Use DebugEventPayload with trackAgentEvent() instead */
|
|
46
|
-
export type DebugActionAttributes = {
|
|
47
|
-
[AgentDebugActions.COPY_ALL]: EmptyAttributes;
|
|
48
|
-
[AgentDebugActions.COPY]: EmptyAttributes;
|
|
49
|
-
[AgentDebugActions.TOGGLE_SKILL_INFO]: {
|
|
50
|
-
toolId: string;
|
|
51
|
-
isExpanded: boolean;
|
|
52
|
-
};
|
|
53
|
-
[AgentDebugActions.VIEW]: EmptyAttributes;
|
|
54
|
-
};
|
|
55
|
-
export {};
|
|
@@ -18,16 +18,3 @@ export type EditingEventPayload = {
|
|
|
18
18
|
field: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
/** @deprecated Use EditingEventPayload with trackAgentEvent() instead */
|
|
22
|
-
export declare const ACTION_GROUP: "editing";
|
|
23
|
-
/** @deprecated Use EditingEventPayload with trackAgentEvent() instead */
|
|
24
|
-
export declare enum AgentEditingActions {
|
|
25
|
-
UPDATED = "updated"
|
|
26
|
-
}
|
|
27
|
-
/** @deprecated Use EditingEventPayload with trackAgentEvent() instead */
|
|
28
|
-
export type EditingActionAttributes = {
|
|
29
|
-
[AgentEditingActions.UPDATED]: BaseAgentAnalyticsAttributes & {
|
|
30
|
-
agentType: string;
|
|
31
|
-
field: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -37,33 +37,4 @@ export type ToolsEventPayload = {
|
|
|
37
37
|
action: 'toolsExecutionResultError';
|
|
38
38
|
attributes: ToolsExecutionAttributesBase;
|
|
39
39
|
};
|
|
40
|
-
/** @deprecated Use ToolsEventPayload with trackAgentEvent() instead */
|
|
41
|
-
export declare const ACTION_GROUP: "tools";
|
|
42
|
-
/** @deprecated Use ToolsEventPayload with trackAgentEvent() instead */
|
|
43
|
-
export declare enum AgentToolActions {
|
|
44
|
-
TOOLS_EXECUTION_CONFIRMED = "toolsExecutionConfirmed",
|
|
45
|
-
TOOLS_EXECUTION_STREAM_STOPPED = "toolsExecutionStreamStopped",
|
|
46
|
-
TOOLS_EXECUTION_RESULT_VIEWED = "toolsExecutionResultViewed",
|
|
47
|
-
TOOLS_EXECUTION_RESULT_ERROR = "toolsExecutionResultError"
|
|
48
|
-
}
|
|
49
|
-
/** @deprecated Use ToolsEventPayload with trackAgentEvent() instead */
|
|
50
|
-
export type ToolsExecutionAttributes = BaseAgentAnalyticsAttributes & {
|
|
51
|
-
tools: {
|
|
52
|
-
toolId: string;
|
|
53
|
-
toolSource: string;
|
|
54
|
-
resolutionType: string;
|
|
55
|
-
}[];
|
|
56
|
-
singleInstrumentationId: string | undefined;
|
|
57
|
-
};
|
|
58
|
-
/** @deprecated Use ToolsEventPayload with trackAgentEvent() instead */
|
|
59
|
-
export type ToolsExecutionResultAttributes = ToolsExecutionAttributes & {
|
|
60
|
-
scenarioId: string | null | undefined;
|
|
61
|
-
};
|
|
62
|
-
/** @deprecated Use ToolsEventPayload with trackAgentEvent() instead */
|
|
63
|
-
export type ToolsActionAttributes = {
|
|
64
|
-
[AgentToolActions.TOOLS_EXECUTION_CONFIRMED]: ToolsExecutionAttributes;
|
|
65
|
-
[AgentToolActions.TOOLS_EXECUTION_STREAM_STOPPED]: ToolsExecutionAttributes;
|
|
66
|
-
[AgentToolActions.TOOLS_EXECUTION_RESULT_VIEWED]: ToolsExecutionResultAttributes;
|
|
67
|
-
[AgentToolActions.TOOLS_EXECUTION_RESULT_ERROR]: ToolsExecutionAttributes;
|
|
68
|
-
};
|
|
69
40
|
export {};
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
import { type EventPayload
|
|
2
|
-
import { AgentInteractionActions } from './groups/agent-interactions';
|
|
3
|
-
import { AgentDebugActions as AgentDebugActionsEnum } from './groups/debug';
|
|
4
|
-
import { AgentEditingActions } from './groups/editing';
|
|
5
|
-
import type { ActionAttributes } from './registry';
|
|
6
|
-
export declare const AgentCommonActions: {
|
|
7
|
-
readonly UPDATED: AgentEditingActions.UPDATED;
|
|
8
|
-
readonly VIEW: AgentInteractionActions.VIEW;
|
|
9
|
-
readonly EDIT: AgentInteractionActions.EDIT;
|
|
10
|
-
readonly COPY_LINK: AgentInteractionActions.COPY_LINK;
|
|
11
|
-
readonly DELETE: AgentInteractionActions.DELETE;
|
|
12
|
-
readonly DUPLICATE: AgentInteractionActions.DUPLICATE;
|
|
13
|
-
readonly STAR: AgentInteractionActions.STAR;
|
|
14
|
-
readonly CHAT: AgentInteractionActions.CHAT;
|
|
15
|
-
readonly VERIFY: AgentInteractionActions.VERIFY;
|
|
16
|
-
readonly UNVERIFY: AgentInteractionActions.UNVERIFY;
|
|
17
|
-
};
|
|
18
|
-
export declare const AgentDebugActions: typeof AgentDebugActionsEnum;
|
|
1
|
+
import { type EventPayload } from '../common/types';
|
|
19
2
|
export declare const useRovoAgentActionAnalytics: <T extends {}>(commonAttributes: T) => {
|
|
20
|
-
trackAgentAction: <A extends keyof ActionAttributes>(action: A, attributes: RemainingRequired<ActionAttributes[A], T>) => void;
|
|
21
3
|
trackAgentEvent: (payload: EventPayload) => void;
|
|
22
|
-
trackAgentActionError: <A extends keyof ActionAttributes>(action: A, error: Error, attributes?: RemainingRequired<ActionAttributes[A], T>) => void;
|
|
23
4
|
};
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
import type { AddToolsPromptEventPayload } from '../actions/groups/add-tools-prompt';
|
|
2
1
|
import type { AgentInteractionsEventPayload } from '../actions/groups/agent-interactions';
|
|
3
|
-
import type { CreateFlowEventPayload } from '../actions/groups/create-flow';
|
|
4
2
|
import type { DebugEventPayload } from '../actions/groups/debug';
|
|
5
3
|
import type { EditingEventPayload } from '../actions/groups/editing';
|
|
6
4
|
import type { EvaluationEventPayload } from '../actions/groups/evaluation';
|
|
7
5
|
import type { ToolsEventPayload } from '../actions/groups/tools';
|
|
8
6
|
export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
|
|
9
7
|
export type BaseAgentAnalyticsAttributes = {
|
|
10
|
-
touchPoint
|
|
11
|
-
agentId
|
|
8
|
+
touchPoint?: string;
|
|
9
|
+
agentId?: string;
|
|
12
10
|
};
|
|
13
11
|
/** Common library attribute injected into all events */
|
|
14
12
|
export declare const LIBRARY_ATTRIBUTE: "agents-analytics";
|
|
13
|
+
/**
|
|
14
|
+
* Generic error event payload type.
|
|
15
|
+
* Use with `trackAgentEvent()` to track error events.
|
|
16
|
+
*/
|
|
17
|
+
export type ErrorEventPayload = {
|
|
18
|
+
actionSubject: 'rovoAgentError';
|
|
19
|
+
action: string;
|
|
20
|
+
attributes: {
|
|
21
|
+
error: {
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
15
27
|
/**
|
|
16
28
|
* Union of all event payload types.
|
|
17
29
|
* Use with `trackAgentEvent()` for typed event tracking.
|
|
18
30
|
*/
|
|
19
|
-
export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload |
|
|
31
|
+
export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | ErrorEventPayload;
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Union type of all valid create agent flow actions.
|
|
3
|
+
* Includes both CreateFlow and AddToolsPrompt actions.
|
|
4
|
+
*
|
|
5
|
+
* Data portal registry links:
|
|
6
|
+
* - createFlowStart: https://data-portal.internal.atlassian.com/analytics/registry/97089
|
|
7
|
+
* - createFlowSkipNL: https://data-portal.internal.atlassian.com/analytics/registry/97127
|
|
8
|
+
* - createFlowReviewNL: https://data-portal.internal.atlassian.com/analytics/registry/97124
|
|
9
|
+
* - createFlowActivate: https://data-portal.internal.atlassian.com/analytics/registry/97123
|
|
10
|
+
* - createFlowRestart: https://data-portal.internal.atlassian.com/analytics/registry/97131
|
|
11
|
+
* - createFlowError: https://data-portal.internal.atlassian.com/analytics/registry/97132
|
|
12
|
+
* - createLandInStudio: https://data-portal.internal.atlassian.com/analytics/registry/97136
|
|
13
|
+
* - createDiscard: https://data-portal.internal.atlassian.com/analytics/registry/97137
|
|
14
|
+
* - saDraft: https://data-portal.internal.atlassian.com/analytics/registry/97924
|
|
15
|
+
* - addToolsPromptShown: https://data-portal.internal.atlassian.com/analytics/registry/98106
|
|
16
|
+
* - addToolsPromptBrowse: https://data-portal.internal.atlassian.com/analytics/registry/98107
|
|
17
|
+
* - addToolsPromptDismiss: https://data-portal.internal.atlassian.com/analytics/registry/98108
|
|
18
|
+
*/
|
|
19
|
+
type AgentCreateAction = 'createFlowStart' | 'createFlowSkipNL' | 'createFlowReviewNL' | 'createFlowActivate' | 'createFlowRestart' | 'createFlowError' | 'createLandInStudio' | 'createDiscard' | 'saDraft' | 'addToolsPromptShown' | 'addToolsPromptBrowse' | 'addToolsPromptDismiss';
|
|
17
20
|
type CommonAnalyticsAttributes = {
|
|
18
21
|
touchPoint?: string;
|
|
19
22
|
} & Record<string, any>;
|
|
20
23
|
export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [
|
|
21
24
|
string | null,
|
|
22
25
|
{
|
|
23
|
-
readonly trackCreateSession: (action:
|
|
26
|
+
readonly trackCreateSession: (action: AgentCreateAction, attributes?: CommonAnalyticsAttributes) => void;
|
|
24
27
|
readonly trackCreateSessionStart: (attributes?: CommonAnalyticsAttributes) => void;
|
|
25
28
|
readonly trackCreateSessionError: (error: Error, attributes?: CommonAnalyticsAttributes) => void;
|
|
26
29
|
readonly refreshCSID: () => `${string}-${string}-${string}-${string}-${string}`;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/rovo-agent-analytics/actions/add-tools-prompt",
|
|
3
|
-
"main": "../../dist/cjs/actions/groups/add-tools-prompt.js",
|
|
4
|
-
"module": "../../dist/esm/actions/groups/add-tools-prompt.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/actions/groups/add-tools-prompt.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/actions/groups/add-tools-prompt.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/actions/groups/add-tools-prompt.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/rovo-agent-analytics/actions/agent-interactions",
|
|
3
|
-
"main": "../../dist/cjs/actions/groups/agent-interactions.js",
|
|
4
|
-
"module": "../../dist/esm/actions/groups/agent-interactions.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/actions/groups/agent-interactions.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/actions/groups/agent-interactions.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/actions/groups/agent-interactions.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/rovo-agent-analytics/actions/create-flow",
|
|
3
|
-
"main": "../../dist/cjs/actions/groups/create-flow.js",
|
|
4
|
-
"module": "../../dist/esm/actions/groups/create-flow.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/actions/groups/create-flow.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/actions/groups/create-flow.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/actions/groups/create-flow.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/rovo-agent-analytics/actions/debug",
|
|
3
|
-
"main": "../../dist/cjs/actions/groups/debug.js",
|
|
4
|
-
"module": "../../dist/esm/actions/groups/debug.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/actions/groups/debug.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/actions/groups/debug.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/actions/groups/debug.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/rovo-agent-analytics/actions/editing",
|
|
3
|
-
"main": "../../dist/cjs/actions/groups/editing.js",
|
|
4
|
-
"module": "../../dist/esm/actions/groups/editing.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/actions/groups/editing.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/actions/groups/editing.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/actions/groups/editing.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/rovo-agent-analytics/actions/evaluation",
|
|
3
|
-
"main": "../../dist/cjs/actions/groups/evaluation.js",
|
|
4
|
-
"module": "../../dist/esm/actions/groups/evaluation.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/actions/groups/evaluation.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/actions/groups/evaluation.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/actions/groups/evaluation.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/rovo-agent-analytics/actions/tool-actions",
|
|
3
|
-
"main": "../../dist/cjs/actions/groups/tools.js",
|
|
4
|
-
"module": "../../dist/esm/actions/groups/tools.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/actions/groups/tools.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/actions/groups/tools.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/actions/groups/tools.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AddToolsPromptActions = exports.ACTION_GROUP = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Action Group: addToolsPrompt
|
|
9
|
-
*
|
|
10
|
-
* Add tools prompt modal — shown when a user tries to activate/publish an agent that has no tools.
|
|
11
|
-
* The user can browse tools or dismiss and proceed without them.
|
|
12
|
-
*
|
|
13
|
-
* This group is intentionally flow-agnostic so the action values stay stable
|
|
14
|
-
* regardless of whether the prompt fires from the create flow or a future publish flow.
|
|
15
|
-
*
|
|
16
|
-
* ## Adding a new action
|
|
17
|
-
* 1. Add a new variant to the `AddToolsPromptEventPayload` union type below with a data-portal link
|
|
18
|
-
* 2. If this action doesn't fit this group, consider creating a new group file instead
|
|
19
|
-
* (see other files in this directory for the template)
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Discriminated union payload type for add tools prompt events.
|
|
24
|
-
* Use with `trackAgentEvent()`.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
// ============================================================================
|
|
28
|
-
// BACKWARDS COMPAT (deprecated): Keep enum and attributes for trackAgentAction() consumers
|
|
29
|
-
// ============================================================================
|
|
30
|
-
|
|
31
|
-
/** @deprecated Use AddToolsPromptEventPayload with trackAgentEvent() instead */
|
|
32
|
-
var ACTION_GROUP = exports.ACTION_GROUP = 'addToolsPrompt';
|
|
33
|
-
|
|
34
|
-
/** @deprecated Use AddToolsPromptEventPayload with trackAgentEvent() instead */
|
|
35
|
-
var AddToolsPromptActions = exports.AddToolsPromptActions = /*#__PURE__*/function (AddToolsPromptActions) {
|
|
36
|
-
/* Add tools prompt shown (agent has no tools) - https://data-portal.internal.atlassian.com/analytics/registry/98106 */
|
|
37
|
-
AddToolsPromptActions["SHOWN"] = "addToolsPromptShown";
|
|
38
|
-
/* User clicked "Browse skills" on the add tools prompt - https://data-portal.internal.atlassian.com/analytics/registry/98107 */
|
|
39
|
-
AddToolsPromptActions["BROWSE"] = "addToolsPromptBrowse";
|
|
40
|
-
/* User dismissed the add tools prompt ("No thanks") and proceeded anyway - https://data-portal.internal.atlassian.com/analytics/registry/98108 */
|
|
41
|
-
AddToolsPromptActions["DISMISS"] = "addToolsPromptDismiss";
|
|
42
|
-
return AddToolsPromptActions;
|
|
43
|
-
}({});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CreateFlowActions = exports.ACTION_GROUP = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Action Group: createFlow
|
|
9
|
-
*
|
|
10
|
-
* Create agent funnel steps — from clicking "Create agent" through to activation or discard,
|
|
11
|
-
*
|
|
12
|
-
* ## Adding a new action
|
|
13
|
-
* 1. Add a new variant to the `CreateFlowEventPayload` union type below with a data-portal link
|
|
14
|
-
* 2. If this action doesn't fit this group, consider creating a new group file instead
|
|
15
|
-
* (see other files in this directory for the template)
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Discriminated union payload type for create flow events.
|
|
20
|
-
* Use with `trackAgentEvent()`.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
// ============================================================================
|
|
24
|
-
// BACKWARDS COMPAT (deprecated): Keep enum and attributes for trackAgentAction() consumers
|
|
25
|
-
// ============================================================================
|
|
26
|
-
|
|
27
|
-
/** @deprecated Use CreateFlowEventPayload with trackAgentEvent() instead */
|
|
28
|
-
var ACTION_GROUP = exports.ACTION_GROUP = 'createFlow';
|
|
29
|
-
|
|
30
|
-
/** @deprecated Use CreateFlowEventPayload with trackAgentEvent() instead */
|
|
31
|
-
var CreateFlowActions = exports.CreateFlowActions = /*#__PURE__*/function (CreateFlowActions) {
|
|
32
|
-
/* Start create flow when user clicks on "Create agent" button - https://data-portal.internal.atlassian.com/analytics/registry/97089 */
|
|
33
|
-
CreateFlowActions["START"] = "createFlowStart";
|
|
34
|
-
/* Skip natural language - https://data-portal.internal.atlassian.com/analytics/registry/97127 */
|
|
35
|
-
CreateFlowActions["SKIP_NL"] = "createFlowSkipNL";
|
|
36
|
-
/* Review natural language - https://data-portal.internal.atlassian.com/analytics/registry/97124 */
|
|
37
|
-
CreateFlowActions["REVIEW_NL"] = "createFlowReviewNL";
|
|
38
|
-
/* Activate agent - https://data-portal.internal.atlassian.com/analytics/registry/97123 */
|
|
39
|
-
CreateFlowActions["ACTIVATE"] = "createFlowActivate";
|
|
40
|
-
/* Restart create flow - https://data-portal.internal.atlassian.com/analytics/registry/97131 */
|
|
41
|
-
CreateFlowActions["RESTART"] = "createFlowRestart";
|
|
42
|
-
/* Error occurred - https://data-portal.internal.atlassian.com/analytics/registry/97132 */
|
|
43
|
-
CreateFlowActions["ERROR"] = "createFlowError";
|
|
44
|
-
/* Land in studio - https://data-portal.internal.atlassian.com/analytics/registry/97136 */
|
|
45
|
-
CreateFlowActions["LAND"] = "createLandInStudio";
|
|
46
|
-
/* Discard agent - https://data-portal.internal.atlassian.com/analytics/registry/97137 */
|
|
47
|
-
CreateFlowActions["DISCARD"] = "createDiscard";
|
|
48
|
-
/* Draft created from solution architect plan card - https://data-portal.internal.atlassian.com/analytics/registry/97924 */
|
|
49
|
-
CreateFlowActions["SA_DRAFT"] = "saDraft";
|
|
50
|
-
return CreateFlowActions;
|
|
51
|
-
}({});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DefaultActionSubject = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Action Registry (Backwards Compatibility)
|
|
9
|
-
*
|
|
10
|
-
* This file contains deprecated exports for backwards compatibility
|
|
11
|
-
* with consumers using `trackAgentAction()`.
|
|
12
|
-
*
|
|
13
|
-
* For new code, use the payload types from each group file directly
|
|
14
|
-
* with `trackAgentEvent()`.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated The registry pattern is deprecated. Use EventPayload from types.ts instead.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
var DefaultActionSubject = exports.DefaultActionSubject = 'rovoAgent';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Combined attribute map (union of all groups).
|
|
23
|
-
* Used by the backward-compatible `trackAgentAction` helper.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated Use EventPayload with trackAgentEvent() instead
|
|
26
|
-
*/
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Action Group: addToolsPrompt
|
|
3
|
-
*
|
|
4
|
-
* Add tools prompt modal — shown when a user tries to activate/publish an agent that has no tools.
|
|
5
|
-
* The user can browse tools or dismiss and proceed without them.
|
|
6
|
-
*
|
|
7
|
-
* This group is intentionally flow-agnostic so the action values stay stable
|
|
8
|
-
* regardless of whether the prompt fires from the create flow or a future publish flow.
|
|
9
|
-
*
|
|
10
|
-
* ## Adding a new action
|
|
11
|
-
* 1. Add a new variant to the `AddToolsPromptEventPayload` union type below with a data-portal link
|
|
12
|
-
* 2. If this action doesn't fit this group, consider creating a new group file instead
|
|
13
|
-
* (see other files in this directory for the template)
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Discriminated union payload type for add tools prompt events.
|
|
18
|
-
* Use with `trackAgentEvent()`.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
// ============================================================================
|
|
22
|
-
// BACKWARDS COMPAT (deprecated): Keep enum and attributes for trackAgentAction() consumers
|
|
23
|
-
// ============================================================================
|
|
24
|
-
|
|
25
|
-
/** @deprecated Use AddToolsPromptEventPayload with trackAgentEvent() instead */
|
|
26
|
-
export const ACTION_GROUP = 'addToolsPrompt';
|
|
27
|
-
|
|
28
|
-
/** @deprecated Use AddToolsPromptEventPayload with trackAgentEvent() instead */
|
|
29
|
-
export let AddToolsPromptActions = /*#__PURE__*/function (AddToolsPromptActions) {
|
|
30
|
-
/* Add tools prompt shown (agent has no tools) - https://data-portal.internal.atlassian.com/analytics/registry/98106 */
|
|
31
|
-
AddToolsPromptActions["SHOWN"] = "addToolsPromptShown";
|
|
32
|
-
/* User clicked "Browse skills" on the add tools prompt - https://data-portal.internal.atlassian.com/analytics/registry/98107 */
|
|
33
|
-
AddToolsPromptActions["BROWSE"] = "addToolsPromptBrowse";
|
|
34
|
-
/* User dismissed the add tools prompt ("No thanks") and proceeded anyway - https://data-portal.internal.atlassian.com/analytics/registry/98108 */
|
|
35
|
-
AddToolsPromptActions["DISMISS"] = "addToolsPromptDismiss";
|
|
36
|
-
return AddToolsPromptActions;
|
|
37
|
-
}({});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Action Group: createFlow
|
|
3
|
-
*
|
|
4
|
-
* Create agent funnel steps — from clicking "Create agent" through to activation or discard,
|
|
5
|
-
*
|
|
6
|
-
* ## Adding a new action
|
|
7
|
-
* 1. Add a new variant to the `CreateFlowEventPayload` union type below with a data-portal link
|
|
8
|
-
* 2. If this action doesn't fit this group, consider creating a new group file instead
|
|
9
|
-
* (see other files in this directory for the template)
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Discriminated union payload type for create flow events.
|
|
14
|
-
* Use with `trackAgentEvent()`.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
// ============================================================================
|
|
18
|
-
// BACKWARDS COMPAT (deprecated): Keep enum and attributes for trackAgentAction() consumers
|
|
19
|
-
// ============================================================================
|
|
20
|
-
|
|
21
|
-
/** @deprecated Use CreateFlowEventPayload with trackAgentEvent() instead */
|
|
22
|
-
export const ACTION_GROUP = 'createFlow';
|
|
23
|
-
|
|
24
|
-
/** @deprecated Use CreateFlowEventPayload with trackAgentEvent() instead */
|
|
25
|
-
export let CreateFlowActions = /*#__PURE__*/function (CreateFlowActions) {
|
|
26
|
-
/* Start create flow when user clicks on "Create agent" button - https://data-portal.internal.atlassian.com/analytics/registry/97089 */
|
|
27
|
-
CreateFlowActions["START"] = "createFlowStart";
|
|
28
|
-
/* Skip natural language - https://data-portal.internal.atlassian.com/analytics/registry/97127 */
|
|
29
|
-
CreateFlowActions["SKIP_NL"] = "createFlowSkipNL";
|
|
30
|
-
/* Review natural language - https://data-portal.internal.atlassian.com/analytics/registry/97124 */
|
|
31
|
-
CreateFlowActions["REVIEW_NL"] = "createFlowReviewNL";
|
|
32
|
-
/* Activate agent - https://data-portal.internal.atlassian.com/analytics/registry/97123 */
|
|
33
|
-
CreateFlowActions["ACTIVATE"] = "createFlowActivate";
|
|
34
|
-
/* Restart create flow - https://data-portal.internal.atlassian.com/analytics/registry/97131 */
|
|
35
|
-
CreateFlowActions["RESTART"] = "createFlowRestart";
|
|
36
|
-
/* Error occurred - https://data-portal.internal.atlassian.com/analytics/registry/97132 */
|
|
37
|
-
CreateFlowActions["ERROR"] = "createFlowError";
|
|
38
|
-
/* Land in studio - https://data-portal.internal.atlassian.com/analytics/registry/97136 */
|
|
39
|
-
CreateFlowActions["LAND"] = "createLandInStudio";
|
|
40
|
-
/* Discard agent - https://data-portal.internal.atlassian.com/analytics/registry/97137 */
|
|
41
|
-
CreateFlowActions["DISCARD"] = "createDiscard";
|
|
42
|
-
/* Draft created from solution architect plan card - https://data-portal.internal.atlassian.com/analytics/registry/97924 */
|
|
43
|
-
CreateFlowActions["SA_DRAFT"] = "saDraft";
|
|
44
|
-
return CreateFlowActions;
|
|
45
|
-
}({});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Action Registry (Backwards Compatibility)
|
|
3
|
-
*
|
|
4
|
-
* This file contains deprecated exports for backwards compatibility
|
|
5
|
-
* with consumers using `trackAgentAction()`.
|
|
6
|
-
*
|
|
7
|
-
* For new code, use the payload types from each group file directly
|
|
8
|
-
* with `trackAgentEvent()`.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated The registry pattern is deprecated. Use EventPayload from types.ts instead.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export const DefaultActionSubject = 'rovoAgent';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Combined attribute map (union of all groups).
|
|
17
|
-
* Used by the backward-compatible `trackAgentAction` helper.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated Use EventPayload with trackAgentEvent() instead
|
|
20
|
-
*/
|