From cd009862749cd98d8f95b181d5d65474d6d23b96 Mon Sep 17 00:00:00 2001 From: Variet Worker Date: Sun, 19 Apr 2026 07:51:29 +0900 Subject: [PATCH] =?UTF-8?q?fix(observer):=20=EA=B9=A8=EC=A7=84=20=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=EC=97=B4=20=EB=A6=AC=ED=84=B0=EB=9F=B4=202=EA=B1=B4?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20=E2=80=94=20walkNode=20=ED=81=AC?= =?UTF-8?q?=EB=9E=98=EC=8B=9C=20=ED=95=B4=EA=B2=B0=20(v0.5.87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extension/package-lock.json | 4 ++-- extension/package.json | 2 +- extension/src/observer-script.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extension/package-lock.json b/extension/package-lock.json index f554803..f42e989 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -1,12 +1,12 @@ { "name": "gravity-bridge", - "version": "0.5.86", + "version": "0.5.87", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gravity-bridge", - "version": "0.5.86", + "version": "0.5.87", "dependencies": { "cheerio": "^1.2.0", "ws": "^8.19.0" diff --git a/extension/package.json b/extension/package.json index 016dbb1..189e33c 100644 --- a/extension/package.json +++ b/extension/package.json @@ -2,7 +2,7 @@ "name": "gravity-bridge", "displayName": "Gravity Bridge", "description": "Discord-based unified approval system for Antigravity AI interactions.", - "version": "0.5.86", + "version": "0.5.87", "publisher": "variet", "engines": { "vscode": "^1.100.0" diff --git a/extension/src/observer-script.ts b/extension/src/observer-script.ts index ad2ba97..f1e8885 100644 --- a/extension/src/observer-script.ts +++ b/extension/src/observer-script.ts @@ -377,7 +377,7 @@ export function generateApprovalObserverScript(_port: number): string { var _conversationDumpCount=0; function walkNode(el, depth, maxDepth, maxChildren) { - if (depth > maxDepth) return {tag:'??,text:'depth limit'}; + if (depth > maxDepth) return {tag:'MAX',text:'depth limit'}; if (!el || !el.tagName) return null; var info = { tag: el.tagName ? el.tagName.toLowerCase() : '#text', @@ -413,7 +413,7 @@ export function generateApprovalObserverScript(_port: number): string { if (childInfo) info.children.push(childInfo); } if (el.children.length > limit) { - info.children.push({tag: '??, text: '+' + (el.children.length - limit) + ' more children'}); + info.children.push({tag: 'TRUNC', text: '+' + (el.children.length - limit) + ' more children'}); } } return info;