MCPcopy Create free account
hub / github.com/chhoumann/quickadd / stripUserScriptSecretRefsFromCommands

Function stripUserScriptSecretRefsFromCommands

src/utils/userScriptSecrets.ts:923–932  ·  view source on GitHub ↗
(
	commands: unknown,
	options?: UserScriptSecretSanitizerOptions,
)

Source from the content-addressed store, hash-verified

921}
922
923export function stripUserScriptSecretRefsFromCommands(
924 commands: unknown,
925 options?: UserScriptSecretSanitizerOptions,
926): void {
927 if (!Array.isArray(commands)) return;
928
929 for (const command of commands) {
930 stripUserScriptSecretRefsFromCommand(command, options);
931 }
932}
933
934export function stripUserScriptSecretRefsFromChoice(
935 choice: unknown,

Tested by

no test coverage detected