|
|
@@ -22,6 +22,9 @@ class PostHogClient {
|
|
|
CONVERSATION_MESSAGE: "Conversation Message",
|
|
|
MODE_SWITCH: "Mode Switched",
|
|
|
TOOL_USED: "Tool Used",
|
|
|
+ CHECKPOINT_CREATED: "Checkpoint Created",
|
|
|
+ CHECKPOINT_RESTORED: "Checkpoint Restored",
|
|
|
+ CHECKPOINT_DIFFED: "Checkpoint Diffed",
|
|
|
},
|
|
|
}
|
|
|
|
|
|
@@ -246,6 +249,18 @@ class TelemetryService {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ public captureCheckpointCreated(taskId: string): void {
|
|
|
+ this.captureEvent(PostHogClient.EVENTS.TASK.CHECKPOINT_CREATED, { taskId })
|
|
|
+ }
|
|
|
+
|
|
|
+ public captureCheckpointDiffed(taskId: string): void {
|
|
|
+ this.captureEvent(PostHogClient.EVENTS.TASK.CHECKPOINT_DIFFED, { taskId })
|
|
|
+ }
|
|
|
+
|
|
|
+ public captureCheckpointRestored(taskId: string): void {
|
|
|
+ this.captureEvent(PostHogClient.EVENTS.TASK.CHECKPOINT_RESTORED, { taskId })
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Checks if telemetry is currently enabled
|
|
|
* @returns Whether telemetry is enabled
|