agent-afk 5.112.6 → 5.113.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.
@@ -0,0 +1,3 @@
1
+ import type { ToolHandler } from '../types.js';
2
+ export declare const readWitnessHandler: ToolHandler;
3
+ export declare const searchWitnessHandler: ToolHandler;
@@ -0,0 +1,35 @@
1
+ import type { TraceEvent } from '../../trace/index.js';
2
+ export declare function clampLimit(raw: unknown): number;
3
+ export declare function clampSessions(raw: unknown): number;
4
+ export interface ReadWitnessParams {
5
+ session?: string;
6
+ kinds?: string[];
7
+ toolName?: string;
8
+ errorsOnly?: boolean;
9
+ limit?: number;
10
+ }
11
+ export interface ReadWitnessResult {
12
+ sessionId: string;
13
+ events: TraceEvent[];
14
+ totalInTrace: number;
15
+ filtered: number;
16
+ note?: string;
17
+ }
18
+ export declare function readSessionTrace(params: ReadWitnessParams): Promise<ReadWitnessResult>;
19
+ export interface SearchWitnessParams {
20
+ query: string;
21
+ sessions?: number;
22
+ kinds?: string[];
23
+ since?: string;
24
+ }
25
+ export interface SearchMatch {
26
+ sessionId: string;
27
+ event: TraceEvent;
28
+ matchLine: string;
29
+ }
30
+ export interface SearchWitnessResult {
31
+ query: string;
32
+ sessionsScanned: number;
33
+ matches: SearchMatch[];
34
+ }
35
+ export declare function searchAcrossSessions(params: SearchWitnessParams): Promise<SearchWitnessResult>;
@@ -0,0 +1,3 @@
1
+ import type { AnthropicToolDef } from './types.js';
2
+ export declare const readWitnessTool: AnthropicToolDef;
3
+ export declare const searchWitnessTool: AnthropicToolDef;
@@ -0,0 +1,8 @@
1
+ export interface TraceDirEntry {
2
+ sessionId: string;
3
+ tracePath: string;
4
+ mtimeMs: number;
5
+ exists: boolean;
6
+ }
7
+ export declare function listTraces(): Promise<TraceDirEntry[]>;
8
+ export declare function resolveLatestSession(): Promise<string | null>;
@@ -1,13 +1,8 @@
1
1
  import { Command } from 'commander';
2
2
  import type { TraceEvent } from '../../agent/trace/index.js';
3
- export interface TraceDirEntry {
4
- sessionId: string;
5
- tracePath: string;
6
- mtimeMs: number;
7
- exists: boolean;
8
- }
9
- export declare function listTraces(): Promise<TraceDirEntry[]>;
10
- export declare function resolveLatestSession(): Promise<string | null>;
3
+ import { listTraces, resolveLatestSession } from '../../agent/trace/listing.js';
4
+ export type { TraceDirEntry } from '../../agent/trace/listing.js';
5
+ export { listTraces, resolveLatestSession };
11
6
  export interface ParsedTrace {
12
7
  events: TraceEvent[];
13
8
  malformed: number;
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerWitnessCommand(program: Command): void;