| 文件 | 原始行数 | 当前行数 | 新子模块 |
|---|---|---|---|
| src/i18n.ts | 782 | 已删除 | en.ts, zh.ts, index.ts (共772行) |
| src/tools.ts | 828 | 13 (barrel) | sandbox.ts, security.ts, definitions.ts, execution.ts (共851行) |
| src/crypto-util.ts | 600 | 86 (barrel) | core.ts, secrets.ts, keypool.ts, config.ts (共639行) |
| src/web.ts | 1068 | 906 | helpers.ts, sessions.ts, auth.ts (共176行) |
| src/cli.ts | 768 | 416 | colors.ts, input.ts (共370行) |
| src/chat-enhanced.ts | 865 | 159 | executor.ts, pavr-phases.ts, helpers.ts (共768行) |
| src/chat.ts | 407 | 333 | config.ts, prompt.ts, helpers.ts (共92行) |
import from './tools.js')./i18n/index.js(因为已没有 i18n.ts barrel).js 扩展名,与项目规范一致🎯 零功能变更 — 所有代码只是搬迁,逻辑完全不变
i18n/en.ts — 英文翻译对象
i18n/zh.ts — 中文翻译对象
i18n/index.ts — 导出 + 语言切换逻辑
tools/sandbox.ts — 沙箱执行环境
tools/security.ts — 安全检查
tools/definitions.ts — 工具定义
tools/execution.ts — 执行引擎
crypto-util/core.ts — 核心加解密
crypto-util/secrets.ts — secrets.enc 读写
crypto-util/keypool.ts — 密钥池管理
crypto-util/config.ts — 配置文件加密
cli.ts 和 web.ts 两个入口点均构建通过