This commit is contained in:
Lakee Sivaraya
2026-01-16 13:35:25 -08:00
parent 448b8f056c
commit e4dd14df7a

View File

@@ -135,30 +135,6 @@ function getBlockConfigurations(): Record<string, BlockConfig> {
return blockConfigCache
}
/**
* Builds candidate operation identifiers for matching sub-block conditions.
*/
function getOperationCandidates(toolId: string, blockType?: string): string[] {
const candidates = new Set<string>()
const parts = toolId.split('_')
candidates.add(toolId)
if (parts.length >= 1) {
candidates.add(parts[parts.length - 1])
}
if (parts.length >= 3) {
const compoundOperation = parts.slice(2).join('_')
candidates.add(compoundOperation)
}
if (blockType && toolId.startsWith(`${blockType}_`)) {
const suffix = toolId.slice(blockType.length + 1)
candidates.add(suffix)
}
return Array.from(candidates)
}
/**
* Gets all parameters for a tool, categorized by their usage
* Also includes UI component information from block configurations