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

Function getSecretRefFromCommandSetting

src/utils/userScriptSecrets.ts:775–781  ·  view source on GitHub ↗
(
	command: IUserScript,
	settingName: string,
)

Source from the content-addressed store, hash-verified

773}
774
775export function getSecretRefFromCommandSetting(
776 command: IUserScript,
777 settingName: string,
778): string | undefined {
779 const value = command.settings?.[settingName];
780 return isUserScriptSecretRef(value) ? value.secretRef : undefined;
781}
782
783async function clearRefsFromSettings(
784 app: App | undefined,

Callers 2

hasSecretMethod · 0.90
addSecretInputMethod · 0.90

Calls 1

isUserScriptSecretRefFunction · 0.85

Tested by

no test coverage detected