claude-code-orchestrator-kit 1.0.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.
- package/.claude/agents/database/workers/api-builder.md +155 -0
- package/.claude/agents/database/workers/database-architect.md +193 -0
- package/.claude/agents/database/workers/supabase-auditor.md +1070 -0
- package/.claude/agents/development/workers/code-reviewer.md +968 -0
- package/.claude/agents/development/workers/cost-calculator-specialist.md +683 -0
- package/.claude/agents/development/workers/llm-service-specialist.md +999 -0
- package/.claude/agents/development/workers/skill-builder-v2.md +480 -0
- package/.claude/agents/development/workers/typescript-types-specialist.md +649 -0
- package/.claude/agents/development/workers/utility-builder.md +582 -0
- package/.claude/agents/documentation/workers/technical-writer.md +152 -0
- package/.claude/agents/frontend/workers/fullstack-nextjs-specialist.md +206 -0
- package/.claude/agents/frontend/workers/visual-effects-creator.md +159 -0
- package/.claude/agents/health/orchestrators/bug-orchestrator.md +1045 -0
- package/.claude/agents/health/orchestrators/dead-code-orchestrator.md +1045 -0
- package/.claude/agents/health/orchestrators/dependency-orchestrator.md +1045 -0
- package/.claude/agents/health/orchestrators/security-orchestrator.md +1045 -0
- package/.claude/agents/health/workers/bug-fixer.md +525 -0
- package/.claude/agents/health/workers/bug-hunter.md +649 -0
- package/.claude/agents/health/workers/dead-code-hunter.md +446 -0
- package/.claude/agents/health/workers/dead-code-remover.md +437 -0
- package/.claude/agents/health/workers/dependency-auditor.md +379 -0
- package/.claude/agents/health/workers/dependency-updater.md +436 -0
- package/.claude/agents/health/workers/security-scanner.md +700 -0
- package/.claude/agents/health/workers/vulnerability-fixer.md +524 -0
- package/.claude/agents/infrastructure/workers/infrastructure-specialist.md +156 -0
- package/.claude/agents/infrastructure/workers/orchestration-logic-specialist.md +1260 -0
- package/.claude/agents/infrastructure/workers/qdrant-specialist.md +503 -0
- package/.claude/agents/infrastructure/workers/quality-validator-specialist.md +984 -0
- package/.claude/agents/meta/workers/meta-agent-v3.md +503 -0
- package/.claude/agents/research/workers/problem-investigator.md +507 -0
- package/.claude/agents/research/workers/research-specialist.md +423 -0
- package/.claude/agents/testing/workers/accessibility-tester.md +813 -0
- package/.claude/agents/testing/workers/integration-tester.md +188 -0
- package/.claude/agents/testing/workers/mobile-fixes-implementer.md +252 -0
- package/.claude/agents/testing/workers/mobile-responsiveness-tester.md +180 -0
- package/.claude/agents/testing/workers/performance-optimizer.md +262 -0
- package/.claude/agents/testing/workers/test-writer.md +800 -0
- package/.claude/commands/health-bugs.md +297 -0
- package/.claude/commands/health-cleanup.md +297 -0
- package/.claude/commands/health-deps.md +297 -0
- package/.claude/commands/health-metrics.md +747 -0
- package/.claude/commands/health-security.md +297 -0
- package/.claude/commands/push.md +21 -0
- package/.claude/commands/speckit.analyze.md +184 -0
- package/.claude/commands/speckit.checklist.md +294 -0
- package/.claude/commands/speckit.clarify.md +178 -0
- package/.claude/commands/speckit.constitution.md +78 -0
- package/.claude/commands/speckit.implement.md +182 -0
- package/.claude/commands/speckit.plan.md +87 -0
- package/.claude/commands/speckit.specify.md +250 -0
- package/.claude/commands/speckit.tasks.md +137 -0
- package/.claude/commands/translate-doc.md +95 -0
- package/.claude/commands/worktree-cleanup.md +382 -0
- package/.claude/commands/worktree-create.md +287 -0
- package/.claude/commands/worktree-list.md +239 -0
- package/.claude/commands/worktree-remove.md +339 -0
- package/.claude/schemas/base-plan.schema.json +82 -0
- package/.claude/schemas/bug-plan.schema.json +71 -0
- package/.claude/schemas/dead-code-plan.schema.json +71 -0
- package/.claude/schemas/dependency-plan.schema.json +74 -0
- package/.claude/schemas/security-plan.schema.json +71 -0
- package/.claude/scripts/gates/check-bundle-size.sh +47 -0
- package/.claude/scripts/gates/check-coverage.sh +67 -0
- package/.claude/scripts/gates/check-security.sh +46 -0
- package/.claude/scripts/release.sh +740 -0
- package/.claude/settings.local.json +21 -0
- package/.claude/settings.local.json.example +20 -0
- package/.claude/skills/calculate-priority-score/SKILL.md +229 -0
- package/.claude/skills/calculate-priority-score/scoring-matrix.json +83 -0
- package/.claude/skills/extract-version/SKILL.md +228 -0
- package/.claude/skills/format-commit-message/SKILL.md +189 -0
- package/.claude/skills/format-commit-message/template.md +64 -0
- package/.claude/skills/format-markdown-table/SKILL.md +202 -0
- package/.claude/skills/format-markdown-table/examples.md +84 -0
- package/.claude/skills/format-todo-list/SKILL.md +222 -0
- package/.claude/skills/format-todo-list/template.json +30 -0
- package/.claude/skills/generate-changelog/SKILL.md +258 -0
- package/.claude/skills/generate-changelog/commit-mapping.json +47 -0
- package/.claude/skills/generate-report-header/SKILL.md +228 -0
- package/.claude/skills/generate-report-header/template.md +66 -0
- package/.claude/skills/parse-error-logs/SKILL.md +286 -0
- package/.claude/skills/parse-error-logs/patterns.json +26 -0
- package/.claude/skills/parse-git-status/SKILL.md +164 -0
- package/.claude/skills/parse-package-json/SKILL.md +151 -0
- package/.claude/skills/parse-package-json/schema.json +43 -0
- package/.claude/skills/render-template/SKILL.md +245 -0
- package/.claude/skills/rollback-changes/SKILL.md +582 -0
- package/.claude/skills/rollback-changes/changes-log-schema.json +101 -0
- package/.claude/skills/run-quality-gate/SKILL.md +404 -0
- package/.claude/skills/run-quality-gate/gate-mappings.json +97 -0
- package/.claude/skills/validate-plan-file/SKILL.md +327 -0
- package/.claude/skills/validate-plan-file/schema.json +35 -0
- package/.claude/skills/validate-report-file/SKILL.md +256 -0
- package/.claude/skills/validate-report-file/schema.json +67 -0
- package/.env.example +49 -0
- package/.github/BRANCH_PROTECTION.md +137 -0
- package/.github/workflows/build.yml +70 -0
- package/.github/workflows/claude-code-review.yml +255 -0
- package/.github/workflows/claude.yml +79 -0
- package/.github/workflows/deploy-staging.yml +90 -0
- package/.github/workflows/test.yml +104 -0
- package/.gitignore +116 -0
- package/CLAUDE.md +137 -0
- package/LICENSE +72 -0
- package/README.md +1098 -0
- package/docs/ARCHITECTURE.md +746 -0
- package/docs/Agents Ecosystem/AGENT-ORCHESTRATION.md +568 -0
- package/docs/Agents Ecosystem/AI-AGENT-ECOSYSTEM-README.md +658 -0
- package/docs/Agents Ecosystem/ARCHITECTURE.md +606 -0
- package/docs/Agents Ecosystem/QUALITY-GATES-SPECIFICATION.md +1315 -0
- package/docs/Agents Ecosystem/REPORT-TEMPLATE-STANDARD.md +1324 -0
- package/docs/Agents Ecosystem/spec-kit-comprehensive-updates.md +478 -0
- package/docs/FAQ.md +572 -0
- package/docs/MIGRATION-GUIDE.md +542 -0
- package/docs/PERFORMANCE-OPTIMIZATION.md +494 -0
- package/docs/ROADMAP.md +439 -0
- package/docs/TUTORIAL-CUSTOM-AGENTS.md +2041 -0
- package/docs/USE-CASES.md +706 -0
- package/index.js +96 -0
- package/mcp/.mcp.base.json +21 -0
- package/mcp/.mcp.frontend.json +29 -0
- package/mcp/.mcp.full.json +67 -0
- package/mcp/.mcp.local.example.json +7 -0
- package/mcp/.mcp.local.json +7 -0
- package/mcp/.mcp.n8n.json +45 -0
- package/mcp/.mcp.supabase-full.json +35 -0
- package/mcp/.mcp.supabase-only.json +28 -0
- package/package.json +78 -0
- package/postinstall.js +71 -0
- package/switch-mcp.sh +101 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Remove a git worktree and optionally delete its branch
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Remove Git Worktree
|
|
6
|
+
|
|
7
|
+
Безопасно удаляет git worktree и опционально удаляет связанную ветку.
|
|
8
|
+
|
|
9
|
+
**Что делает команда:**
|
|
10
|
+
- Проверяет статус worktree (есть ли uncommitted changes)
|
|
11
|
+
- Удаляет worktree директорию
|
|
12
|
+
- Опционально удаляет git ветку
|
|
13
|
+
- Выполняет cleanup административных файлов
|
|
14
|
+
|
|
15
|
+
**Аргументы:**
|
|
16
|
+
- `<feature-name>` - название фичи/worktree (обязательно)
|
|
17
|
+
- `[--force]` - принудительное удаление (опционально)
|
|
18
|
+
- `[--delete-branch]` - удалить ветку после удаления worktree (опционально)
|
|
19
|
+
|
|
20
|
+
**Примеры:**
|
|
21
|
+
```bash
|
|
22
|
+
/worktree-remove admin-panel
|
|
23
|
+
/worktree-remove admin-panel --delete-branch
|
|
24
|
+
/worktree-remove admin-panel --force
|
|
25
|
+
/worktree-remove admin-panel --force --delete-branch
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Your Task
|
|
31
|
+
|
|
32
|
+
### Step 1: Получение аргументов
|
|
33
|
+
|
|
34
|
+
Извлеки аргументы из запроса пользователя:
|
|
35
|
+
- `FEATURE_NAME` - название фичи (обязательный)
|
|
36
|
+
- `--force` - флаг принудительного удаления (опциональный)
|
|
37
|
+
- `--delete-branch` - флаг удаления ветки (опциональный)
|
|
38
|
+
|
|
39
|
+
**Валидация:**
|
|
40
|
+
- FEATURE_NAME не должно быть пустым
|
|
41
|
+
- Запроси подтверждение перед удалением
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### Step 2: Проверка worktree
|
|
46
|
+
|
|
47
|
+
1. **Получить список всех worktrees**
|
|
48
|
+
```bash
|
|
49
|
+
git worktree list --porcelain
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
2. **Найти worktree по имени**
|
|
53
|
+
- Ищи путь содержащий `megacampus2-worktrees/FEATURE_NAME`
|
|
54
|
+
- Извлеки полный путь и название ветки
|
|
55
|
+
|
|
56
|
+
3. **Проверить существование**
|
|
57
|
+
- Если worktree не найден → выведи ошибку и список доступных worktrees
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### Step 3: Проверка состояния
|
|
62
|
+
|
|
63
|
+
1. **Проверить статус worktree** (если не --force)
|
|
64
|
+
```bash
|
|
65
|
+
cd /путь/к/worktree && git status --short
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
2. **Если есть изменения:**
|
|
69
|
+
- Покажи список изменений
|
|
70
|
+
- Спроси подтверждение у пользователя:
|
|
71
|
+
```
|
|
72
|
+
⚠️ В worktree есть незакоммиченные изменения!
|
|
73
|
+
|
|
74
|
+
Изменения:
|
|
75
|
+
[список файлов]
|
|
76
|
+
|
|
77
|
+
Варианты:
|
|
78
|
+
1. Commit и push изменения
|
|
79
|
+
2. Удалить с потерей изменений (--force)
|
|
80
|
+
3. Отменить удаление
|
|
81
|
+
|
|
82
|
+
Что делаем? (commit/force/cancel)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
3. **Проверить, не является ли это основным worktree**
|
|
86
|
+
- Основной worktree удалять нельзя
|
|
87
|
+
- Если это main worktree → выведи ошибку
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
### Step 4: Удаление worktree
|
|
92
|
+
|
|
93
|
+
1. **Удалить worktree**
|
|
94
|
+
|
|
95
|
+
Без --force:
|
|
96
|
+
```bash
|
|
97
|
+
git worktree remove /путь/к/worktree
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
С --force:
|
|
101
|
+
```bash
|
|
102
|
+
git worktree remove --force /путь/к/worktree
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
2. **Проверить успешность удаления**
|
|
106
|
+
```bash
|
|
107
|
+
git worktree list
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### Step 5: Удаление ветки (опционально)
|
|
113
|
+
|
|
114
|
+
Если указан флаг `--delete-branch`:
|
|
115
|
+
|
|
116
|
+
1. **Проверить, смержена ли ветка**
|
|
117
|
+
```bash
|
|
118
|
+
git branch --merged main | grep "feature/FEATURE_NAME"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
2. **Если ветка не смержена:**
|
|
122
|
+
- Спроси подтверждение:
|
|
123
|
+
```
|
|
124
|
+
⚠️ Ветка "feature/FEATURE_NAME" не смержена в main!
|
|
125
|
+
|
|
126
|
+
Это может привести к потере работы.
|
|
127
|
+
|
|
128
|
+
Варианты:
|
|
129
|
+
1. Удалить принудительно (-D)
|
|
130
|
+
2. Отменить удаление ветки
|
|
131
|
+
3. Сначала создать PR и смержить
|
|
132
|
+
|
|
133
|
+
Что делаем? (delete/cancel/merge)
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
3. **Удалить локальную ветку**
|
|
137
|
+
|
|
138
|
+
Если смержена:
|
|
139
|
+
```bash
|
|
140
|
+
git branch -d feature/FEATURE_NAME
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Если не смержена (с подтверждением):
|
|
144
|
+
```bash
|
|
145
|
+
git branch -D feature/FEATURE_NAME
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
4. **Удалить remote ветку** (если существует)
|
|
149
|
+
```bash
|
|
150
|
+
git push origin --delete feature/FEATURE_NAME
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### Step 6: Cleanup
|
|
156
|
+
|
|
157
|
+
1. **Выполнить prune**
|
|
158
|
+
```bash
|
|
159
|
+
git worktree prune
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
2. **Проверить, удалена ли директория**
|
|
163
|
+
```bash
|
|
164
|
+
ls -la ../megacampus2-worktrees/FEATURE_NAME 2>&1
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Если директория осталась:
|
|
168
|
+
```bash
|
|
169
|
+
rm -rf ../megacampus2-worktrees/FEATURE_NAME
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### Step 7: Вывод информации
|
|
175
|
+
|
|
176
|
+
После успешного удаления:
|
|
177
|
+
|
|
178
|
+
```markdown
|
|
179
|
+
✅ Worktree успешно удален!
|
|
180
|
+
|
|
181
|
+
📁 **Удалено:**
|
|
182
|
+
- Worktree: `/home/me/code/megacampus2-worktrees/FEATURE_NAME`
|
|
183
|
+
- Ветка: `feature/FEATURE_NAME` [если был флаг --delete-branch]
|
|
184
|
+
|
|
185
|
+
🔄 **Выполнено:**
|
|
186
|
+
- ✅ Worktree directory удалена
|
|
187
|
+
- ✅ Git административные файлы очищены
|
|
188
|
+
- [✅ Локальная ветка удалена] [если --delete-branch]
|
|
189
|
+
- [✅ Remote ветка удалена] [если --delete-branch и была remote]
|
|
190
|
+
|
|
191
|
+
📋 **Оставшиеся worktrees:**
|
|
192
|
+
[список из git worktree list]
|
|
193
|
+
|
|
194
|
+
💡 **Полезные команды:**
|
|
195
|
+
- `/worktree-list` - список всех worktrees
|
|
196
|
+
- `/worktree-create <name>` - создать новый worktree
|
|
197
|
+
- `/worktree-cleanup` - очистить устаревшие worktrees
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Обработка ошибок
|
|
203
|
+
|
|
204
|
+
**Если worktree не найден:**
|
|
205
|
+
```markdown
|
|
206
|
+
❌ Worktree "FEATURE_NAME" не найден!
|
|
207
|
+
|
|
208
|
+
**Доступные worktrees:**
|
|
209
|
+
[вывод git worktree list]
|
|
210
|
+
|
|
211
|
+
Возможно вы имели в виду:
|
|
212
|
+
- similar-name-1
|
|
213
|
+
- similar-name-2
|
|
214
|
+
|
|
215
|
+
Используйте:
|
|
216
|
+
```bash
|
|
217
|
+
/worktree-list # для просмотра всех worktrees
|
|
218
|
+
/worktree-remove <правильное-имя>
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
**Если это основной worktree:**
|
|
222
|
+
```markdown
|
|
223
|
+
❌ Нельзя удалить основной worktree!
|
|
224
|
+
|
|
225
|
+
Основной worktree: `/home/me/code/megacampus2`
|
|
226
|
+
|
|
227
|
+
Можно удалять только linked worktrees в:
|
|
228
|
+
`/home/me/code/megacampus2-worktrees/`
|
|
229
|
+
|
|
230
|
+
Доступные для удаления:
|
|
231
|
+
[список linked worktrees]
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**Если worktree заблокирован:**
|
|
235
|
+
```markdown
|
|
236
|
+
❌ Worktree заблокирован!
|
|
237
|
+
|
|
238
|
+
Причина: [причина блокировки]
|
|
239
|
+
|
|
240
|
+
Варианты:
|
|
241
|
+
1. Разблокировать и удалить:
|
|
242
|
+
```bash
|
|
243
|
+
git worktree unlock /путь/к/worktree
|
|
244
|
+
/worktree-remove FEATURE_NAME
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
2. Принудительное удаление:
|
|
248
|
+
```bash
|
|
249
|
+
/worktree-remove FEATURE_NAME --force
|
|
250
|
+
```
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Если есть незакоммиченные изменения (без --force):**
|
|
254
|
+
```markdown
|
|
255
|
+
❌ Worktree содержит незакоммиченные изменения!
|
|
256
|
+
|
|
257
|
+
**Измененные файлы:**
|
|
258
|
+
```
|
|
259
|
+
M src/file1.ts
|
|
260
|
+
M src/file2.ts
|
|
261
|
+
?? src/file3.ts
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
**Варианты:**
|
|
265
|
+
|
|
266
|
+
1. **Сохранить изменения:**
|
|
267
|
+
```bash
|
|
268
|
+
cd ../megacampus2-worktrees/FEATURE_NAME
|
|
269
|
+
git add .
|
|
270
|
+
git commit -m "feat: описание изменений"
|
|
271
|
+
git push -u origin feature/FEATURE_NAME
|
|
272
|
+
cd /home/me/code/megacampus2
|
|
273
|
+
/worktree-remove FEATURE_NAME
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
2. **Удалить с потерей изменений:**
|
|
277
|
+
```bash
|
|
278
|
+
/worktree-remove FEATURE_NAME --force
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
3. **Отменить операцию**
|
|
282
|
+
|
|
283
|
+
Что выбираем? (save/force/cancel)
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
**Если ветка не смержена (при --delete-branch):**
|
|
287
|
+
```markdown
|
|
288
|
+
⚠️ Ветка не смержена в main!
|
|
289
|
+
|
|
290
|
+
**Ветка:** `feature/FEATURE_NAME`
|
|
291
|
+
**Коммитов впереди main:** N
|
|
292
|
+
|
|
293
|
+
**Опасность:** Удаление не смерженной ветки приведет к потере работы!
|
|
294
|
+
|
|
295
|
+
**Рекомендации:**
|
|
296
|
+
|
|
297
|
+
1. **Создать и смержить PR:**
|
|
298
|
+
```bash
|
|
299
|
+
# В worktree (пока не удален)
|
|
300
|
+
cd ../megacampus2-worktrees/FEATURE_NAME
|
|
301
|
+
git push -u origin feature/FEATURE_NAME
|
|
302
|
+
gh pr create --title "feat: описание" --body "Описание PR"
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
Затем смержить на GitHub и удалить worktree.
|
|
306
|
+
|
|
307
|
+
2. **Удалить без сохранения (опасно!):**
|
|
308
|
+
```bash
|
|
309
|
+
/worktree-remove FEATURE_NAME --force --delete-branch
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
3. **Удалить worktree, но сохранить ветку:**
|
|
313
|
+
```bash
|
|
314
|
+
/worktree-remove FEATURE_NAME
|
|
315
|
+
# Ветка останется, можно вернуться позже
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Что делаем? (pr/force/keep-branch)
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
## Интерактивные сценарии
|
|
324
|
+
|
|
325
|
+
### Сценарий 1: Чистое удаление
|
|
326
|
+
```markdown
|
|
327
|
+
Пользователь: /worktree-remove admin-panel
|
|
328
|
+
|
|
329
|
+
Worktree чистый (нет изменений) → удаляем сразу:
|
|
330
|
+
|
|
331
|
+
✅ Worktree "admin-panel" удален
|
|
332
|
+
ℹ️ Ветка "feature/admin-panel" сохранена (используйте --delete-branch для удаления)
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
### Сценарий 2: С изменениями
|
|
336
|
+
```markdown
|
|
337
|
+
Пользователь: /worktree-remove admin-panel
|
|
338
|
+
|
|
339
|
+
⚠️ Есть изменения → запрос подтверждения:
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://megacampus2.local/schemas/base-plan.schema.json",
|
|
4
|
+
"title": "Base Plan Schema",
|
|
5
|
+
"description": "Base schema for all orchestrator plan files",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["workflow", "phase", "config", "validation"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"workflow": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Name of the workflow (e.g., 'bug-management', 'security-audit')",
|
|
12
|
+
"minLength": 1
|
|
13
|
+
},
|
|
14
|
+
"phase": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Current phase identifier",
|
|
17
|
+
"minLength": 1
|
|
18
|
+
},
|
|
19
|
+
"phaseNumber": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"description": "Numeric phase identifier for sequencing",
|
|
22
|
+
"minimum": 1
|
|
23
|
+
},
|
|
24
|
+
"config": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Phase-specific configuration",
|
|
27
|
+
"additionalProperties": true
|
|
28
|
+
},
|
|
29
|
+
"validation": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"description": "Validation criteria for this phase",
|
|
32
|
+
"required": ["required"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"required": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"description": "Blocking validation criteria that must pass",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"minItems": 1
|
|
41
|
+
},
|
|
42
|
+
"optional": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"description": "Non-blocking validation criteria (warnings only)",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"nextAgent": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Name of the next agent to invoke (worker name)",
|
|
54
|
+
"minLength": 1
|
|
55
|
+
},
|
|
56
|
+
"timestamp": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "ISO-8601 timestamp when plan was created",
|
|
59
|
+
"format": "date-time"
|
|
60
|
+
},
|
|
61
|
+
"metadata": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "Additional metadata",
|
|
64
|
+
"properties": {
|
|
65
|
+
"createdBy": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Agent that created this plan"
|
|
68
|
+
},
|
|
69
|
+
"iteration": {
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"description": "Iteration number for iterative workflows",
|
|
72
|
+
"minimum": 1
|
|
73
|
+
},
|
|
74
|
+
"maxIterations": {
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"description": "Maximum iterations allowed",
|
|
77
|
+
"minimum": 1
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://megacampus2.local/schemas/bug-plan.schema.json",
|
|
4
|
+
"title": "Bug Management Plan Schema",
|
|
5
|
+
"description": "Schema for bug detection and fixing workflow plan files",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "./base-plan.schema.json"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"workflow": {
|
|
13
|
+
"const": "bug-management"
|
|
14
|
+
},
|
|
15
|
+
"phase": {
|
|
16
|
+
"enum": ["detection", "fixing", "verification"]
|
|
17
|
+
},
|
|
18
|
+
"config": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["priority"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"priority": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["critical", "high", "medium", "low", "all"],
|
|
25
|
+
"description": "Bug priority level to process in this phase"
|
|
26
|
+
},
|
|
27
|
+
"categories": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"description": "Specific bug categories to focus on",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["security", "performance", "type-errors", "runtime-errors", "dead-code", "debug-code"]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"maxBugsPerRun": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"description": "Maximum bugs to fix in single run",
|
|
38
|
+
"minimum": 1,
|
|
39
|
+
"default": 50
|
|
40
|
+
},
|
|
41
|
+
"verifyOnly": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Run verification scan only (no fixes)",
|
|
44
|
+
"default": false
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"validation": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"required": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": ["report-exists", "type-check", "build", "validation-passed"]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"optional": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": ["tests", "lint", "no-new-bugs"]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"nextAgent": {
|
|
68
|
+
"enum": ["bug-hunter", "bug-fixer"]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://megacampus2.local/schemas/dead-code-plan.schema.json",
|
|
4
|
+
"title": "Dead Code Cleanup Plan Schema",
|
|
5
|
+
"description": "Schema for dead code detection and removal workflow plan files",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "./base-plan.schema.json"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"workflow": {
|
|
13
|
+
"const": "dead-code-cleanup"
|
|
14
|
+
},
|
|
15
|
+
"phase": {
|
|
16
|
+
"enum": ["detection", "removal", "verification"]
|
|
17
|
+
},
|
|
18
|
+
"config": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["type"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"type": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["critical", "high", "medium", "low", "all"],
|
|
25
|
+
"description": "Dead code type/priority to process"
|
|
26
|
+
},
|
|
27
|
+
"categories": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"description": "Specific dead code categories",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["unused-exports", "unused-imports", "unreachable-code", "commented-code", "debug-code"]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"maxItemsPerRun": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"description": "Maximum items to remove in single run",
|
|
38
|
+
"minimum": 1,
|
|
39
|
+
"default": 100
|
|
40
|
+
},
|
|
41
|
+
"safeMode": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Only remove high-confidence dead code",
|
|
44
|
+
"default": true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"validation": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"required": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": ["report-exists", "type-check", "build", "validation-passed"]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"optional": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": ["tests", "lint", "bundle-size-reduced"]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"nextAgent": {
|
|
68
|
+
"enum": ["dead-code-hunter", "dead-code-remover"]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://megacampus2.local/schemas/dependency-plan.schema.json",
|
|
4
|
+
"title": "Dependency Management Plan Schema",
|
|
5
|
+
"description": "Schema for dependency audit and update workflow plan files",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "./base-plan.schema.json"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"workflow": {
|
|
13
|
+
"const": "dependency-management"
|
|
14
|
+
},
|
|
15
|
+
"phase": {
|
|
16
|
+
"enum": ["audit", "update", "verification"]
|
|
17
|
+
},
|
|
18
|
+
"config": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["category"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"category": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["security", "unused", "outdated", "all"],
|
|
25
|
+
"description": "Dependency category to process"
|
|
26
|
+
},
|
|
27
|
+
"severity": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["critical", "high", "medium", "low", "all"],
|
|
30
|
+
"description": "For security category: vulnerability severity"
|
|
31
|
+
},
|
|
32
|
+
"maxUpdatesPerRun": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"description": "Maximum dependencies to update in single run",
|
|
35
|
+
"minimum": 1,
|
|
36
|
+
"default": 10
|
|
37
|
+
},
|
|
38
|
+
"updateStrategy": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": ["one-at-a-time", "batch-compatible", "all"],
|
|
41
|
+
"description": "How to batch updates",
|
|
42
|
+
"default": "one-at-a-time"
|
|
43
|
+
},
|
|
44
|
+
"skipTests": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Skip test execution after updates (not recommended)",
|
|
47
|
+
"default": false
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"validation": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"required": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": ["report-exists", "type-check", "build", "validation-passed", "lockfile-valid"]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"optional": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": ["tests", "lint", "no-security-vulns"]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"nextAgent": {
|
|
71
|
+
"enum": ["dependency-auditor", "dependency-updater"]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|