@@ -67,9 +67,8 @@ interface InstallResult {
6767interface PluginAuthResult {
6868 id : PluginId ;
6969 label : string ;
70- status : 'connected' | 'upgrade' | ' failed';
70+ status : 'connected' | 'failed' ;
7171 message : string ;
72- upgradeUrl ?: string ;
7372}
7473
7574interface UninstallResult {
@@ -345,8 +344,6 @@ class CommandError extends Error {
345344 }
346345}
347346
348- const PLUGIN_BILLING_URL = 'https://app.supermemory.ai/?settings=billing' ;
349-
350347const PLUGIN_AUTH_CLIENTS : Record < PluginId , PluginClientId > = {
351348 claude : 'claude_code' ,
352349 cursor : 'cursor' ,
@@ -824,14 +821,8 @@ function printPluginAuthSummary(results: PluginAuthResult[]): void {
824821
825822 process . stdout . write ( `\n${ chalk . bold ( 'Supermemory plugin auth summary' ) } \n\n` ) ;
826823 for ( const result of results ) {
827- const icon =
828- result . status === 'connected' ? chalk . green ( '[ok]' )
829- : result . status === 'upgrade' ? chalk . blue ( '[upgrade]' )
830- : chalk . red ( '[fail]' ) ;
824+ const icon = result . status === 'connected' ? chalk . green ( '[ok]' ) : chalk . red ( '[fail]' ) ;
831825 process . stdout . write ( `${ icon } ${ chalk . bold ( result . label ) } : ${ result . message } \n` ) ;
832- if ( result . upgradeUrl ) {
833- process . stdout . write ( ` ${ chalk . dim ( 'Upgrade:' ) } ${ chalk . cyan ( result . upgradeUrl ) } \n` ) ;
834- }
835826 }
836827 process . stdout . write ( '\n' ) ;
837828}
@@ -841,16 +832,10 @@ function printPluginAuthStart(targets: Array<{ id: PluginId; label: string }>):
841832 process . stdout . write ( `\n${ chalk . cyan ( '┌' ) } ${ chalk . bold ( 'Supermemory OAuth' ) } \n` ) ;
842833 process . stdout . write ( `${ chalk . cyan ( '│' ) } ${ chalk . bold ( 'One approval' ) } connects ${ chalk . bold ( labels ) } .\n` ) ;
843834 process . stdout . write (
844- `${ chalk . cyan ( '└' ) } ${ chalk . dim (
845- 'The same API key will be saved for each plugin your plan can use.' ,
846- ) } \n\n`,
835+ `${ chalk . cyan ( '└' ) } ${ chalk . dim ( 'The same API key will be saved for each selected plugin.' ) } \n\n` ,
847836 ) ;
848837}
849838
850- function isPlanUpgradeMessage ( message : string | undefined ) : boolean {
851- return / \b ( p r o p l a n | u p g r a d e | r e q u i r e s p r o ) \b / i. test ( message ?? '' ) ;
852- }
853-
854839function getPluginAuthBaseUrl ( consoleUrl : string ) : string {
855840 if ( process . env . SUPERMEMORY_PLUGIN_AUTH_URL ) {
856841 return process . env . SUPERMEMORY_PLUGIN_AUTH_URL ;
@@ -943,13 +928,11 @@ async function authorizePlugins(
943928 } ) ;
944929 } else {
945930 const errorMessage = errors [ client ] ?? `No key returned for ${ PLUGIN_AUTH_LABELS [ client ] } ` ;
946- const isUpgrade = isPlanUpgradeMessage ( errorMessage ) ;
947931 authResults . push ( {
948932 id : result . id ,
949933 label : result . label ,
950- status : isUpgrade ? 'upgrade' : 'failed' ,
951- message : isUpgrade ? `Upgrade to Pro to connect ${ result . label } .` : errorMessage ,
952- upgradeUrl : isUpgrade ? PLUGIN_BILLING_URL : undefined ,
934+ status : 'failed' ,
935+ message : errorMessage ,
953936 } ) ;
954937 }
955938 }
@@ -963,7 +946,7 @@ async function authorizePlugins(
963946 error instanceof Error ? error . message : String ( error )
964947 } \n\n`,
965948 ) ;
966- process . stdout . write ( ' Rerun the command to open a fresh OAuth callback and upgrade link .\n\n' ) ;
949+ process . stdout . write ( ' Rerun the command to open a fresh OAuth callback.\n\n' ) ;
967950 return true ;
968951 } finally {
969952 callback . close ( ) ;
0 commit comments