Skip to content

Commit 9e47682

Browse files
committed
feat(parser): enhance parse_shell_command to identify package commands and ecosystems
Added a comprehensive mapping for various package execution tools and ecosystems. Updated `parse_shell_command` to extract packages alongside sub-commands and input files. Improved functionality for parsing complex shell commands.
1 parent f2a06b4 commit 9e47682

3 files changed

Lines changed: 1545 additions & 157 deletions

File tree

src/ide_tools/common/hooks/shell_execution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def extract_and_redact_command_files(
3838

3939
try:
4040
# Parse command to extract input files
41-
_, input_files = parse_shell_command(command, initial_cwd=cwd)
41+
result = parse_shell_command(command, initial_cwd=cwd)
42+
input_files = result["input_files"]
4243

4344
logger.info(f"Extracted {len(input_files)} input files from command: {input_files}")
4445

0 commit comments

Comments
 (0)