auto-account-machine/browser-automation-ts/README.md
2025-11-21 17:59:49 +08:00

42 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Browser Automation Framework (TypeScript)
企业级浏览器自动化框架 - 全新TypeScript架构
## 目录结构
```
browser-automation-ts/
├── src/
│ ├── core/ # 核心抽象层
│ │ ├── interfaces/ # 接口定义
│ │ ├── base/ # 抽象基类
│ │ └── types/ # 类型定义
│ │
│ ├── providers/ # 浏览器提供商
│ │ ├── adspower/ # AdsPower实现
│ │ └── playwright/ # Playwright实现
│ │
│ ├── actions/ # 动作系统(抽象)
│ ├── workflow/ # 工作流引擎
│ ├── factory/ # 工厂模式
│ └── di/ # 依赖注入
├── dist/ # 编译输出
├── tests/ # 测试
└── docs/ # 文档
```
## 特性
- ✅ TypeScript 严格模式
- ✅ 完整的 OOP封装、继承、多态
- ✅ 编译时类型检查
- ✅ 依赖注入
- ✅ 策略模式 + 工厂模式
## 与老项目关系
- **独立项目** - 完全独立,不依赖老代码
- **测试后迁移** - 验证通过后替换老项目
- **渐进式** - 可与老项目并存