feat(agent): Connect AI 웹사이트 탐색 기능(read_url) 추가 및 웹 스크래핑 구현

This commit is contained in:
Jay
2026-04-16 01:23:56 +09:00
parent c0a2876685
commit 1c3db89016
46 changed files with 2286 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
import * as fs from 'fs';
const base = fs.readFileSync('src/extension.ts', 'utf-8');
const match = base.match(/_getHtml.*?\{\s*return\s+(`(?:[^`]|\\`)*`);/m);
if (match) {
let templateBody = match[1];
// make it a valid JS file
fs.writeFileSync('test_html2.js', `const html = ${templateBody};\nfs.writeFileSync('test_eval3.html', html);\nconsole.log(html.length);`);
}