agent-afk 5.327.9 → 5.327.11

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.
@@ -6,6 +6,7 @@ import { aggregateOutcomes } from './outcomes.js';
6
6
  import { aggregatePreexistingDefects } from './preexisting-defects.js';
7
7
  import { aggregateSubagentOutcomes } from './subagent-outcomes.js';
8
8
  import { aggregateGuardrailFalsePositives } from './guardrail-false-positives.js';
9
+ import { aggregateShadowGitObserve } from './shadow-git-observe.js';
9
10
  import type { InsightsOptions, InsightAggregates } from '../types.js';
10
- export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, aggregatePreexistingDefects, aggregateSubagentOutcomes, aggregateGuardrailFalsePositives, };
11
+ export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, aggregatePreexistingDefects, aggregateSubagentOutcomes, aggregateGuardrailFalsePositives, aggregateShadowGitObserve, };
11
12
  export declare function aggregateAll(options: InsightsOptions): Promise<InsightAggregates>;
@@ -0,0 +1,11 @@
1
+ import type { InsightsOptions } from '../types.js';
2
+ export declare const SHADOW_GIT_OBSERVE_REASON_PREFIX = "shadow-git observe-only";
3
+ export interface ShadowGitObserveAggregates {
4
+ totalFirings: number;
5
+ forkFirings: number;
6
+ sessionsWithFirings: number;
7
+ sessionsScanned: number;
8
+ byLabel: Record<string, number>;
9
+ }
10
+ export declare function zeroShadowGitObserveAggregates(): ShadowGitObserveAggregates;
11
+ export declare function aggregateShadowGitObserve(options: InsightsOptions): ShadowGitObserveAggregates;
@@ -1,2 +1,3 @@
1
1
  import type { InsightAggregates } from './types.js';
2
2
  export declare function renderGuardrailFalsePositives(agg: InsightAggregates): string;
3
+ export declare function renderShadowGitObserve(agg: InsightAggregates): string;
@@ -85,6 +85,7 @@ export interface InsightAggregates {
85
85
  preexistingDefects: import('./aggregators/preexisting-defects.js').PreexistingDefectAggregates;
86
86
  subagentOutcomes: import('./aggregators/subagent-outcomes.js').SubagentOutcomeAggregates;
87
87
  guardrailFalsePositives: import('./aggregators/guardrail-false-positives.js').GuardrailFalsePositiveAggregates;
88
+ shadowGitObserve: import('./aggregators/shadow-git-observe.js').ShadowGitObserveAggregates;
88
89
  }
89
90
  export type RecommendationSeverity = 'high' | 'medium' | 'info';
90
91
  export interface Recommendation {
@@ -0,0 +1,2 @@
1
+ import type { Context } from 'telegraf';
2
+ export declare function handleInsights(ctx: Context): Promise<void>;