Changesets · Branches · Tags · Compare
| Changeset | d9e1cb092a63dc90795200a0051e71e2222e5fff96f6537450b43521f5e92776 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-09-16 09:16 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-16 09:16 -07:00 |
| Parents | 9939a899209e, 9f8c4a46f49a |
2 files changed
modified extensions/cli/src/infoScreen.ts +0 −3
| @@ -9,13 +9,10 @@ | ||
| 9 | 9 | } from "./auth/workos.js"; |
| 10 | 10 | import { services } from "./services/index.js"; |
| 11 | 11 | import { getCurrentSession, getSessionFilePath } from "./session.js"; |
| 12 | -import { posthogService } from "./telemetry/posthogService.js"; | |
| 13 | 12 | import { logger } from "./util/logger.js"; |
| 14 | 13 | import { getVersion } from "./version.js"; |
| 15 | 14 | |
| 16 | 15 | export async function handleInfoSlashCommand() { |
| 17 | - posthogService.capture("useSlashCommand", { name: "info" }); | |
| 18 | - | |
| 19 | 16 | const infoLines = []; |
| 20 | 17 | |
| 21 | 18 | // Version and working directory info |
modified extensions/cli/src/slashCommands.ts +1 −17
| @@ -48,12 +48,10 @@ | ||
| 48 | 48 | ` Type ${chalk.cyan("/")} to see available slash commands`, |
| 49 | 49 | ` Type ${chalk.cyan("!")} followed by a command to execute bash directly`, |
| 50 | 50 | ].join("\n"); |
| 51 | - posthogService.capture("useSlashCommand", { name: "help" }); | |
| 52 | 51 | return { output: helpMessage }; |
| 53 | 52 | } |
| 54 | 53 | |
| 55 | 54 | async function handleLogin() { |
| 56 | - posthogService.capture("useSlashCommand", { name: "login" }); | |
| 57 | 55 | try { |
| 58 | 56 | const newAuthState = await services.auth.login(); |
| 59 | 57 | await reloadService(SERVICE_NAMES.AUTH); |
| @@ -79,7 +77,6 @@ | ||
| 79 | 77 | } |
| 80 | 78 | |
| 81 | 79 | async function handleLogout() { |
| 82 | - posthogService.capture("useSlashCommand", { name: "logout" }); | |
| 83 | 80 | try { |
| 84 | 81 | await services.auth.logout(); |
| 85 | 82 | return { |
| @@ -95,7 +92,6 @@ | ||
| 95 | 92 | } |
| 96 | 93 | |
| 97 | 94 | function handleWhoami() { |
| 98 | - posthogService.capture("useSlashCommand", { name: "whoami" }); | |
| 99 | 95 | if (isAuthenticated()) { |
| 100 | 96 | const config = loadAuthConfig(); |
| 101 | 97 | if (config && isAuthenticatedConfig(config)) { |
| @@ -118,8 +114,6 @@ | ||
| 118 | 114 | } |
| 119 | 115 | |
| 120 | 116 | async function handleFork() { |
| 121 | - posthogService.capture("useSlashCommand", { name: "fork" }); | |
| 122 | - | |
| 123 | 117 | try { |
| 124 | 118 | const currentSession = getCurrentSession(); |
| 125 | 119 | const forkCommand = `cn --fork ${currentSession.sessionId}`; |
| @@ -148,15 +142,12 @@ | ||
| 148 | 142 | const commandHandlers: Record<string, CommandHandler> = { |
| 149 | 143 | help: handleHelp, |
| 150 | 144 | clear: () => { |
| 151 | - posthogService.capture("useSlashCommand", { name: "clear" }); | |
| 152 | 145 | return { clear: true, output: "Chat history cleared" }; |
| 153 | 146 | }, |
| 154 | 147 | exit: () => { |
| 155 | - posthogService.capture("useSlashCommand", { name: "exit" }); | |
| 156 | 148 | return { exit: true, output: "Goodbye!" }; |
| 157 | 149 | }, |
| 158 | 150 | config: () => { |
| 159 | - posthogService.capture("useSlashCommand", { name: "config" }); | |
| 160 | 151 | return { openConfigSelector: true }; |
| 161 | 152 | }, |
| 162 | 153 | login: handleLogin, |
| @@ -165,26 +156,19 @@ | ||
| 165 | 156 | info: handleInfoSlashCommand, |
| 166 | 157 | model: () => ({ openModelSelector: true }), |
| 167 | 158 | compact: () => { |
| 168 | - posthogService.capture("useSlashCommand", { name: "compact" }); | |
| 169 | 159 | return { compact: true }; |
| 170 | 160 | }, |
| 171 | 161 | mcp: () => { |
| 172 | - posthogService.capture("useSlashCommand", { name: "mcp" }); | |
| 173 | 162 | return { openMcpSelector: true }; |
| 174 | 163 | }, |
| 175 | 164 | resume: () => { |
| 176 | - posthogService.capture("useSlashCommand", { name: "resume" }); | |
| 177 | 165 | return { openSessionSelector: true }; |
| 178 | 166 | }, |
| 179 | 167 | fork: handleFork, |
| 168 | + init: handleInit, | |
| 180 | 169 | update: () => { |
| 181 | - posthogService.capture("useSlashCommand", { name: "update" }); | |
| 182 | 170 | return { openUpdateSelector: true }; |
| 183 | 171 | }, |
| 184 | - init: (args, assistant) => { | |
| 185 | - posthogService.capture("useSlashCommand", { name: "init" }); | |
| 186 | - return handleInit(args, assistant); | |
| 187 | - }, | |
| 188 | 172 | }; |
| 189 | 173 | |
| 190 | 174 | export async function handleSlashCommands( |