test(prompt-gate): narrow audit binding detection

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-17 17:17:20 +09:00
parent 98df0a43e3
commit 0f92d2c98d
+1 -1
View File
@@ -148,7 +148,7 @@ function isPromptBindingPattern(node: ts.Node): boolean {
return node.name.elements.some((element) => {
const keyName = element.propertyName
? getPropertyName(element.propertyName)
: getPropertyName(element.name)
: ts.isIdentifier(element.name) ? getPropertyName(element.name) : null
return keyName === "prompt" || keyName === "promptAsync"
})
}