- WS response 파일에 _from_ws 마커 추가하여 processResponseFile 삭제 방지 - extractContextFromNearby에 sibling 탐색 추가 (AG Native DOM 구조 대응) - thinking 블록 (max-h-[200px]) 필터링으로 내부 사고 릴레이 차단 - DOM 탐색 depth 5→10 확대 + pre.font-mono 우선 탐색 - 사용자 메시지 셀렉터 (.select-text.rounded-lg) 추가
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
const os = require('os');
|
|
|
|
const d = JSON.parse(fs.readFileSync(
|
|
path.join(os.homedir(), '.gemini', 'antigravity', 'bridge', 'dump_html.json'), 'utf-8'
|
|
));
|
|
const s = JSON.stringify(d.body);
|
|
|
|
console.log('title:', d.quickInfo.title);
|
|
console.log('Has id=conversation:', s.includes('"id":"conversation"'));
|
|
console.log('Has agent-side-panel:', s.includes('antigravity-agent-side-panel'));
|
|
|
|
// Find message-block patterns
|
|
const mb = [...s.matchAll(/message-block/g)];
|
|
console.log('message-block occurrences:', mb.length);
|
|
|
|
// Find user-related class patterns
|
|
const userPatterns = ['user-color', 'user-background', 'user-message', 'user-query', 'user-input', 'human'];
|
|
userPatterns.forEach(p => {
|
|
const cnt = [...s.matchAll(new RegExp(p, 'gi'))].length;
|
|
if (cnt > 0) console.log(` ${p}: ${cnt} occurrences`);
|
|
});
|
|
|
|
// Show all unique classes that include 'message' or 'chat' or 'conversation'
|
|
const clsMatches = [...s.matchAll(/"cls":"([^"]*(?:message|chat|conversation|query|user|human)[^"]*)"/gi)];
|
|
console.log('\nClasses with message/chat/conversation/user/human:');
|
|
const uniq = [...new Set(clsMatches.map(m => m[1]))];
|
|
uniq.forEach(c => console.log(' ', c.substring(0, 120)));
|