MCPcopy Index your code
hub / github.com/21st-dev/1code / trackMessageSent

Function trackMessageSent

src/main/lib/analytics.ts:301–311  ·  view source on GitHub ↗
(data: {
  workspaceId: string
  subChatId?: string
  mode: "plan" | "agent"
})

Source from the content-addressed store, hash-verified

299 * Track message sent
300 */
301export function trackMessageSent(data: {
302 workspaceId: string
303 subChatId?: string
304 mode: "plan" | "agent"
305}) {
306 capture("message_sent", {
307 workspace_id: data.workspaceId,
308 sub_chat_id: data.subChatId,
309 mode: data.mode,
310 })
311}
312
313/**
314 * Track PR created

Callers

nothing calls this directly

Calls 1

captureFunction · 0.70

Tested by

no test coverage detected