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

Function getSecretSettingId

src/utils/userScriptSecrets.ts:83–93  ·  view source on GitHub ↗
(
	settingName: string,
	option?: UserScriptOptionDefinition,
)

Source from the content-addressed store, hash-verified

81}
82
83function getSecretSettingId(
84 settingName: string,
85 option?: UserScriptOptionDefinition,
86): string {
87 const optionId = option?.id;
88 if (typeof optionId === "string" && optionId.trim().length > 0) {
89 return optionId;
90 }
91
92 return settingName;
93}
94
95function fitSecretId(
96 commandPart: string,

Callers 2

buildUserScriptSecretIdFunction · 0.85
buildAvailableSecretRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected