agent-afk 5.305.7 → 5.306.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.
@@ -3,6 +3,7 @@ import { aggregateTraces } from './traces.js';
3
3
  import { aggregateDaemonTelemetry } from './daemon.js';
4
4
  import { aggregateRoutingDecisions } from './routing.js';
5
5
  import { aggregateOutcomes } from './outcomes.js';
6
+ import { aggregatePreexistingDefects } from './preexisting-defects.js';
6
7
  import type { InsightsOptions, InsightAggregates } from '../types.js';
7
- export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, };
8
+ export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, aggregatePreexistingDefects, };
8
9
  export declare function aggregateAll(options: InsightsOptions): Promise<InsightAggregates>;
@@ -0,0 +1,9 @@
1
+ import type { InsightsOptions } from '../types.js';
2
+ import type { DefectCluster } from '../../agent/preexisting-ledger/reader.js';
3
+ export interface PreexistingDefectAggregates {
4
+ totalRecords: number;
5
+ skippedOutOfWindow: number;
6
+ topClusters: DefectCluster[];
7
+ }
8
+ export declare function zeroPreexistingDefectAggregates(): PreexistingDefectAggregates;
9
+ export declare function aggregatePreexistingDefects(options: InsightsOptions): PreexistingDefectAggregates;
@@ -0,0 +1,2 @@
1
+ import type { InsightAggregates } from './types.js';
2
+ export declare function renderPreexistingDefects(agg: InsightAggregates): string;
@@ -2,4 +2,7 @@ export { aggregateAll } from './aggregators/index.js';
2
2
  export { evaluateRecommendations } from './recommendations.js';
3
3
  export { generateHtml, htmlEscape } from './html.js';
4
4
  export { openInBrowser } from './open.js';
5
+ export { aggregatePreexistingDefects } from './aggregators/index.js';
5
6
  export type { InsightAggregates, InsightsOptions, Recommendation, RecommendationSeverity, SessionAggregates, TraceAggregates, DaemonAggregates, RoutingAggregates, OutcomeAggregates, OutcomeWeekCounts, } from './types.js';
7
+ export type { PreexistingDefectAggregates } from './aggregators/preexisting-defects.js';
8
+ export type { DefectCluster } from '../agent/preexisting-ledger/reader.js';
@@ -82,6 +82,7 @@ export interface InsightAggregates {
82
82
  daemon: DaemonAggregates;
83
83
  routing: RoutingAggregates;
84
84
  outcomes: OutcomeAggregates;
85
+ preexistingDefects: import('./aggregators/preexisting-defects.js').PreexistingDefectAggregates;
85
86
  }
86
87
  export type RecommendationSeverity = 'high' | 'medium' | 'info';
87
88
  export interface Recommendation {