MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / sendActivity

Function sendActivity

cmd/wsh/cmd/wshcmd-root.go:221–231  ·  view source on GitHub ↗

this will send wsh activity to the client running on *your* local machine (it does not contact any wave cloud infrastructure) if you've turned off telemetry in your local client, this data never gets sent to us no parameters or timestamps are sent, as you can see below, it just sends the name of the

(wshCmdName string, success bool)

Source from the content-addressed store, hash-verified

219// (e.g. "wsh ai ..." would send "ai")
220// this helps us understand which commands are actually being used so we know where to concentrate our effort
221func sendActivity(wshCmdName string, success bool) {
222 if RpcClient == nil || wshCmdName == "" {
223 return
224 }
225 dataMap := make(map[string]int)
226 dataMap[wshCmdName] = 1
227 if !success {
228 dataMap[wshCmdName+"#"+"error"] = 1
229 }
230 wshclient.WshActivityCommand(RpcClient, dataMap, nil)
231}
232
233// Execute executes the root command.
234func Execute() {

Callers 15

focusBlockRunFunction · 0.85
setConfigRunFunction · 0.85
tabIndicatorRunFunction · 0.85
editorRunFunction · 0.85
viewRunFunction · 0.85
wslRunFunction · 0.85
wavepathRunFunction · 0.85
notifyRunFunction · 0.85
secretGetRunFunction · 0.85
secretSetRunFunction · 0.85
secretListRunFunction · 0.85
secretDeleteRunFunction · 0.85

Calls 1

WshActivityCommandFunction · 0.92

Tested by

no test coverage detected