npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@atlaskit/rovo-agent-analytics

v1.0.0

Published

Rovo Agents analytics

Readme

RovoAgentAnalytics

Rovo Agents analytics library for composing and sending typed analytics events.

Usage

import { useRovoAgentActionAnalytics } from '@atlaskit/rovo-agent-analytics/actions';

const { trackAgentEvent } = useRovoAgentActionAnalytics({});

// Full control over event properties — all fields are type-checked
trackAgentEvent({
  action: 'view',
  actionSubject: 'rovoAgent',
  attributes: { 
    agentId: 'agent-123',
    touchPoint: 'browse-agent-list',
  },
});

Detailed docs and example usage can be found here.

Examples

Basic Event Tracking

For fully-typed events with explicit action, actionSubject, and attributes:

import { useRovoAgentActionAnalytics } from '@atlaskit/rovo-agent-analytics/actions';

const { trackAgentEvent } = useRovoAgentActionAnalytics({
  agentId,
  touchPoint: 'browse-agent-list',
});

// Track a user interaction
trackAgentEvent({
  action: 'duplicate',
  actionSubject: 'rovoAgent',
  attributes: {},
});

Event Tracking with Custom Attributes

import { useRovoAgentActionAnalytics } from '@atlaskit/rovo-agent-analytics/actions';

const { trackAgentEvent } = useRovoAgentActionAnalytics({});

// Full control over event properties — all fields are type-checked
trackAgentEvent({
  action: 'created',
  actionSubject: 'batchEvaluationDataset',
  attributes: { 
    totalQuestions: 5 
  },
  objectType: 'batchEvaluationDataset',
  objectId: 'dataset-123',
});

Payload Types

Each group file in src/actions/groups/ exports a discriminated union payload type that defines all valid event shapes for that group.

| File | Payload Type | Description | | --- | --- | --- | | agent-interactions.ts | AgentInteractionsEventPayload | User-initiated interactions (view, edit, delete, duplicate, star, chat, verify…) | | editing.ts | EditingEventPayload | Agent save/mutation events (updated) | | debug.ts | DebugEventPayload | Debug modal actions (view, copy, toggle skill info) | | tools.ts | ToolsEventPayload | Tool execution actions (confirm, stream stop, result viewed, error) | | evaluation.ts | EvaluationEventPayload | Batch evaluation events (dataset CRUD, job lifecycle, results viewed) | | create-flow.ts | CreateFlowEventPayload | Create agent funnel steps | | add-tools-prompt.ts | AddToolsPromptEventPayload | Add tools prompt modal events |

The combined EventPayload type (exported from types.ts) is a union of all these payload types.

Adding a New Action

To an existing payload type

  1. Open the group file (e.g. src/actions/groups/agent-interactions.ts)
  2. Add a new variant to the payload union type with a data-portal registry link:
export type AgentInteractionsEventPayload =
  | {
      // https://data-portal.internal.atlassian.com/analytics/registry/XXXXX
      actionSubject: 'rovoAgent';
      action: 'myNewAction';
      attributes: BaseAgentAnalyticsAttributes & {
        myCustomField: string;
      };
    }
  | // ... existing variants

That's it — TypeScript will enforce the correct shape when calling trackAgentEvent().

To a new group

If your action doesn't fit any existing group, create a new one:

  1. Create a new file in src/actions/groups/ following the existing template
  2. Export a discriminated union payload type (e.g. MyFeatureEventPayload)
  3. Add the new type to the EventPayload union in src/common/types.ts:
import type { MyFeatureEventPayload } from '../actions/groups/my-feature';

export type EventPayload =
  | EditingEventPayload
  | AgentInteractionsEventPayload
  // ... existing types
  | MyFeatureEventPayload;

Defining Custom Attributes

Each action variant in a payload type can have its own specific attributes:

Using BaseAgentAnalyticsAttributes

For actions that need touchPoint and agentId:

{
  actionSubject: 'rovoAgent';
  action: 'view';
  attributes: BaseAgentAnalyticsAttributes;
}

Using Custom Attributes

For actions that need additional attributes:

{
  actionSubject: 'rovoAgent';
  action: 'updated';
  attributes: BaseAgentAnalyticsAttributes & { 
    agentType: string; 
    field: string; 
  };
}

Entry Points

| Entry Point | Description | | --- | --- | | @atlaskit/rovo-agent-analytics/actions | Main entry point — exports useRovoAgentActionAnalytics hook | | @atlaskit/rovo-agent-analytics/create | Create agent flow analytics — exports useRovoAgentCreateAnalytics hook and AgentCreateAction type |

Create Flow Analytics

The useRovoAgentCreateAnalytics hook is used for tracking the agent creation funnel:

import { useRovoAgentCreateAnalytics } from '@atlaskit/rovo-agent-analytics/create';

const [csid, { trackCreateSession, trackCreateSessionStart }] = useRovoAgentCreateAnalytics({
  touchPoint: 'agent-studio',
});

// Track funnel steps using string literal actions
trackCreateSession('createFlowStart');
trackCreateSession('createFlowActivate', { agentType: 'custom' });