@atlaskit/rovo-agent-analytics 0.19.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 +15 -0
- package/README.md +112 -103
- package/dist/cjs/actions/groups/agent-interactions.js +1 -40
- package/dist/cjs/actions/groups/debug.js +1 -31
- package/dist/cjs/actions/groups/editing.js +1 -22
- package/dist/cjs/actions/groups/evaluation.js +1 -0
- package/dist/cjs/actions/groups/tools.js +1 -28
- package/dist/cjs/actions/index.js +24 -34
- package/dist/cjs/common/types.js +18 -1
- package/dist/cjs/create/index.js +29 -15
- package/dist/es2019/actions/groups/agent-interactions.js +1 -38
- package/dist/es2019/actions/groups/debug.js +0 -25
- package/dist/es2019/actions/groups/editing.js +1 -20
- package/dist/es2019/actions/groups/evaluation.js +0 -0
- package/dist/es2019/actions/groups/tools.js +1 -26
- package/dist/es2019/actions/index.js +17 -34
- package/dist/es2019/common/types.js +12 -0
- package/dist/es2019/create/index.js +26 -16
- package/dist/esm/actions/groups/agent-interactions.js +1 -38
- package/dist/esm/actions/groups/debug.js +0 -25
- package/dist/esm/actions/groups/editing.js +1 -20
- package/dist/esm/actions/groups/evaluation.js +0 -0
- package/dist/esm/actions/groups/tools.js +1 -26
- package/dist/esm/actions/index.js +23 -34
- package/dist/esm/common/types.js +12 -0
- package/dist/esm/create/index.js +27 -14
- package/dist/types/actions/groups/agent-interactions.d.ts +42 -26
- package/dist/types/actions/groups/debug.d.ts +22 -18
- package/dist/types/actions/groups/editing.d.ts +6 -10
- package/dist/types/actions/groups/evaluation.d.ts +56 -0
- package/dist/types/actions/groups/tools.d.ts +22 -20
- package/dist/types/actions/index.d.ts +2 -20
- package/dist/types/common/types.d.ts +28 -2
- package/dist/types/create/index.d.ts +20 -17
- package/dist/types-ts4.5/actions/groups/agent-interactions.d.ts +42 -26
- package/dist/types-ts4.5/actions/groups/debug.d.ts +22 -18
- package/dist/types-ts4.5/actions/groups/editing.d.ts +6 -10
- package/dist/types-ts4.5/actions/groups/evaluation.d.ts +56 -0
- package/dist/types-ts4.5/actions/groups/tools.d.ts +22 -20
- package/dist/types-ts4.5/actions/index.d.ts +2 -20
- package/dist/types-ts4.5/common/types.d.ts +28 -2
- package/dist/types-ts4.5/create/index.d.ts +20 -17
- package/package.json +2 -2
- 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/tool-actions/package.json +0 -17
- package/dist/cjs/actions/groups/add-tools-prompt.js +0 -32
- package/dist/cjs/actions/groups/create-flow.js +0 -39
- package/dist/cjs/actions/registry.js +0 -53
- package/dist/es2019/actions/groups/add-tools-prompt.js +0 -26
- package/dist/es2019/actions/groups/create-flow.js +0 -33
- package/dist/es2019/actions/registry.js +0 -52
- package/dist/esm/actions/groups/add-tools-prompt.js +0 -26
- package/dist/esm/actions/groups/create-flow.js +0 -33
- package/dist/esm/actions/registry.js +0 -48
- package/dist/types/actions/groups/add-tools-prompt.d.ts +0 -21
- package/dist/types/actions/groups/create-flow.d.ts +0 -22
- package/dist/types/actions/registry.d.ts +0 -16
- package/dist/types-ts4.5/actions/groups/add-tools-prompt.d.ts +0 -21
- package/dist/types-ts4.5/actions/groups/create-flow.d.ts +0 -22
- package/dist/types-ts4.5/actions/registry.d.ts +0 -16
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type AgentInteractionAttributes } from './groups/agent-interactions';
|
|
2
|
-
import { type DebugActionAttributes } from './groups/debug';
|
|
3
|
-
import { type EditingActionAttributes } from './groups/editing';
|
|
4
|
-
import { type ToolsActionAttributes } from './groups/tools';
|
|
5
|
-
/**
|
|
6
|
-
* Combined attribute map for action-hook groups (type-safe attributes).
|
|
7
|
-
* Create-flow groups are excluded — they use a looser attribute type via the create hook.
|
|
8
|
-
*/
|
|
9
|
-
export type ActionAttributes = AgentInteractionAttributes & EditingActionAttributes & DebugActionAttributes & ToolsActionAttributes;
|
|
10
|
-
/**
|
|
11
|
-
* Runtime lookup: action value → group name.
|
|
12
|
-
* Used by ALL analytics hooks to auto-inject `attributes.actionGroup`.
|
|
13
|
-
*
|
|
14
|
-
* When you add a new group, add it here too.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ACTION_TO_GROUP: Record<string, string>;
|
|
@@ -1,21 +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 the action to the `AddToolsPromptActions` enum below with a data-portal link
|
|
12
|
-
* 2. Register this group in ../registry.ts (if this is a new group file)
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
/** The group name sent as `attributes.actionGroup` in analytics events */
|
|
16
|
-
export declare const ACTION_GROUP: "addToolsPrompt";
|
|
17
|
-
export declare enum AddToolsPromptActions {
|
|
18
|
-
SHOWN = "addToolsPromptShown",
|
|
19
|
-
BROWSE = "addToolsPromptBrowse",
|
|
20
|
-
DISMISS = "addToolsPromptDismiss"
|
|
21
|
-
}
|
|
@@ -1,22 +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 the action to the `CreateFlowActions` enum below with a data-portal link
|
|
8
|
-
* 2. Register this group in ../registry.ts (if this is a new group file)
|
|
9
|
-
*/
|
|
10
|
-
/** The group name sent as `attributes.actionGroup` in analytics events */
|
|
11
|
-
export declare const ACTION_GROUP: "createFlow";
|
|
12
|
-
export declare enum CreateFlowActions {
|
|
13
|
-
START = "createFlowStart",
|
|
14
|
-
SKIP_NL = "createFlowSkipNL",
|
|
15
|
-
REVIEW_NL = "createFlowReviewNL",
|
|
16
|
-
ACTIVATE = "createFlowActivate",
|
|
17
|
-
RESTART = "createFlowRestart",
|
|
18
|
-
ERROR = "createFlowError",
|
|
19
|
-
LAND = "createLandInStudio",
|
|
20
|
-
DISCARD = "createDiscard",
|
|
21
|
-
SA_DRAFT = "saDraft"
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type AgentInteractionAttributes } from './groups/agent-interactions';
|
|
2
|
-
import { type DebugActionAttributes } from './groups/debug';
|
|
3
|
-
import { type EditingActionAttributes } from './groups/editing';
|
|
4
|
-
import { type ToolsActionAttributes } from './groups/tools';
|
|
5
|
-
/**
|
|
6
|
-
* Combined attribute map for action-hook groups (type-safe attributes).
|
|
7
|
-
* Create-flow groups are excluded — they use a looser attribute type via the create hook.
|
|
8
|
-
*/
|
|
9
|
-
export type ActionAttributes = AgentInteractionAttributes & EditingActionAttributes & DebugActionAttributes & ToolsActionAttributes;
|
|
10
|
-
/**
|
|
11
|
-
* Runtime lookup: action value → group name.
|
|
12
|
-
* Used by ALL analytics hooks to auto-inject `attributes.actionGroup`.
|
|
13
|
-
*
|
|
14
|
-
* When you add a new group, add it here too.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ACTION_TO_GROUP: Record<string, string>;
|