MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isSafeOutputCommand

Function isSafeOutputCommand

src/tools/PowerShellTool/readOnlyValidation.ts:1038–1041  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1036 * Checks if a command name (after alias resolution) is a safe output cmdlet.
1037 */
1038export function isSafeOutputCommand(name: string): boolean {
1039 const canonical = resolveToCanonical(name)
1040 return SAFE_OUTPUT_CMDLETS.has(canonical)
1041}
1042
1043/**
1044 * Checks if a command element is a pipeline-tail transformer that was moved

Callers 3

checkPermissionModeFunction · 0.85
isReadOnlyCommandFunction · 0.85

Calls 2

resolveToCanonicalFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected