MCPcopy Create free account
hub / github.com/freecodexyz/free-code / dangerousRemovalDeny

Function dangerousRemovalDeny

src/tools/PowerShellTool/pathValidation.ts:848–857  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

846}
847
848export function dangerousRemovalDeny(path: string): PermissionResult {
849 return {
850 behavior: 'deny',
851 message: `Remove-Item on system path '${path}' is blocked. This path is protected from removal.`,
852 decisionReason: {
853 type: 'other',
854 reason: 'Removal targets a protected system path',
855 },
856 }
857}
858
859/**
860 * Checks if a resolved path is allowed for the given operation type.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected