agent-afk 5.322.19 → 5.323.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/outcomes/schema.d.ts +1 -1
- package/dist/agent/risk-classifier.d.ts +3 -0
- package/dist/agent/trace/events.d.ts +68 -14
- package/dist/agent/trace/events.subagent-lifecycle.d.ts +3 -3
- package/dist/agent/trace/types.d.ts +1 -0
- package/dist/cli.mjs +428 -415
- package/dist/improve/schemas.d.ts +2 -2
- package/dist/index.mjs +199 -199
- package/dist/insights/aggregators/guardrail-false-positives.d.ts +12 -0
- package/dist/insights/aggregators/index.d.ts +2 -1
- package/dist/insights/html.guardrail-false-positives.d.ts +2 -0
- package/dist/insights/index.d.ts +2 -0
- package/dist/insights/types.d.ts +1 -0
- package/dist/telegram.mjs +215 -215
- package/package.json +4 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InsightsOptions } from '../types.js';
|
|
2
|
+
export declare const FP_LOOKAHEAD_TOOL_CALLS = 10;
|
|
3
|
+
export interface GuardrailFalsePositiveAggregates {
|
|
4
|
+
totalTrips: number;
|
|
5
|
+
falsePositiveTrips: number;
|
|
6
|
+
falsePositiveRate: number | null;
|
|
7
|
+
totalPreToolUseBlocks: number;
|
|
8
|
+
sessionsWithTrips: number;
|
|
9
|
+
sessionsScanned: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function zeroGuardrailFalsePositiveAggregates(): GuardrailFalsePositiveAggregates;
|
|
12
|
+
export declare function aggregateGuardrailFalsePositives(options: InsightsOptions): GuardrailFalsePositiveAggregates;
|
|
@@ -5,6 +5,7 @@ import { aggregateRoutingDecisions } from './routing.js';
|
|
|
5
5
|
import { aggregateOutcomes } from './outcomes.js';
|
|
6
6
|
import { aggregatePreexistingDefects } from './preexisting-defects.js';
|
|
7
7
|
import { aggregateSubagentOutcomes } from './subagent-outcomes.js';
|
|
8
|
+
import { aggregateGuardrailFalsePositives } from './guardrail-false-positives.js';
|
|
8
9
|
import type { InsightsOptions, InsightAggregates } from '../types.js';
|
|
9
|
-
export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, aggregatePreexistingDefects, aggregateSubagentOutcomes, };
|
|
10
|
+
export { aggregateSessions, aggregateTraces, aggregateDaemonTelemetry, aggregateRoutingDecisions, aggregateOutcomes, aggregatePreexistingDefects, aggregateSubagentOutcomes, aggregateGuardrailFalsePositives, };
|
|
10
11
|
export declare function aggregateAll(options: InsightsOptions): Promise<InsightAggregates>;
|
package/dist/insights/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export { evaluateRecommendations } from './recommendations.js';
|
|
|
3
3
|
export { generateHtml, htmlEscape } from './html.js';
|
|
4
4
|
export { openInBrowser } from './open.js';
|
|
5
5
|
export { aggregatePreexistingDefects } from './aggregators/index.js';
|
|
6
|
+
export { aggregateGuardrailFalsePositives } from './aggregators/index.js';
|
|
6
7
|
export type { InsightAggregates, InsightsOptions, Recommendation, RecommendationSeverity, SessionAggregates, TraceAggregates, DaemonAggregates, RoutingAggregates, OutcomeAggregates, OutcomeWeekCounts, } from './types.js';
|
|
7
8
|
export type { PreexistingDefectAggregates } from './aggregators/preexisting-defects.js';
|
|
8
9
|
export type { DefectCluster } from '../agent/preexisting-ledger/reader.js';
|
|
10
|
+
export type { GuardrailFalsePositiveAggregates } from './aggregators/guardrail-false-positives.js';
|
package/dist/insights/types.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export interface InsightAggregates {
|
|
|
84
84
|
outcomes: OutcomeAggregates;
|
|
85
85
|
preexistingDefects: import('./aggregators/preexisting-defects.js').PreexistingDefectAggregates;
|
|
86
86
|
subagentOutcomes: import('./aggregators/subagent-outcomes.js').SubagentOutcomeAggregates;
|
|
87
|
+
guardrailFalsePositives: import('./aggregators/guardrail-false-positives.js').GuardrailFalsePositiveAggregates;
|
|
87
88
|
}
|
|
88
89
|
export type RecommendationSeverity = 'high' | 'medium' | 'info';
|
|
89
90
|
export interface Recommendation {
|