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

Function optionBodyDeclaresSecret

src/utils/userScriptSecrets.ts:426–432  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

424}
425
426function optionBodyDeclaresSecret(body: string): boolean {
427 const properties = readTopLevelObjectProperties(body);
428 const type = properties.get("type");
429 const secret = properties.get("secret");
430
431 return type === "secret" || ((type === "text" || type === "input") && secret === true);
432}
433
434export function detectUserScriptSecretOptions(
435 source: string,

Callers 1

Calls 2

getMethod · 0.45

Tested by

no test coverage detected