Skip to content

agent-plugin-usage / Exports

agent-plugin-usage

Table of contents

Classes

Interfaces

Type Aliases

Functions

Type Aliases

TUsageTrackingStrategy

Ƭ TUsageTrackingStrategy: "memory" | "file" | "remote" | "silent"

Usage tracking strategy types

Defined in

agent-plugin-usage/src/types.ts:4

Functions

aggregateUsageStats

aggregateUsageStats(stats, timeRange?): IAggregatedUsageStats

Aggregate usage statistics into a single summary object. This is a shared SSOT utility (composition over inheritance).

Parameters

NameType
statsreadonly IUsageStats[]
timeRange?IUsageTimeRange

Returns

IAggregatedUsageStats

Defined in

agent-plugin-usage/src/aggregate-usage-stats.ts:62

Released under the MIT License.