agent-afk 5.298.2 → 5.299.1
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/outcomes/combine-v2.d.ts +17 -0
- package/dist/agent/outcomes/combine.d.ts +3 -0
- package/dist/agent/outcomes/lf-immediate.d.ts +1 -0
- package/dist/agent/outcomes/lf-reask.d.ts +4 -1
- package/dist/agent/outcomes/relabel-job.d.ts +12 -0
- package/dist/agent/outcomes/schema.d.ts +20 -0
- package/dist/agent/worktree/worktree-sweep.d.ts +2 -1
- package/dist/agent/worktree/worktree-sweep.liveness.d.ts +2 -0
- package/dist/agent/worktree/worktree-sweep.schedule-pins.d.ts +10 -0
- package/dist/cli.mjs +437 -409
- package/dist/index.mjs +146 -146
- package/dist/insights/aggregators/index.d.ts +2 -1
- package/dist/insights/aggregators/outcomes.d.ts +18 -0
- package/dist/insights/html.outcomes.d.ts +2 -0
- package/dist/insights/index.d.ts +1 -1
- package/dist/insights/types.d.ts +13 -0
- package/dist/telegram.mjs +188 -188
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { aggregateSessions } from './sessions.js';
|
|
|
2
2
|
import { aggregateTraces } from './traces.js';
|
|
3
3
|
import { aggregateDaemonTelemetry } from './daemon.js';
|
|
4
4
|
import { aggregateRoutingDecisions } from './routing.js';
|
|
5
|
+
import { aggregateOutcomes } from './outcomes.js';
|
|
5
6
|
import type { InsightsOptions, InsightAggregates } from '../types.js';
|
|
6
|
-
export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, };
|
|
7
|
+
export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, };
|
|
7
8
|
export declare function aggregateAll(options: InsightsOptions): Promise<InsightAggregates>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InsightsOptions } from '../types.js';
|
|
2
|
+
export interface OutcomeWeekCounts {
|
|
3
|
+
goodProven: number;
|
|
4
|
+
goodPresumed: number;
|
|
5
|
+
bad: number;
|
|
6
|
+
blocked: number;
|
|
7
|
+
unknown: number;
|
|
8
|
+
}
|
|
9
|
+
export interface OutcomeAggregates {
|
|
10
|
+
byWeek: Record<string, OutcomeWeekCounts>;
|
|
11
|
+
totalRecords: number;
|
|
12
|
+
parseErrors: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function zeroOutcomeAggregates(): OutcomeAggregates;
|
|
15
|
+
export declare function isoWeekKey(date: Date): string;
|
|
16
|
+
export declare function aggregateOutcomes(options: InsightsOptions & {
|
|
17
|
+
outcomesDir?: string;
|
|
18
|
+
}): OutcomeAggregates;
|
package/dist/insights/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ 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 type { InsightAggregates, InsightsOptions, Recommendation, RecommendationSeverity, SessionAggregates, TraceAggregates, DaemonAggregates, RoutingAggregates, } from './types.js';
|
|
5
|
+
export type { InsightAggregates, InsightsOptions, Recommendation, RecommendationSeverity, SessionAggregates, TraceAggregates, DaemonAggregates, RoutingAggregates, OutcomeAggregates, OutcomeWeekCounts, } from './types.js';
|
package/dist/insights/types.d.ts
CHANGED
|
@@ -62,6 +62,18 @@ export interface RoutingAggregates {
|
|
|
62
62
|
avgComposeEdges: number;
|
|
63
63
|
overflowKills: Record<string, number>;
|
|
64
64
|
}
|
|
65
|
+
export interface OutcomeWeekCounts {
|
|
66
|
+
goodProven: number;
|
|
67
|
+
goodPresumed: number;
|
|
68
|
+
bad: number;
|
|
69
|
+
blocked: number;
|
|
70
|
+
unknown: number;
|
|
71
|
+
}
|
|
72
|
+
export interface OutcomeAggregates {
|
|
73
|
+
byWeek: Record<string, OutcomeWeekCounts>;
|
|
74
|
+
totalRecords: number;
|
|
75
|
+
parseErrors: number;
|
|
76
|
+
}
|
|
65
77
|
export interface InsightAggregates {
|
|
66
78
|
generatedAt: number;
|
|
67
79
|
windowDays: number;
|
|
@@ -69,6 +81,7 @@ export interface InsightAggregates {
|
|
|
69
81
|
traces: TraceAggregates;
|
|
70
82
|
daemon: DaemonAggregates;
|
|
71
83
|
routing: RoutingAggregates;
|
|
84
|
+
outcomes: OutcomeAggregates;
|
|
72
85
|
}
|
|
73
86
|
export type RecommendationSeverity = 'high' | 'medium' | 'info';
|
|
74
87
|
export interface Recommendation {
|