@@ -70,6 +70,29 @@ function resolveWorkspacePath(rootPath, relativePath) {
7070 return null ;
7171}
7272
73+ function workspaceLocalLauncherCandidates (
74+ rootPath ,
75+ platform = process . platform
76+ ) {
77+ const root = String ( rootPath || "" ) . trim ( ) ;
78+ if ( ! root ) {
79+ return [ ] ;
80+ }
81+ const platformPath = platform === "win32" ? path . win32 : path . posix ;
82+ if ( platform === "win32" ) {
83+ return [
84+ platformPath . join ( root , ".venv" , "Scripts" , "codeclone-mcp.exe" ) ,
85+ platformPath . join ( root , ".venv" , "Scripts" , "codeclone-mcp.cmd" ) ,
86+ platformPath . join ( root , "venv" , "Scripts" , "codeclone-mcp.exe" ) ,
87+ platformPath . join ( root , "venv" , "Scripts" , "codeclone-mcp.cmd" ) ,
88+ ] ;
89+ }
90+ return [
91+ platformPath . join ( root , ".venv" , "bin" , "codeclone-mcp" ) ,
92+ platformPath . join ( root , "venv" , "bin" , "codeclone-mcp" ) ,
93+ ] ;
94+ }
95+
7396module . exports = {
7497 STALE_REASON_EDITOR ,
7598 STALE_REASON_WORKSPACE ,
@@ -79,4 +102,5 @@ module.exports = {
79102 signedInteger,
80103 staleMessage,
81104 trimTail,
105+ workspaceLocalLauncherCandidates,
82106} ;
0 commit comments