-
Notifications
You must be signed in to change notification settings - Fork 1
fix: check for current directory while project creation #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: check for current directory while project creation #4
Conversation
|
🔒 Entelligence AI Vulnerability Scanner ✅ No security vulnerabilities found! Your code passed our comprehensive security analysis. 📊 Files Analyzed: 4 files |
WalkthroughThis PR introduces support for initializing projects in the current directory using '.' as the project name. The implementation adds an Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
participant Caller
participant EnvironmentManager
participant FileSystem as File System
Caller->>EnvironmentManager: setupEnvironment(projectName, apiKey, options?)
alt options.isCurrentDir is true
EnvironmentManager->>EnvironmentManager: projectPath = process.cwd()
Note over EnvironmentManager: Use current directory
else options.isCurrentDir is false/undefined
EnvironmentManager->>EnvironmentManager: projectPath = join(cwd, projectName)
Note over EnvironmentManager: Create path with project name
end
EnvironmentManager->>FileSystem: Access projectPath directory
FileSystem-->>EnvironmentManager: Directory access confirmed
EnvironmentManager-->>Caller: StepResult
🔗 Cross-Repository Impact AnalysisEnable automatic detection of breaking changes across your dependent repositories. → Set up now Learn more about Cross-Repository AnalysisWhat It Does
How to Enable
Benefits
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |
Closes #3
Implemented Solution
Added a flag with
isCurrDirby checking ifprojectName === '.', and using that to improve logging references, add validation, and check for any pre-existing files in the folder.EntelligenceAI PR Summary
This PR enables project initialization in the current directory by passing '.' as the project name, with comprehensive validation to prevent overwriting existing files.
isCurrentDirboolean flag to configuration and options interfacesresolveProjectName()helper to convert '.' to current directory namepathimport to support new functionality