|
1 | | -# Contributing to openx |
| 1 | +# Contributing to OpenX / 贡献指南 |
2 | 2 |
|
3 | | -Welcome to the lobster tank! 🦞 |
| 3 | +感谢您有兴趣为 OpenX 做出贡献! |
4 | 4 |
|
5 | | -## Quick Links |
6 | | -- **GitHub:** https://github.com/openx/openx |
7 | | -- **Discord:** https://discord.gg/qkhbAGHRBT |
8 | | -- **X/Twitter:** [@steipete](https://x.com/steipete) / [@openx](https://x.com/openx) |
| 5 | +Thank you for your interest in contributing to OpenX! |
9 | 6 |
|
10 | | -## Maintainers |
| 7 | +## 🇨🇳 中文 |
11 | 8 |
|
12 | | -- **Peter Steinberger** - Benevolent Dictator |
13 | | - - GitHub: [@steipete](https://github.com/steipete) · X: [@steipete](https://x.com/steipete) |
| 9 | +### 如何贡献 |
14 | 10 |
|
15 | | -- **Shadow** - Discord + Slack subsystem |
16 | | - - GitHub: [@thewilloftheshadow](https://github.com/thewilloftheshadow) · X: [@4shad0wed](https://x.com/4shad0wed) |
| 11 | +1. Fork 本仓库 |
| 12 | +2. 创建您的特性分支 (`git checkout -b feature/AmazingFeature`) |
| 13 | +3. 提交您的更改 (`git commit -m 'Add some AmazingFeature'`) |
| 14 | +4. 推送到分支 (`git push origin feature/AmazingFeature`) |
| 15 | +5. 创建一个 Pull Request |
17 | 16 |
|
18 | | -- **Jos** - Telegram, API, Nix mode |
19 | | - - GitHub: [@joshp123](https://github.com/joshp123) · X: [@jjpcodes](https://x.com/jjpcodes) |
| 17 | +### 开发环境设置 |
20 | 18 |
|
21 | | -## How to Contribute |
22 | | -1. **Bugs & small fixes** �Open a PR! |
23 | | -2. **New features / architecture** �Start a [GitHub Discussion](https://github.com/openx/openx/discussions) or ask in Discord first |
24 | | -3. **Questions** �Discord #setup-help |
| 19 | +```bash |
| 20 | +# 克隆仓库 |
| 21 | +git clone https://github.com/aibgsps-sys/openX.git |
| 22 | +cd openX |
25 | 23 |
|
26 | | -## Before You PR |
27 | | -- Test locally with your openx instance |
28 | | -- Run linter: `npm run lint` |
29 | | -- Keep PRs focused (one thing per PR) |
30 | | -- Describe what & why |
| 24 | +# 安装依赖 |
| 25 | +pnpm install |
31 | 26 |
|
32 | | -## AI/Vibe-Coded PRs Welcome! 🤖 |
| 27 | +# 构建 UI |
| 28 | +pnpm ui:build |
33 | 29 |
|
34 | | -Built with Codex, Claude, or other AI tools? **Awesome - just mark it!** |
| 30 | +# 构建项目 |
| 31 | +pnpm build |
35 | 32 |
|
36 | | -Please include in your PR: |
37 | | -- [ ] Mark as AI-assisted in the PR title or description |
38 | | -- [ ] Note the degree of testing (untested / lightly tested / fully tested) |
39 | | -- [ ] Include prompts or session logs if possible (super helpful!) |
40 | | -- [ ] Confirm you understand what the code does |
| 33 | +# 启动开发服务器 |
| 34 | +node openx.mjs gateway --dev |
| 35 | +``` |
41 | 36 |
|
42 | | -AI PRs are first-class citizens here. We just want transparency so reviewers know what to look for. |
| 37 | +### 代码规范 |
43 | 38 |
|
44 | | -## Current Focus & Roadmap 🗺 |
| 39 | +- 使用 TypeScript |
| 40 | +- 遵循现有的代码风格 |
| 41 | +- 添加必要的注释 |
| 42 | +- 编写测试用例 |
45 | 43 |
|
46 | | -We are currently prioritizing: |
47 | | -- **Stability**: Fixing edge cases in channel connections (WhatsApp/Telegram). |
48 | | -- **UX**: Improving the onboarding wizard and error messages. |
49 | | -- **Skills**: Expanding the library of bundled skills and improving the Skill Creation developer experience. |
50 | | -- **Performance**: Optimizing token usage and compaction logic. |
| 44 | +--- |
51 | 45 |
|
52 | | -Check the [GitHub Issues](https://github.com/openx/openx/issues) for "good first issue" labels! |
| 46 | +## 🇺🇸 English |
| 47 | + |
| 48 | +### How to Contribute |
| 49 | + |
| 50 | +1. Fork the repository |
| 51 | +2. Create your feature branch (`git checkout -b feature/AmazingFeature`) |
| 52 | +3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) |
| 53 | +4. Push to the branch (`git push origin feature/AmazingFeature`) |
| 54 | +5. Open a Pull Request |
| 55 | + |
| 56 | +### Development Setup |
| 57 | + |
| 58 | +```bash |
| 59 | +# Clone the repository |
| 60 | +git clone https://github.com/aibgsps-sys/openX.git |
| 61 | +cd openX |
| 62 | + |
| 63 | +# Install dependencies |
| 64 | +pnpm install |
| 65 | + |
| 66 | +# Build UI |
| 67 | +pnpm ui:build |
| 68 | + |
| 69 | +# Build project |
| 70 | +pnpm build |
| 71 | + |
| 72 | +# Start development server |
| 73 | +node openx.mjs gateway --dev |
| 74 | +``` |
| 75 | + |
| 76 | +### Code Style |
| 77 | + |
| 78 | +- Use TypeScript |
| 79 | +- Follow existing code style |
| 80 | +- Add necessary comments |
| 81 | +- Write tests |
| 82 | + |
| 83 | +## License / 许可证 |
| 84 | + |
| 85 | +By contributing, you agree that your contributions will be licensed under the MIT License. |
| 86 | +贡献即表示您同意您的贡献将根据 MIT 许可证进行许可。 |
0 commit comments