Skip to content

feat(core): add shell command interception for destructive operations#37747

Open
Qhunliv13 wants to merge 1 commit into
anomalyco:devfrom
Qhunliv13:command-intercept
Open

feat(core): add shell command interception for destructive operations#37747
Qhunliv13 wants to merge 1 commit into
anomalyco:devfrom
Qhunliv13:command-intercept

Conversation

@Qhunliv13

Copy link
Copy Markdown

Issue for this PR

Closes #37743

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Intercepts dangerous shell commands (rm, Remove-Item, >, mv, Set-Content, sed -i) to prevent irreversible file damage at the AST level.

How did you verify your code works?

bun typecheck passes. Verified: rm, Remove-Item, > redirect, sed -i blocked; mkdir, cat, npm run allowed.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@Qhunliv13
Qhunliv13 force-pushed the command-intercept branch from 6aef67e to 68f7fa0 Compare July 19, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]:add shell command interception for destructive operations

1 participant