@@ -14,28 +14,36 @@ import (
1414)
1515
1616var ValidEventNames = map [string ]bool {
17- "app:startup" : true ,
18- "app:shutdown" : true ,
19- "app:activity" : true ,
20- "app:display" : true ,
21- "app:counts" : true ,
22- "action:magnify" : true ,
23- "action:settabtheme" : true ,
24- "action:runaicmd" : true ,
25- "action:createtab" : true ,
26- "action:createblock" : true ,
27- "action:openwaveai" : true ,
28- "wsh:run" : true ,
29- "debug:panic" : true ,
30- "conn:connect" : true ,
31- "conn:connecterror" : true ,
17+ "app:startup" : true ,
18+ "app:shutdown" : true ,
19+ "app:activity" : true ,
20+ "app:display" : true ,
21+ "app:counts" : true ,
22+
23+ "action:magnify" : true ,
24+ "action:settabtheme" : true ,
25+ "action:runaicmd" : true ,
26+ "action:createtab" : true ,
27+ "action:createblock" : true ,
28+ "action:openwaveai" : true ,
29+
30+ "wsh:run" : true ,
31+
32+ "debug:panic" : true ,
33+
34+ "conn:connect" : true ,
35+ "conn:connecterror" : true ,
36+
3237 "waveai:enabletelemetry" : true ,
3338 "waveai:post" : true ,
3439 "waveai:feedback" : true ,
35- "onboarding:start" : true ,
36- "onboarding:skip" : true ,
37- "onboarding:fire" : true ,
38- "onboarding:githubstar" : true ,
40+ "waveai:showdiff" : true ,
41+ "waveai:revertfile" : true ,
42+
43+ "onboarding:start" : true ,
44+ "onboarding:skip" : true ,
45+ "onboarding:fire" : true ,
46+ "onboarding:githubstar" : true ,
3947}
4048
4149type TEvent struct {
@@ -137,6 +145,7 @@ type TEventProps struct {
137145 WaveAIRequestDurMs int `json:"waveai:requestdurms,omitempty"` // ms
138146 WaveAIWidgetAccess bool `json:"waveai:widgetaccess,omitempty"`
139147 WaveAIFeedback string `json:"waveai:feedback,omitempty" tstype:"\"good\" | \"bad\""`
148+ WaveAIAction string `json:"waveai:action,omitempty"`
140149
141150 UserSet * TEventUserProps `json:"$set,omitempty"`
142151 UserSetOnce * TEventUserProps `json:"$set_once,omitempty"`
0 commit comments