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

Function getUserScriptSettings

src/engine/MacroChoiceEngine.ts:138–144  ·  view source on GitHub ↗
(
	value: unknown
)

Source from the content-addressed store, hash-verified

136}
137
138function getUserScriptSettings(
139 value: unknown
140): Record<string, unknown> | undefined {
141 if (!isUserScriptObjectExport(value)) return undefined;
142 const { settings } = value;
143 return isRecord(settings) ? settings : undefined;
144}
145
146function getConditionalScriptCacheKey(condition: ScriptCondition): string {
147 return `${condition.scriptPath}::${condition.exportName ?? "default"}`;

Callers 1

executeUserScriptMethod · 0.85

Calls 2

isUserScriptObjectExportFunction · 0.85
isRecordFunction · 0.70

Tested by

no test coverage detected