fix(observer): 깨진 문자열 리터럴 2건 수정 — walkNode 크래시 해결 (v0.5.87)
This commit is contained in:
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gravity-bridge",
|
"name": "gravity-bridge",
|
||||||
"version": "0.5.86",
|
"version": "0.5.87",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gravity-bridge",
|
"name": "gravity-bridge",
|
||||||
"version": "0.5.86",
|
"version": "0.5.87",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cheerio": "^1.2.0",
|
"cheerio": "^1.2.0",
|
||||||
"ws": "^8.19.0"
|
"ws": "^8.19.0"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "gravity-bridge",
|
"name": "gravity-bridge",
|
||||||
"displayName": "Gravity Bridge",
|
"displayName": "Gravity Bridge",
|
||||||
"description": "Discord-based unified approval system for Antigravity AI interactions.",
|
"description": "Discord-based unified approval system for Antigravity AI interactions.",
|
||||||
"version": "0.5.86",
|
"version": "0.5.87",
|
||||||
"publisher": "variet",
|
"publisher": "variet",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.100.0"
|
"vscode": "^1.100.0"
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ export function generateApprovalObserverScript(_port: number): string {
|
|||||||
var _conversationDumpCount=0;
|
var _conversationDumpCount=0;
|
||||||
|
|
||||||
function walkNode(el, depth, maxDepth, maxChildren) {
|
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;
|
if (!el || !el.tagName) return null;
|
||||||
var info = {
|
var info = {
|
||||||
tag: el.tagName ? el.tagName.toLowerCase() : '#text',
|
tag: el.tagName ? el.tagName.toLowerCase() : '#text',
|
||||||
@@ -413,7 +413,7 @@ export function generateApprovalObserverScript(_port: number): string {
|
|||||||
if (childInfo) info.children.push(childInfo);
|
if (childInfo) info.children.push(childInfo);
|
||||||
}
|
}
|
||||||
if (el.children.length > limit) {
|
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;
|
return info;
|
||||||
|
|||||||
Reference in New Issue
Block a user