opencode-collaboration 2.2.0__py3-none-any.whl → 2.2.0.post1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- opencode_collaboration-2.2.0.post1.dist-info/METADATA +136 -0
- {opencode_collaboration-2.2.0.dist-info → opencode_collaboration-2.2.0.post1.dist-info}/RECORD +5 -5
- opencode_collaboration-2.2.0.dist-info/METADATA +0 -99
- {opencode_collaboration-2.2.0.dist-info → opencode_collaboration-2.2.0.post1.dist-info}/WHEEL +0 -0
- {opencode_collaboration-2.2.0.dist-info → opencode_collaboration-2.2.0.post1.dist-info}/entry_points.txt +0 -0
- {opencode_collaboration-2.2.0.dist-info → opencode_collaboration-2.2.0.post1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: opencode-collaboration
|
|
3
|
+
Version: 2.2.0.post1
|
|
4
|
+
Summary: 双Agent协作框架 - 产品经理与开发的分离式协作工具
|
|
5
|
+
Author-email: liuzhen <dev@opencode.ai>
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: collaboration,agent,project-management,cli
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Requires-Python: >=3.8
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
Requires-Dist: click>=8.0
|
|
20
|
+
Requires-Dist: pyyaml>=6.0
|
|
21
|
+
Requires-Dist: jinja2>=3.0
|
|
22
|
+
Requires-Dist: rich>=12.0
|
|
23
|
+
Requires-Dist: inquirer>=2.0
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
26
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
27
|
+
Requires-Dist: black>=23.0; extra == "dev"
|
|
28
|
+
Requires-Dist: flake8>=6.0; extra == "dev"
|
|
29
|
+
|
|
30
|
+
# 双 Agent 协作开发系统
|
|
31
|
+
|
|
32
|
+
基于 OpenCode 的双 Agent 协作框架,实现产品经理与开发的分离式协作。
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 安装
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install opencode-collaboration
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 快速开始
|
|
45
|
+
|
|
46
|
+
### 1. 初始化项目
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# 创建新项目
|
|
50
|
+
oc-collab init myproject
|
|
51
|
+
cd myproject
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 2. 创建需求文档
|
|
55
|
+
|
|
56
|
+
编辑 `docs/01-requirements/requirements_v*.md` 文件,定义需求。
|
|
57
|
+
|
|
58
|
+
### 3. 评审并签署
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Agent 2 (开发) 评审需求
|
|
62
|
+
oc-collab review requirements --comment "技术方案可行"
|
|
63
|
+
|
|
64
|
+
# Agent 1 (产品) 签署确认
|
|
65
|
+
oc-collab signoff requirements --comment "同意实现"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 4. 推进到下一阶段
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# 推进到设计阶段
|
|
72
|
+
oc-collab advance -p design
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 常用命令
|
|
78
|
+
|
|
79
|
+
| 命令 | 说明 |
|
|
80
|
+
|------|------|
|
|
81
|
+
| `oc-collab status` | 查看项目状态 |
|
|
82
|
+
| `oc-collab todo` | 查看待办事项 |
|
|
83
|
+
| `oc-collab advance -p <phase>` | 推进到指定阶段 |
|
|
84
|
+
| `oc-collab signoff <stage>` | 签署确认 |
|
|
85
|
+
| `oc-collab history` | 查看协作历史 |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 协作流程
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
需求评审 → 设计评审 → 开发完成 → 测试通过 → 部署上线
|
|
93
|
+
↓ ↓ ↓ ↓ ↓
|
|
94
|
+
签署 签署 签署 签署 完成
|
|
95
|
+
|
|
96
|
+
每个阶段必须双方签署后才能进入下一阶段
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 阶段说明
|
|
102
|
+
|
|
103
|
+
| 阶段 | 说明 |
|
|
104
|
+
|------|------|
|
|
105
|
+
| `requirements` | 需求评审阶段 |
|
|
106
|
+
| `design` | 设计评审阶段 |
|
|
107
|
+
| `development` | 开发阶段 |
|
|
108
|
+
| `testing` | 测试阶段 |
|
|
109
|
+
| `deployment` | 部署阶段 |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 项目结构
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
myproject/
|
|
117
|
+
├── docs/
|
|
118
|
+
│ ├── 01-requirements/ # 需求文档
|
|
119
|
+
│ ├── 02-design/ # 设计文档
|
|
120
|
+
│ └── 03-test/ # 测试报告
|
|
121
|
+
├── state/
|
|
122
|
+
│ └── project_state.yaml # 项目状态
|
|
123
|
+
└── src/ # 源代码
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 详细文档
|
|
129
|
+
|
|
130
|
+
完整使用指南请参见项目 GitHub 仓库:
|
|
131
|
+
https://github.com/opencode/dual-agent-collaboration-system
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
**Author**: liuzhen
|
|
136
|
+
**License**: MIT
|
{opencode_collaboration-2.2.0.dist-info → opencode_collaboration-2.2.0.post1.dist-info}/RECORD
RENAMED
|
@@ -41,8 +41,8 @@ src/utils/date.py,sha256=iWS0hTaoDE2iC0jJb3lTIB5yK5xxRbrC1C98Fgb8LFc,577
|
|
|
41
41
|
src/utils/file.py,sha256=5IFKkT2m1emJUHDzIiLsa4YG9GCqOhhmiLvc6aVY9-Y,1301
|
|
42
42
|
src/utils/lock.py,sha256=soxYFsBKJHUzN-_QXkorVfgnmt0D5p1SZtqwPNqcWPI,2880
|
|
43
43
|
src/utils/yaml.py,sha256=zcbh0OP7NOqxTexEAR3akQkllUh8xeKt42O2CHIImyg,777
|
|
44
|
-
opencode_collaboration-2.2.0.dist-info/METADATA,sha256=
|
|
45
|
-
opencode_collaboration-2.2.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
46
|
-
opencode_collaboration-2.2.0.dist-info/entry_points.txt,sha256=fYyHWa_NefMp527B7fHl-29SwZQCElRdtxm_7LoUK-Y,48
|
|
47
|
-
opencode_collaboration-2.2.0.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
|
|
48
|
-
opencode_collaboration-2.2.0.dist-info/RECORD,,
|
|
44
|
+
opencode_collaboration-2.2.0.post1.dist-info/METADATA,sha256=aVXyO5Cbqzqx6DLDogUlcrc5d_FaG9nHzSE7SRJ987U,3125
|
|
45
|
+
opencode_collaboration-2.2.0.post1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
46
|
+
opencode_collaboration-2.2.0.post1.dist-info/entry_points.txt,sha256=fYyHWa_NefMp527B7fHl-29SwZQCElRdtxm_7LoUK-Y,48
|
|
47
|
+
opencode_collaboration-2.2.0.post1.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
|
|
48
|
+
opencode_collaboration-2.2.0.post1.dist-info/RECORD,,
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: opencode-collaboration
|
|
3
|
-
Version: 2.2.0
|
|
4
|
-
Summary: 双Agent协作框架 - 产品经理与开发的分离式协作工具
|
|
5
|
-
Author-email: OpenCode <dev@opencode.ai>
|
|
6
|
-
License: MIT
|
|
7
|
-
Keywords: collaboration,agent,project-management,cli
|
|
8
|
-
Classifier: Development Status :: 3 - Alpha
|
|
9
|
-
Classifier: Intended Audience :: Developers
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Requires-Python: >=3.8
|
|
18
|
-
Description-Content-Type: text/markdown
|
|
19
|
-
Requires-Dist: click>=8.0
|
|
20
|
-
Requires-Dist: pyyaml>=6.0
|
|
21
|
-
Requires-Dist: jinja2>=3.0
|
|
22
|
-
Requires-Dist: rich>=12.0
|
|
23
|
-
Requires-Dist: inquirer>=2.0
|
|
24
|
-
Provides-Extra: dev
|
|
25
|
-
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
26
|
-
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
27
|
-
Requires-Dist: black>=23.0; extra == "dev"
|
|
28
|
-
Requires-Dist: flake8>=6.0; extra == "dev"
|
|
29
|
-
|
|
30
|
-
# 双Agent协作开发系统
|
|
31
|
-
|
|
32
|
-
基于 OpenCode 的双 Agent 协作框架,实现产品经理与开发的分离式协作。
|
|
33
|
-
|
|
34
|
-
## 目录结构
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
dual-agent-collaboration-system/
|
|
38
|
-
├── docs/
|
|
39
|
-
│ ├── 01-requirements/ # 需求阶段文档
|
|
40
|
-
│ │ ├── requirements_v*.md # 需求文档
|
|
41
|
-
│ │ ├── system_design_v*.md # 系统设计
|
|
42
|
-
│ │ ├── requirements_review_*.md # 评审意见
|
|
43
|
-
│ │ └── requirements_signoff.md # 签署确认
|
|
44
|
-
│ ├── 02-design/ # 设计阶段文档
|
|
45
|
-
│ ├── 03-test/ # 测试阶段文档
|
|
46
|
-
│ ├── 04-changelog/ # 变更记录
|
|
47
|
-
│ └── COLLABORATION_GUIDE.md # 协作流程指南
|
|
48
|
-
├── state/
|
|
49
|
-
│ └── project_state.yaml # 项目状态文件
|
|
50
|
-
├── src/ # 源代码
|
|
51
|
-
├── scripts/ # 辅助脚本
|
|
52
|
-
└── .gitignore
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## 快速开始
|
|
56
|
-
|
|
57
|
-
### Agent 1 (产品经理) 初始化项目
|
|
58
|
-
```bash
|
|
59
|
-
cd dual-agent-collaboration-system
|
|
60
|
-
git pull
|
|
61
|
-
# 创建需求文档
|
|
62
|
-
# 更新状态文件
|
|
63
|
-
git add .
|
|
64
|
-
git commit -m "feat(requirements): initial requirements"
|
|
65
|
-
git push
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Agent 2 (开发) 开始评审
|
|
69
|
-
```bash
|
|
70
|
-
cd dual-agent-collaboration-system
|
|
71
|
-
git pull
|
|
72
|
-
# 阅读需求文档
|
|
73
|
-
# 创建评审意见
|
|
74
|
-
git add .
|
|
75
|
-
git commit -m "review(requirements): initial review"
|
|
76
|
-
git push
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## 协作流程
|
|
80
|
-
|
|
81
|
-
1. **需求评审** → Agent1 创建需求 → Agent2 Review → 双方确认
|
|
82
|
-
2. **设计评审** → Agent1 创建设计 → Agent2 Review → 双方确认
|
|
83
|
-
3. **开发测试** → Agent2 开发 → Agent1 黑盒测试 → 通过确认
|
|
84
|
-
4. **部署发布** → Agent1 部署 → 更新变更记录
|
|
85
|
-
|
|
86
|
-
## 状态文件
|
|
87
|
-
|
|
88
|
-
每次操作后更新 `state/project_state.yaml`,记录当前阶段和状态。
|
|
89
|
-
|
|
90
|
-
## 标签规范
|
|
91
|
-
|
|
92
|
-
- `requirements-v1-approved` - 需求确认
|
|
93
|
-
- `design-v1-approved` - 设计确认
|
|
94
|
-
- `test-v1-passed` - 测试通过
|
|
95
|
-
- `release-v1.0.0` - 正式发布
|
|
96
|
-
|
|
97
|
-
## 详细说明
|
|
98
|
-
|
|
99
|
-
参见 [协作流程指南](docs/COLLABORATION_GUIDE.md)
|
{opencode_collaboration-2.2.0.dist-info → opencode_collaboration-2.2.0.post1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|