@@ -15,15 +15,15 @@ interface DebugConfig {
1515}
1616
1717/**
18- * Get authentication credentials using cursor-cli
18+ * Get authentication credentials using cursor-tool
1919 */
2020function getCredentialsFromCli ( ) : { apiKey : string ; checksum : string } | null {
2121 try {
22- console . log ( '🔑 Trying to get credentials from cursor-cli ...' )
23- // Get the path to the cursor-cli package
24- const cliPath = join ( __dirname , '../../../packages/cursor-cli ' )
22+ console . log ( '🔑 Trying to get credentials from cursor-tool ...' )
23+ // Get the path to the cursor-tool package
24+ const cliPath = join ( __dirname , '../../../packages/cursor-tool ' )
2525
26- // Run the cursor-cli token command
26+ // Run the cursor-tool token command
2727 const output = execSync ( 'pnpm start -- token' , {
2828 cwd : cliPath ,
2929 stdio : [ 'ignore' , 'pipe' , 'pipe' ] ,
@@ -37,13 +37,13 @@ function getCredentialsFromCli(): { apiKey: string; checksum: string } | null {
3737 if ( tokenMatch && checksumMatch ) {
3838 const apiKey = tokenMatch [ 1 ] ?. trim ( ) ?? ''
3939 const checksum = checksumMatch [ 1 ] ?. trim ( ) ?? ''
40- console . log ( '✅ Successfully retrieved credentials from cursor-cli ' )
40+ console . log ( '✅ Successfully retrieved credentials from cursor-tool ' )
4141 return { apiKey, checksum }
4242 }
4343
4444 return null
4545 } catch ( error ) {
46- console . error ( '❌ Failed to get credentials from cursor-cli :' , error )
46+ console . error ( '❌ Failed to get credentials from cursor-tool :' , error )
4747 return null
4848 }
4949}
@@ -54,9 +54,9 @@ async function debugAuth(): Promise<void> {
5454 let apiKey = process . env [ 'CURSOR_API_KEY' ]
5555 let checksum = process . env [ 'CURSOR_CHECKSUM' ]
5656
57- // If environment variables are not set, try to get credentials from cursor-cli
57+ // If environment variables are not set, try to get credentials from cursor-tool
5858 if ( ! apiKey || ! checksum ) {
59- console . log ( '⚠️ Missing environment variables, trying cursor-cli ...' )
59+ console . log ( '⚠️ Missing environment variables, trying cursor-tool ...' )
6060 const credentials = getCredentialsFromCli ( )
6161 if ( credentials ) {
6262 apiKey = credentials . apiKey
@@ -84,9 +84,11 @@ async function debugAuth(): Promise<void> {
8484 console . log ( ' - CURSOR_CHECKSUM environment variable not set' )
8585 }
8686 console . log ( )
87- console . log ( 'Please set these environment variables or install cursor-cli:' )
88- console . log ( '1. Install cursor-cli: npm install -g cursor-cli' )
89- console . log ( '2. Run: cursor-cli token' )
87+ console . log (
88+ 'Please set these environment variables or install cursor-tool:'
89+ )
90+ console . log ( '1. Install cursor-tool: npm install -g cursor-tool' )
91+ console . log ( '2. Run: cursor-tool token' )
9092 console . log ( '3. Set environment variables:' )
9193 console . log ( ' export CURSOR_API_KEY="<token>"' )
9294 console . log ( ' export CURSOR_CHECKSUM="<checksum>"' )
@@ -168,7 +170,7 @@ async function debugAuth(): Promise<void> {
168170
169171 console . log ( '\n🎯 Debug Summary:' )
170172 console . log ( ' - If authentication failed, double-check your credentials' )
171- console . log ( ' - Try using cursor-cli to extract fresh credentials' )
173+ console . log ( ' - Try using cursor-tool to extract fresh credentials' )
172174 console . log (
173175 ' - For further help, create an issue with the debug output above'
174176 )
0 commit comments