扩展

为 Trae IDE 安装社区扩展,增强 AI 能力

DreamHelper 日志捕获

让 AI 自动读取和分析 DreamHelper 输出日志,支持实时捕获和自动分析

v1.0.0by cloud-lua-hub
日志DreamHelper调试

模块组成

VS Code 扩展

状态栏 DH Log 按钮,查看日志文件状态

extension/

dreamhelper 补丁

修改 dreamhelper 扩展使其输出同时写入文件

scripts/patch_dreamhelper.py

AI 分析规则

放入 .trae/rules/ 后 AI 自动分析日志

rule/dreamhelper-log-analysis.md

一键安装脚本

PowerShell 脚本自动化所有步骤

scripts/install.ps1

安装步骤

步骤 1

安装 VS Code 扩展

下载 ZIP,解压到 Trae 扩展目录,或通过开发商模式安装

步骤 2

运行 Python 补丁脚本

执行 patch_dreamhelper.py 修改 dreamhelper 扩展(会自动备份原始文件)

步骤 3

添加 AI 规则

将 dreamhelper-log-analysis.md 放入项目 .trae/rules/ 目录

步骤 4

重启 Trae IDE

完成后重启,即可对 AI 说:“帮我检查日志”

一键安装命令

在项目根目录的终端中运行以下命令,即可自动安装所有组件:

# 在项目根目录打开终端执行: $url="http://119.3.124.33:3000/api/install/extension/dreamhelper-log" $zip="$env:TEMP\dh-log.zip" $extDir="$env:USERPROFILE\.trae-cn\extensions\dreamhelper-log-capture" Invoke-WebRequest $url -OutFile $zip if (Test-Path $extDir) { Remove-Item $extDir -Recurse -Force } Expand-Archive $zip -DestinationPath $extDir -Force Remove-Item $zip -Force # 打补丁(需要 Python 3) python -c "(Invoke-WebRequest http://119.3.124.33:3000/patches/patch-dreamhelper).Content" | python Write-Host "安装完成!请重启 Trae IDE" -ForegroundColor Green

扩展为社区维护,安装前请确认来源可信