@fredericboyer/dev-team 0.6.0 → 0.8.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 (47) hide show
  1. package/README.md +12 -11
  2. package/dist/bin/dev-team.js +12 -12
  3. package/dist/bin/dev-team.js.map +1 -1
  4. package/dist/create-agent.js +6 -6
  5. package/dist/create-agent.js.map +1 -1
  6. package/dist/doctor.js +15 -16
  7. package/dist/doctor.js.map +1 -1
  8. package/dist/files.js +2 -0
  9. package/dist/files.js.map +1 -1
  10. package/dist/init.js +55 -44
  11. package/dist/init.js.map +1 -1
  12. package/dist/scan.js +9 -9
  13. package/dist/scan.js.map +1 -1
  14. package/dist/skill-recommendations.d.ts +57 -0
  15. package/dist/skill-recommendations.js +290 -0
  16. package/dist/skill-recommendations.js.map +1 -0
  17. package/dist/status.js +11 -11
  18. package/dist/status.js.map +1 -1
  19. package/dist/update.d.ts +1 -4
  20. package/dist/update.js +178 -59
  21. package/dist/update.js.map +1 -1
  22. package/package.json +3 -3
  23. package/templates/CLAUDE.md +9 -7
  24. package/templates/agents/dev-team-beck.md +14 -2
  25. package/templates/agents/dev-team-borges.md +4 -4
  26. package/templates/agents/dev-team-conway.md +15 -3
  27. package/templates/agents/dev-team-deming.md +20 -2
  28. package/templates/agents/dev-team-drucker.md +21 -7
  29. package/templates/agents/dev-team-hamilton.md +14 -2
  30. package/templates/agents/dev-team-mori.md +14 -2
  31. package/templates/agents/dev-team-tufte.md +14 -2
  32. package/templates/agents/dev-team-voss.md +14 -2
  33. package/templates/hooks/dev-team-post-change-review.js +1 -25
  34. package/templates/hooks/dev-team-pre-commit-gate.js +80 -47
  35. package/templates/hooks/dev-team-watch-list.js +3 -3
  36. package/templates/settings.json +6 -20
  37. package/templates/skill-recommendations.json +169 -0
  38. package/templates/skills/dev-team-assess/SKILL.md +167 -0
  39. package/templates/skills/dev-team-audit/SKILL.md +8 -3
  40. package/templates/skills/dev-team-merge/SKILL.md +95 -0
  41. package/templates/skills/dev-team-review/SKILL.md +11 -4
  42. package/templates/skills/dev-team-task/SKILL.md +34 -44
  43. package/dist/parallel.d.ts +0 -127
  44. package/dist/parallel.js +0 -323
  45. package/dist/parallel.js.map +0 -1
  46. package/templates/hooks/dev-team-parallel-loop.js +0 -188
  47. package/templates/hooks/dev-team-task-loop.js +0 -73
@@ -1,73 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * dev-team-task-loop.js
5
- * Stop hook — implements iterative task loop with adversarial review gates.
6
- *
7
- * When a task loop is active (.claude/dev-team-task.json exists):
8
- * - Intercepts session exit
9
- * - Checks if completion criteria are met (no [DEFECT] challenges)
10
- * - If not met, feeds the task back for another iteration
11
- * - Respects max iteration limit
12
- *
13
- * State file: .claude/dev-team-task.json (created by /dev-team:task skill)
14
- */
15
-
16
- "use strict";
17
-
18
- const fs = require("fs");
19
- const path = require("path");
20
-
21
- const STATE_FILE = path.join(process.cwd(), ".claude", "dev-team-task.json");
22
-
23
- // No state file means no active task loop — allow normal exit
24
- if (!fs.existsSync(STATE_FILE)) {
25
- process.exit(0);
26
- }
27
-
28
- let state;
29
- try {
30
- state = JSON.parse(fs.readFileSync(STATE_FILE, "utf-8"));
31
- } catch {
32
- // Corrupted state file — clean up and allow exit
33
- try {
34
- fs.unlinkSync(STATE_FILE);
35
- } catch {
36
- /* ignore */
37
- }
38
- process.exit(0);
39
- }
40
-
41
- const { prompt, iteration = 1, maxIterations = 10, sessionId: _sessionId } = state;
42
-
43
- // Check iteration limit
44
- if (iteration >= maxIterations) {
45
- console.log(
46
- `[dev-team task-loop] Max iterations (${maxIterations}) reached. Exiting loop. Review remaining issues manually.`,
47
- );
48
- try {
49
- fs.unlinkSync(STATE_FILE);
50
- } catch {
51
- /* ignore */
52
- }
53
- process.exit(0);
54
- }
55
-
56
- // Increment iteration and update state
57
- state.iteration = iteration + 1;
58
- try {
59
- fs.writeFileSync(STATE_FILE, JSON.stringify(state, null, 2));
60
- } catch {
61
- // Can't write state — allow exit
62
- process.exit(0);
63
- }
64
-
65
- // Block exit and re-inject the task prompt
66
- const output = JSON.stringify({
67
- decision: "block",
68
- reason: prompt,
69
- systemMessage: `[dev-team task-loop] Iteration ${iteration + 1}/${maxIterations}. Review findings and address any [DEFECT] challenges. When no [DEFECT] remains, output <promise>DONE</promise> to exit the loop. To cancel: delete .claude/dev-team-task.json`,
70
- });
71
-
72
- console.log(output);
73
- process.exit(0);