重构: 将 TypeScript 转为 JavaScript 并优化项目文件结构

- 将 src/IpcManager.ts 和 src/IpcUi.ts 手动转写为干净的 JavaScript,消除编译产物中的 polyfill 代码

- 移动 main.js、scene-script.js、mcp-proxy.js 至 src/ 目录,统一源码管理

- 移动 DEVELOPMENT.md、IPC_MESSAGES.md、UPDATE_LOG.md、注意事项.md 至 docs/ 目录

- 删除 dist/ 编译产物目录和 tsconfig.json

- 更新 package.json 入口路径、所有模块引用路径

- 更新 README.md 和 DEVELOPMENT.md 中的架构说明、文件路径引用和项目规范

- 更新 .gitignore 启用 dist 忽略规则
This commit is contained in:
火焰库拉
2026-02-28 09:33:36 +08:00
parent aadf69300f
commit c9e0f45c9d
18 changed files with 342 additions and 1401 deletions

View File

@@ -6,7 +6,7 @@
*/
const fs = require("fs");
const { IpcUi } = require("../dist/IpcUi");
const { IpcUi } = require("../src/IpcUi");
Editor.Panel.extend({
/**
@@ -87,7 +87,7 @@ Editor.Panel.extend({
}
});
// 初始化 IPC 调试专用 UI (由 TypeScript 编写并编译到 dist)
// 初始化 IPC 调试专用 UI
new IpcUi(root);
// 2. 标签页切换逻辑