refactor: enhance directory listing with separate file and directory results #287
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request enhances the directory listing and file request workflow in the SecureFlow CLI, making directory exploration more systematic and informative for security analysis. The changes improve both the user instructions and the internal handling and reporting of directory contents, with a focus on distinguishing files and directories, providing clearer context, and supporting best practices for security reviews.
Improvements to directory listing logic and reporting:
FileRequestHandlernow returns a structured result separating files and directories, including counts for each and total items, and provides both relative and full paths for each item. The listing logic also skips hidden directories except for important config files. (extension/secureflow/packages/secureflow-cli/scanner/file-request-handler.js) [1] [2]AISecurityAnalyzernow displays directory listing results with clear separation between files and directories, includes item counts, and improves summary formatting for easier review. (extension/secureflow/packages/secureflow-cli/scanner/ai-security-analyzer.js) [1] [2]Enhancements to user instructions and prompts:
extension/secureflow/packages/secureflow-cli/lib/prompts/tools/list-file-request-instructions.txt)extension/secureflow/packages/secureflow-cli/lib/prompts/common/security-review-cli.txt)Docker and deployment configuration cleanup:
extension/secureflow/packages/secureflow-cli/Dockerfile,extension/secureflow/packages/secureflow-cli/docker-compose.yml) [1] [2]