@silbaram/artifact-driven-agent 0.1.0

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.
Files changed (68) hide show
  1. package/README.md +456 -0
  2. package/ai-dev-team/.gitkeep +0 -0
  3. package/ai-dev-team/README.md +44 -0
  4. package/ai-dev-team/artifacts/.gitkeep +0 -0
  5. package/ai-dev-team/artifacts/features/_template/api.md +19 -0
  6. package/ai-dev-team/artifacts/features/_template/qa.md +16 -0
  7. package/ai-dev-team/artifacts/features/_template/review.md +14 -0
  8. package/ai-dev-team/artifacts/features/_template/spec.md +28 -0
  9. package/ai-dev-team/artifacts/features/_template/ui.md +14 -0
  10. package/ai-dev-team/artifacts/rfc/RFC-0000-template.md +49 -0
  11. package/ai-dev-team/roles/.gitkeep +0 -0
  12. package/ai-dev-team/rules/.gitkeep +0 -0
  13. package/bin/cli.js +75 -0
  14. package/core/artifacts/architecture-options.md +85 -0
  15. package/core/artifacts/backlog.md +177 -0
  16. package/core/artifacts/current-sprint.md +125 -0
  17. package/core/artifacts/decision.md +72 -0
  18. package/core/artifacts/plan.md +187 -0
  19. package/core/artifacts/project.md +191 -0
  20. package/core/artifacts/qa-report.md +104 -0
  21. package/core/artifacts/review-report.md +103 -0
  22. package/core/roles/architect.md +236 -0
  23. package/core/roles/developer.md +203 -0
  24. package/core/roles/manager.md +300 -0
  25. package/core/roles/planner.md +231 -0
  26. package/core/roles/qa.md +262 -0
  27. package/core/roles/reviewer.md +280 -0
  28. package/core/rules/document-priority.md +196 -0
  29. package/core/rules/escalation.md +171 -0
  30. package/core/rules/iteration.md +236 -0
  31. package/core/rules/rfc.md +31 -0
  32. package/core/rules/rollback.md +218 -0
  33. package/docs/feature-structure.md +36 -0
  34. package/examples/todo-app/README.md +23 -0
  35. package/examples/todo-app/artifacts/backlog.md +23 -0
  36. package/examples/todo-app/artifacts/plan.md +23 -0
  37. package/examples/todo-app/artifacts/project.md +23 -0
  38. package/package.json +49 -0
  39. package/src/commands/interactive.js +101 -0
  40. package/src/commands/logs.js +81 -0
  41. package/src/commands/reset.js +66 -0
  42. package/src/commands/run.js +202 -0
  43. package/src/commands/sessions.js +70 -0
  44. package/src/commands/setup.js +128 -0
  45. package/src/commands/status.js +76 -0
  46. package/src/commands/validate.js +219 -0
  47. package/src/index.js +12 -0
  48. package/src/utils/files.js +134 -0
  49. package/templates/cli/artifacts/commands.md +262 -0
  50. package/templates/cli/artifacts/output-format.md +298 -0
  51. package/templates/cli/roles/cli-developer.md +239 -0
  52. package/templates/cli/rules/command-change.md +225 -0
  53. package/templates/game/artifacts/assets.md +148 -0
  54. package/templates/game/artifacts/game-systems.md +217 -0
  55. package/templates/game/artifacts/hud.md +199 -0
  56. package/templates/game/roles/game-logic.md +193 -0
  57. package/templates/game/roles/rendering.md +137 -0
  58. package/templates/game/rules/system-change.md +184 -0
  59. package/templates/library/artifacts/changelog.md +84 -0
  60. package/templates/library/artifacts/examples.md +157 -0
  61. package/templates/library/artifacts/public-api.md +197 -0
  62. package/templates/library/roles/library-developer.md +180 -0
  63. package/templates/library/rules/versioning.md +186 -0
  64. package/templates/web-dev/artifacts/api.md +212 -0
  65. package/templates/web-dev/artifacts/ui.md +104 -0
  66. package/templates/web-dev/roles/backend.md +134 -0
  67. package/templates/web-dev/roles/frontend.md +161 -0
  68. package/templates/web-dev/rules/api-change.md +198 -0
@@ -0,0 +1,198 @@
1
+ # API Change Rules (API 변경 규칙)
2
+
3
+ > 이 문서는 api.md 변경 시 따라야 할 절차를 정의한다.
4
+ > API는 Backend와 Frontend의 계약이므로 일방적 변경은 금지된다.
5
+
6
+ ---
7
+
8
+ ## 1. API 변경 원칙
9
+
10
+ - api.md는 **Backend와 Frontend의 공식 계약**
11
+ - 변경은 **양측 합의** 후에만 가능
12
+ - **Breaking change는 Manager 승인** 필수
13
+ - 모든 변경은 **문서에 기록**
14
+
15
+ ---
16
+
17
+ ## 2. 변경 유형 분류
18
+
19
+ ### 2.1 Non-Breaking Change (하위 호환)
20
+
21
+ | 유형 | 예시 | 승인 |
22
+ |------|------|------|
23
+ | 새 엔드포인트 추가 | POST /api/v1/new | Frontend 통보 |
24
+ | 응답에 optional 필드 추가 | 기존 + new_field | Frontend 통보 |
25
+ | 새 에러 코드 추가 | ERROR_NEW | Frontend 통보 |
26
+ | 요청에 optional 파라미터 | ?new_param=value | Frontend 통보 |
27
+
28
+ ### 2.2 Breaking Change (하위 비호환)
29
+
30
+ | 유형 | 예시 | 승인 |
31
+ |------|------|------|
32
+ | 엔드포인트 삭제/변경 | /v1/old → /v2/new | Manager 필수 |
33
+ | 필수 필드 추가 | required 필드 | Manager 필수 |
34
+ | 필드 삭제 | 기존 필드 제거 | Manager 필수 |
35
+ | 필드 타입 변경 | string → number | Manager 필수 |
36
+ | 에러 코드 변경/삭제 | 기존 코드 변경 | Manager 필수 |
37
+
38
+ ---
39
+
40
+ ## 3. 변경 절차
41
+
42
+ ### 3.1 Non-Breaking Change
43
+
44
+ ```
45
+ Backend 변경 필요 발견
46
+
47
+ api.md에 [PROPOSED] 태그로 추가
48
+
49
+ Frontend에 통보
50
+
51
+ Frontend 확인 (48시간 내)
52
+ ├── 이의 없음 → [PROPOSED] 제거, 확정
53
+ └── 이의 있음 → 협의 후 조정
54
+
55
+ api.md 갱신 → 구현 진행
56
+ ```
57
+
58
+ ### 3.2 Breaking Change
59
+
60
+ ```
61
+ Breaking Change 필요 발견
62
+
63
+ Manager에게 에스컬레이션
64
+
65
+ api.md에 [BREAKING] 태그로 추가
66
+
67
+ Manager 검토
68
+ ├── 승인 → Frontend 통보 → 마이그레이션 계획
69
+ └── 거부 → 대안 검토
70
+
71
+ 양측 합의 후 구현
72
+ ```
73
+
74
+ ---
75
+
76
+ ## 4. 변경 요청 형식
77
+
78
+ ### 4.1 Non-Breaking 변경 통보
79
+
80
+ ```markdown
81
+ ## API 변경 통보
82
+
83
+ - 유형: Non-Breaking
84
+ - Task: TASK-XXX
85
+ - 대상: [엔드포인트]
86
+
87
+ ### 변경 내용
88
+ [변경 설명]
89
+
90
+ ### 영향
91
+ - 기존 동작: 영향 없음
92
+ - 추가 사항: [내용]
93
+
94
+ ### 일정
95
+ - 적용 예정: YYYY-MM-DD
96
+ ```
97
+
98
+ ### 4.2 Breaking 변경 요청
99
+
100
+ ```markdown
101
+ ## API Breaking Change 요청
102
+
103
+ - 유형: Breaking
104
+ - Task: TASK-XXX
105
+ - 대상: [엔드포인트]
106
+
107
+ ### 변경 내용
108
+ - Before: [현재]
109
+ - After: [변경 후]
110
+
111
+ ### 변경 사유
112
+ [필요 이유]
113
+
114
+ ### 영향 분석
115
+ - 영향받는 화면: [목록]
116
+ - Frontend 수정 필요: [내용]
117
+
118
+ ### 마이그레이션 계획
119
+ 1. [단계]
120
+ 2. [단계]
121
+
122
+ ### 일정
123
+ - 승인 필요: YYYY-MM-DD
124
+ - 적용 예정: YYYY-MM-DD
125
+ ```
126
+
127
+ ---
128
+
129
+ ## 5. 역할별 책임
130
+
131
+ | 역할 | 책임 |
132
+ |------|------|
133
+ | Backend | 변경 제안, api.md 갱신, 구현 |
134
+ | Frontend | 변경 검토, 영향 분석, 적용 |
135
+ | Manager | Breaking change 승인, 일정 조정 |
136
+
137
+ ---
138
+
139
+ ## 6. 버전 관리
140
+
141
+ ### 6.1 URL 버전
142
+
143
+ - 현재: /api/v1
144
+ - Major Breaking 시: /api/v2
145
+
146
+ ### 6.2 하위 호환 기간
147
+
148
+ - Breaking change 시 구버전 유지: 최소 2주
149
+ - 양측 합의 시 단축 가능
150
+
151
+ ---
152
+
153
+ ## 7. 긴급 변경
154
+
155
+ ### 긴급 상황
156
+
157
+ - 보안 취약점
158
+ - 심각한 버그
159
+
160
+ ### 긴급 절차
161
+
162
+ ```
163
+ 긴급 상황 발생
164
+
165
+ Manager에게 즉시 보고
166
+
167
+ Manager 판단 (1시간 내)
168
+
169
+ 승인 시: 즉시 변경 + 사후 문서화
170
+ ```
171
+
172
+ ---
173
+
174
+ ## 8. 금지 사항
175
+
176
+ - ❌ Frontend 통보 없이 API 변경
177
+ - ❌ Manager 승인 없이 Breaking change
178
+ - ❌ 문서 갱신 없이 구현 변경
179
+ - ❌ 합의 없이 일정 변경
180
+
181
+ ---
182
+
183
+ ## 9. 체크리스트
184
+
185
+ ### API 변경 전 체크리스트
186
+
187
+ - [ ] 변경 유형 분류 (Non-Breaking / Breaking)
188
+ - [ ] api.md에 [PROPOSED]/[BREAKING] 태그 추가
189
+ - [ ] Frontend 통보 완료
190
+ - [ ] (Breaking인 경우) Manager 승인 완료
191
+ - [ ] 마이그레이션 계획 수립 (필요 시)
192
+
193
+ ### API 변경 후 체크리스트
194
+
195
+ - [ ] api.md 갱신 (태그 제거)
196
+ - [ ] 변경 이력 기록
197
+ - [ ] Frontend 구현 완료 확인
198
+ - [ ] 테스트 완료