agent-afk 5.306.4 → 5.307.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/dist/agent/awareness/types.d.ts +4 -0
- package/dist/agent/daemon/scheduler.d.ts +1 -0
- package/dist/agent/daemon/scheduler.overlap-guard.d.ts +7 -0
- package/dist/agent/daemon/telemetry-reader.d.ts +8 -0
- package/dist/agent/providers/anthropic-direct/query-system.d.ts +5 -0
- package/dist/agent/tools/operator-denied.d.ts +0 -1
- package/dist/cli/input/emit-keypress.d.ts +1 -0
- package/dist/cli/input/reader.keypress.d.ts +1 -0
- package/dist/cli/slash/plugin-skills/flags.d.ts +1 -0
- package/dist/cli/terminal-compositor.lifecycle.cpr.d.ts +1 -0
- package/dist/cli.mjs +463 -458
- package/dist/index.mjs +172 -168
- package/dist/insights/aggregators/index.d.ts +2 -1
- package/dist/insights/aggregators/subagent-outcomes.d.ts +27 -0
- package/dist/insights/types.d.ts +1 -0
- package/dist/telegram.mjs +219 -215
- package/dist/utils/jsonl.d.ts +12 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { aggregateDaemonTelemetry } from './daemon.js';
|
|
|
4
4
|
import { aggregateRoutingDecisions } from './routing.js';
|
|
5
5
|
import { aggregateOutcomes } from './outcomes.js';
|
|
6
6
|
import { aggregatePreexistingDefects } from './preexisting-defects.js';
|
|
7
|
+
import { aggregateSubagentOutcomes } from './subagent-outcomes.js';
|
|
7
8
|
import type { InsightsOptions, InsightAggregates } from '../types.js';
|
|
8
|
-
export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, aggregatePreexistingDefects, };
|
|
9
|
+
export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, aggregatePreexistingDefects, aggregateSubagentOutcomes, };
|
|
9
10
|
export declare function aggregateAll(options: InsightsOptions): Promise<InsightAggregates>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { InsightsOptions } from '../types.js';
|
|
2
|
+
export interface SubagentOutcomeBucket {
|
|
3
|
+
count: number;
|
|
4
|
+
successRate: number;
|
|
5
|
+
capHitRate: number;
|
|
6
|
+
timeoutRate: number;
|
|
7
|
+
p50Ms: number;
|
|
8
|
+
p95Ms: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SubagentOutcomeAggregates {
|
|
11
|
+
byModelTypeDepth: Record<string, Record<string, Record<string, SubagentOutcomeBucket>>>;
|
|
12
|
+
dispatchedCount: number;
|
|
13
|
+
outcomeCount: number;
|
|
14
|
+
parseErrors: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function zeroSubagentOutcomeAggregates(): SubagentOutcomeAggregates;
|
|
17
|
+
export declare function aggregateSubagentOutcomes(options: InsightsOptions): SubagentOutcomeAggregates;
|
|
18
|
+
export interface SubagentOutcomeSummaryEntry {
|
|
19
|
+
model: string;
|
|
20
|
+
agentType: string;
|
|
21
|
+
depth: number;
|
|
22
|
+
count: number;
|
|
23
|
+
successRate: number;
|
|
24
|
+
capHitRate: number;
|
|
25
|
+
p50Ms: number;
|
|
26
|
+
}
|
|
27
|
+
export declare function buildSubagentOutcomeSummary(agg: SubagentOutcomeAggregates, minCount?: number): SubagentOutcomeSummaryEntry[];
|
package/dist/insights/types.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export interface InsightAggregates {
|
|
|
83
83
|
routing: RoutingAggregates;
|
|
84
84
|
outcomes: OutcomeAggregates;
|
|
85
85
|
preexistingDefects: import('./aggregators/preexisting-defects.js').PreexistingDefectAggregates;
|
|
86
|
+
subagentOutcomes: import('./aggregators/subagent-outcomes.js').SubagentOutcomeAggregates;
|
|
86
87
|
}
|
|
87
88
|
export type RecommendationSeverity = 'high' | 'medium' | 'info';
|
|
88
89
|
export interface Recommendation {
|