chief-clancy 0.3.9 → 0.5.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 (46) hide show
  1. package/README.md +9 -3
  2. package/dist/bundle/clancy-once.js +23 -23
  3. package/dist/installer/file-ops/file-ops.d.ts +1 -1
  4. package/dist/installer/file-ops/file-ops.js +1 -1
  5. package/dist/installer/install.js +121 -26
  6. package/dist/installer/install.js.map +1 -1
  7. package/dist/schemas/env.d.ts +16 -0
  8. package/dist/schemas/env.d.ts.map +1 -1
  9. package/dist/schemas/env.js +4 -0
  10. package/dist/schemas/env.js.map +1 -1
  11. package/package.json +5 -3
  12. package/src/roles/planner/commands/approve.md +7 -0
  13. package/src/roles/planner/commands/plan.md +9 -0
  14. package/src/roles/planner/workflows/approve.md +237 -0
  15. package/src/roles/planner/workflows/plan.md +399 -0
  16. package/src/{workflows → roles/reviewer/workflows}/logs.md +14 -6
  17. package/src/{workflows → roles/reviewer/workflows}/review.md +7 -1
  18. package/src/{commands → roles/setup/commands}/help.md +25 -6
  19. package/src/{workflows → roles/setup/workflows}/init.md +83 -39
  20. package/src/{workflows → roles/setup/workflows}/map-codebase.md +1 -1
  21. package/src/{workflows → roles/setup/workflows}/settings.md +137 -44
  22. package/src/{workflows → roles/setup/workflows}/update-docs.md +5 -2
  23. package/src/{workflows → roles/setup/workflows}/update.md +29 -25
  24. package/src/templates/.env.example.github +9 -0
  25. package/src/templates/.env.example.jira +9 -0
  26. package/src/templates/.env.example.linear +9 -0
  27. package/src/templates/CLAUDE.md +4 -1
  28. /package/src/{commands → roles/implementer/commands}/dry-run.md +0 -0
  29. /package/src/{commands → roles/implementer/commands}/once.md +0 -0
  30. /package/src/{commands → roles/implementer/commands}/run.md +0 -0
  31. /package/src/{workflows → roles/implementer/workflows}/once.md +0 -0
  32. /package/src/{workflows → roles/implementer/workflows}/run.md +0 -0
  33. /package/src/{commands → roles/reviewer/commands}/logs.md +0 -0
  34. /package/src/{commands → roles/reviewer/commands}/review.md +0 -0
  35. /package/src/{commands → roles/reviewer/commands}/status.md +0 -0
  36. /package/src/{workflows → roles/reviewer/workflows}/status.md +0 -0
  37. /package/src/{commands → roles/setup/commands}/doctor.md +0 -0
  38. /package/src/{commands → roles/setup/commands}/init.md +0 -0
  39. /package/src/{commands → roles/setup/commands}/map-codebase.md +0 -0
  40. /package/src/{commands → roles/setup/commands}/settings.md +0 -0
  41. /package/src/{commands → roles/setup/commands}/uninstall.md +0 -0
  42. /package/src/{commands → roles/setup/commands}/update-docs.md +0 -0
  43. /package/src/{commands → roles/setup/commands}/update.md +0 -0
  44. /package/src/{workflows → roles/setup/workflows}/doctor.md +0 -0
  45. /package/src/{workflows → roles/setup/workflows}/scaffold.md +0 -0
  46. /package/src/{workflows → roles/setup/workflows}/uninstall.md +0 -0
@@ -16,6 +16,11 @@ GITHUB_REPO=owner/repo-name
16
16
  # When an issue has a milestone, Clancy auto-creates milestone/{slug} from this branch.
17
17
  CLANCY_BASE_BRANCH=main
18
18
 
19
+ # ─── Optional roles ─────────────────────────────────────────────────────────
20
+ # Comma-separated list of optional roles to enable (e.g. planner)
21
+ # Core roles (implementer, reviewer, setup) are always active.
22
+ # CLANCY_ROLES=planner
23
+
19
24
  # ─── Loop ─────────────────────────────────────────────────────────────────────
20
25
  # Max tickets to process per /clancy:run session (default: 20)
21
26
  MAX_ITERATIONS=20
@@ -38,6 +43,10 @@ MAX_ITERATIONS=20
38
43
  # PLAYWRIGHT_STORYBOOK_PORT=6006
39
44
  # PLAYWRIGHT_STARTUP_WAIT=15
40
45
 
46
+ # ─── Optional: Planner queue ─────────────────────────────────────────────────
47
+ # Label for unrefined tickets that /clancy:plan should fetch (default: needs-refinement)
48
+ # CLANCY_PLAN_LABEL=needs-refinement
49
+
41
50
  # ─── Optional: Notifications ──────────────────────────────────────────────────
42
51
  # Webhook URL for Slack or Teams notifications on ticket completion
43
52
  # CLANCY_NOTIFY_WEBHOOK=https://hooks.slack.com/services/your/webhook/url
@@ -26,6 +26,11 @@ CLANCY_JQL_STATUS="To Do"
26
26
  # When a ticket has a parent epic, Clancy auto-creates epic/{key} from this branch.
27
27
  CLANCY_BASE_BRANCH=main
28
28
 
29
+ # ─── Optional roles ─────────────────────────────────────────────────────────
30
+ # Comma-separated list of optional roles to enable (e.g. planner)
31
+ # Core roles (implementer, reviewer, setup) are always active.
32
+ # CLANCY_ROLES=planner
33
+
29
34
  # ─── Loop ─────────────────────────────────────────────────────────────────────
30
35
  # Max tickets to process per /clancy:run session (default: 5)
31
36
  MAX_ITERATIONS=5
@@ -48,6 +53,10 @@ MAX_ITERATIONS=5
48
53
  # PLAYWRIGHT_STORYBOOK_PORT=6006
49
54
  # PLAYWRIGHT_STARTUP_WAIT=15
50
55
 
56
+ # ─── Optional: Planner queue ─────────────────────────────────────────────────
57
+ # Status name for backlog tickets that /clancy:plan should fetch (default: Backlog)
58
+ # CLANCY_PLAN_STATUS="Backlog"
59
+
51
60
  # ─── Optional: Status transitions ────────────────────────────────────────────
52
61
  # Move tickets automatically when Clancy picks up or completes them.
53
62
  # Set to the exact status name shown in your Jira board column header.
@@ -16,6 +16,11 @@ LINEAR_TEAM_ID=your-team-uuid
16
16
  # When an issue has a parent, Clancy auto-creates epic/{key} from this branch.
17
17
  CLANCY_BASE_BRANCH=main
18
18
 
19
+ # ─── Optional roles ─────────────────────────────────────────────────────────
20
+ # Comma-separated list of optional roles to enable (e.g. planner)
21
+ # Core roles (implementer, reviewer, setup) are always active.
22
+ # CLANCY_ROLES=planner
23
+
19
24
  # ─── Loop ─────────────────────────────────────────────────────────────────────
20
25
  # Max tickets to process per /clancy:run session (default: 20)
21
26
  MAX_ITERATIONS=20
@@ -38,6 +43,10 @@ MAX_ITERATIONS=20
38
43
  # PLAYWRIGHT_STORYBOOK_PORT=6006
39
44
  # PLAYWRIGHT_STARTUP_WAIT=15
40
45
 
46
+ # ─── Optional: Planner queue ─────────────────────────────────────────────────
47
+ # State type for backlog issues that /clancy:plan should fetch (default: backlog)
48
+ # CLANCY_PLAN_STATE_TYPE=backlog
49
+
41
50
  # ─── Optional: Status transitions ────────────────────────────────────────────
42
51
  # Move issues automatically when Clancy picks up or completes them.
43
52
  # Set to the exact workflow state name shown in your Linear board column header.
@@ -53,6 +53,9 @@ When in doubt: "Is the primary deliverable a code change committed to this repo?
53
53
  Log completed tickets to `.clancy/progress.txt`:
54
54
  `YYYY-MM-DD HH:MM | TICKET-KEY | Summary | DONE`
55
55
 
56
+ Planning entries use: `YYYY-MM-DD HH:MM | TICKET-KEY | PLAN | S/M/L`
57
+ Approval entries use: `YYYY-MM-DD HH:MM | TICKET-KEY | APPROVE | —`
58
+
56
59
  ### Design context
57
60
  When a ticket description contains a Figma URL, fetch design context before implementing.
58
61
  Use the three-tier approach in order:
@@ -65,7 +68,7 @@ Figma URL must come from the ticket description only — never from CLAUDE.md or
65
68
 
66
69
  ### Visual checks
67
70
  After implementing a UI ticket, run a visual check before committing.
68
- Read .clancy/docs/PLAYWRIGHT.md to determine which server to use (Storybook or dev server).
71
+ Read `.clancy/docs/PLAYWRIGHT.md` for the authoritative Playwright configuration (which server to use: Storybook or dev server). Use `.clancy/.env` only for ports and start commands as needed.
69
72
  Apply the decision rule against this ticket's description — route/page/screen/layout → dev server,
70
73
  component/atom/molecule/organism/variant/story → Storybook, ambiguous → dev server default.
71
74
  Start the server using health check polling (not sleep). Navigate to the relevant route or story.
File without changes