fix(observer): function declaration → var expression — strict mode 크래시 수정 (v0.5.86)

This commit is contained in:
Variet Worker
2026-04-19 07:41:04 +09:00
parent 498683c977
commit 12095f36a4
3 changed files with 6 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "gravity-bridge",
"version": "0.5.85",
"version": "0.5.86",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "gravity-bridge",
"version": "0.5.85",
"version": "0.5.86",
"dependencies": {
"cheerio": "^1.2.0",
"ws": "^8.19.0"

View File

@@ -2,7 +2,7 @@
"name": "gravity-bridge",
"displayName": "Gravity Bridge",
"description": "Discord-based unified approval system for Antigravity AI interactions.",
"version": "0.5.85",
"version": "0.5.86",
"publisher": "variet",
"engines": {
"vscode": "^1.100.0"

View File

@@ -1081,11 +1081,11 @@ export function generateApprovalObserverScript(_port: number): string {
_sent[groupKey]={rid:rid,ts:now};
for(var mk=0;mk<bidList.length;mk++)_sent[bidList[mk]]={rid:rid,ts:now};
// v26: Deferred context (string match, not regex — avoids template literal escaping issues)
function _isGenericDesc(d) {
// v26: Deferred context (string match, not regex)
var _isGenericDesc = function(d) {
var t = d.trim().toLowerCase();
return t === 'always run' || t === 'run' || t === 'allow' || t === 'accept' || t === 'retry' || t === txt.toLowerCase();
}
};
// v26: Deferred context ??if desc is generic ("Always run", button text only),
// delay 500ms and re-extract to allow DOM rendering to complete
var isGenericDesc = _isGenericDesc(desc);