@lov3kaizen/agentsea-debugger 0.5.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.
@@ -0,0 +1,91 @@
1
+ export { R as Recorder, a as RecorderEvents, T as Timeline, d as TimelineEventOptions, g as TimelineFilterOptions, e as TimelineMarker, f as TimelineSegment, h as TimelineStats, c as createRecorder, b as createTimeline } from '../Recorder-Dc9qR2V2.js';
2
+ import { A as AgentState, p as Snapshot, C as Checkpoint } from '../recording.types-Ck7pbikw.js';
3
+ import { D as Difference } from '../diff-CLShBdWe.js';
4
+ import 'eventemitter3';
5
+ import '../replay.types-C9hJizI-.js';
6
+
7
+ interface SnapshotOptions {
8
+ maxSnapshots?: number;
9
+ useDiffs?: boolean;
10
+ compressionLevel?: number;
11
+ }
12
+ interface IncrementalSnapshot extends Snapshot {
13
+ diff?: Difference[];
14
+ isFull: boolean;
15
+ previousId?: string;
16
+ }
17
+ declare class SnapshotManager {
18
+ private snapshots;
19
+ private snapshotOrder;
20
+ private options;
21
+ private fullSnapshotInterval;
22
+ constructor(options?: SnapshotOptions);
23
+ create(state: AgentState, stepIndex: number): Snapshot;
24
+ get(id: string): Snapshot | undefined;
25
+ getAll(): Snapshot[];
26
+ getAtStep(stepIndex: number): Snapshot | undefined;
27
+ getAfterStep(stepIndex: number): Snapshot | undefined;
28
+ getInRange(startStep: number, endStep: number): Snapshot[];
29
+ restore(id: string): AgentState | undefined;
30
+ getLatest(): Snapshot | undefined;
31
+ getFirst(): Snapshot | undefined;
32
+ delete(id: string): boolean;
33
+ clear(): void;
34
+ get count(): number;
35
+ getTotalSize(): number;
36
+ compact(): void;
37
+ compare(id1: string, id2: string): Difference[] | undefined;
38
+ export(): Snapshot[];
39
+ import(snapshots: Snapshot[]): void;
40
+ private enforceLimit;
41
+ }
42
+ declare function createSnapshotManager(options?: SnapshotOptions): SnapshotManager;
43
+
44
+ interface CheckpointCreateOptions {
45
+ recordingId: string;
46
+ name: string;
47
+ description?: string;
48
+ stepIndex: number;
49
+ state: AgentState;
50
+ automatic?: boolean;
51
+ tags?: string[];
52
+ }
53
+ interface CheckpointFilterOptions {
54
+ namePattern?: string | RegExp;
55
+ stepRange?: {
56
+ min?: number;
57
+ max?: number;
58
+ };
59
+ timeRange?: {
60
+ after?: number;
61
+ before?: number;
62
+ };
63
+ automatic?: boolean;
64
+ tags?: string[];
65
+ }
66
+ declare class CheckpointManager {
67
+ private checkpoints;
68
+ private checkpointOrder;
69
+ create(options: CheckpointCreateOptions): Checkpoint;
70
+ get(id: string): Checkpoint | undefined;
71
+ getByName(name: string): Checkpoint | undefined;
72
+ getAll(): Checkpoint[];
73
+ filter(options: CheckpointFilterOptions): Checkpoint[];
74
+ getAtStep(stepIndex: number): Checkpoint | undefined;
75
+ getAfterStep(stepIndex: number): Checkpoint | undefined;
76
+ getInRange(startStep: number, endStep: number): Checkpoint[];
77
+ getState(id: string): AgentState | undefined;
78
+ update(id: string, updates: Partial<Pick<Checkpoint, 'name' | 'description'>>): boolean;
79
+ delete(id: string): boolean;
80
+ clear(): void;
81
+ get count(): number;
82
+ getLatest(): Checkpoint | undefined;
83
+ getFirst(): Checkpoint | undefined;
84
+ getManual(): Checkpoint[];
85
+ getAutomatic(): Checkpoint[];
86
+ export(): Checkpoint[];
87
+ import(checkpoints: Checkpoint[]): void;
88
+ }
89
+ declare function createCheckpointManager(): CheckpointManager;
90
+
91
+ export { type CheckpointCreateOptions, type CheckpointFilterOptions, CheckpointManager, type IncrementalSnapshot, SnapshotManager, type SnapshotOptions, createCheckpointManager, createSnapshotManager };