|
|
@@ -28,6 +28,7 @@ class PostHogClient {
|
|
|
CHECKPOINT_RESTORED: "Checkpoint Restored",
|
|
|
CHECKPOINT_DIFFED: "Checkpoint Diffed",
|
|
|
CODE_ACTION_USED: "Code Action Used",
|
|
|
+ PROMPT_ENHANCED: "Prompt Enhanced",
|
|
|
},
|
|
|
ERRORS: {
|
|
|
SCHEMA_VALIDATION_ERROR: "Schema Validation Error",
|
|
|
@@ -275,6 +276,12 @@ class TelemetryService {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ public capturePromptEnhanced(taskId?: string): void {
|
|
|
+ this.captureEvent(PostHogClient.EVENTS.TASK.PROMPT_ENHANCED, {
|
|
|
+ ...(taskId && { taskId }),
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
public captureSchemaValidationError({ schemaName, error }: { schemaName: string; error: ZodError }): void {
|
|
|
this.captureEvent(PostHogClient.EVENTS.ERRORS.SCHEMA_VALIDATION_ERROR, {
|
|
|
schemaName,
|