chief-clancy 0.5.3 → 0.5.4

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 (72) hide show
  1. package/README.md +3 -3
  2. package/dist/bundle/clancy-afk.js +2 -2
  3. package/dist/bundle/clancy-once.js +29 -28
  4. package/dist/schemas/env.d.ts +27 -0
  5. package/dist/schemas/env.d.ts.map +1 -1
  6. package/dist/schemas/env.js +8 -0
  7. package/dist/schemas/env.js.map +1 -1
  8. package/dist/scripts/afk/afk.d.ts.map +1 -1
  9. package/dist/scripts/afk/afk.js +1 -8
  10. package/dist/scripts/afk/afk.js.map +1 -1
  11. package/dist/scripts/board/github/github.d.ts.map +1 -1
  12. package/dist/scripts/board/github/github.js +1 -2
  13. package/dist/scripts/board/github/github.js.map +1 -1
  14. package/dist/scripts/board/linear/linear.d.ts.map +1 -1
  15. package/dist/scripts/board/linear/linear.js +35 -4
  16. package/dist/scripts/board/linear/linear.js.map +1 -1
  17. package/dist/scripts/once/once.d.ts.map +1 -1
  18. package/dist/scripts/once/once.js +205 -35
  19. package/dist/scripts/once/once.js.map +1 -1
  20. package/dist/scripts/shared/env-schema/env-schema.d.ts.map +1 -1
  21. package/dist/scripts/shared/env-schema/env-schema.js +3 -2
  22. package/dist/scripts/shared/env-schema/env-schema.js.map +1 -1
  23. package/dist/scripts/shared/format/format.d.ts +11 -0
  24. package/dist/scripts/shared/format/format.d.ts.map +1 -0
  25. package/dist/scripts/shared/format/format.js +18 -0
  26. package/dist/scripts/shared/format/format.js.map +1 -0
  27. package/dist/scripts/shared/git-ops/git-ops.d.ts +9 -0
  28. package/dist/scripts/shared/git-ops/git-ops.d.ts.map +1 -1
  29. package/dist/scripts/shared/git-ops/git-ops.js +20 -0
  30. package/dist/scripts/shared/git-ops/git-ops.js.map +1 -1
  31. package/dist/scripts/shared/http/http.d.ts +2 -0
  32. package/dist/scripts/shared/http/http.d.ts.map +1 -1
  33. package/dist/scripts/shared/http/http.js +2 -0
  34. package/dist/scripts/shared/http/http.js.map +1 -1
  35. package/dist/scripts/shared/progress/progress.d.ts +3 -2
  36. package/dist/scripts/shared/progress/progress.d.ts.map +1 -1
  37. package/dist/scripts/shared/progress/progress.js +1 -1
  38. package/dist/scripts/shared/progress/progress.js.map +1 -1
  39. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.d.ts +38 -0
  40. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.d.ts.map +1 -0
  41. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.js +69 -0
  42. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.js.map +1 -0
  43. package/dist/scripts/shared/pull-request/github/github.d.ts +15 -0
  44. package/dist/scripts/shared/pull-request/github/github.d.ts.map +1 -0
  45. package/dist/scripts/shared/pull-request/github/github.js +29 -0
  46. package/dist/scripts/shared/pull-request/github/github.js.map +1 -0
  47. package/dist/scripts/shared/pull-request/gitlab/gitlab.d.ts +23 -0
  48. package/dist/scripts/shared/pull-request/gitlab/gitlab.d.ts.map +1 -0
  49. package/dist/scripts/shared/pull-request/gitlab/gitlab.js +27 -0
  50. package/dist/scripts/shared/pull-request/gitlab/gitlab.js.map +1 -0
  51. package/dist/scripts/shared/pull-request/post-pr/post-pr.d.ts +31 -0
  52. package/dist/scripts/shared/pull-request/post-pr/post-pr.d.ts.map +1 -0
  53. package/dist/scripts/shared/pull-request/post-pr/post-pr.js +61 -0
  54. package/dist/scripts/shared/pull-request/post-pr/post-pr.js.map +1 -0
  55. package/dist/scripts/shared/pull-request/pr-body/pr-body.d.ts +19 -0
  56. package/dist/scripts/shared/pull-request/pr-body/pr-body.d.ts.map +1 -0
  57. package/dist/scripts/shared/pull-request/pr-body/pr-body.js +35 -0
  58. package/dist/scripts/shared/pull-request/pr-body/pr-body.js.map +1 -0
  59. package/dist/scripts/shared/remote/remote.d.ts +41 -0
  60. package/dist/scripts/shared/remote/remote.d.ts.map +1 -0
  61. package/dist/scripts/shared/remote/remote.js +227 -0
  62. package/dist/scripts/shared/remote/remote.js.map +1 -0
  63. package/dist/types/index.d.ts +1 -0
  64. package/dist/types/index.d.ts.map +1 -1
  65. package/dist/types/remote.d.ts +44 -0
  66. package/dist/types/remote.d.ts.map +1 -0
  67. package/dist/types/remote.js +5 -0
  68. package/dist/types/remote.js.map +1 -0
  69. package/package.json +1 -1
  70. package/src/roles/setup/workflows/init.md +91 -0
  71. package/src/roles/setup/workflows/scaffold.md +27 -0
  72. package/src/roles/setup/workflows/settings.md +62 -0
@@ -59,6 +59,7 @@ Jira
59
59
  [B3] Label filter {CLANCY_LABEL if set, else off}
60
60
  [B4] Pickup status {CLANCY_STATUS_IN_PROGRESS if set, else off}
61
61
  [B5] Done status {CLANCY_STATUS_DONE if set, else off}
62
+ [B6] Review status {CLANCY_STATUS_REVIEW if set, else "uses Done status"}
62
63
 
63
64
  {If GitHub:}
64
65
  GitHub
@@ -69,6 +70,7 @@ Linear
69
70
  [B1] Label filter {CLANCY_LABEL if set, else off}
70
71
  [B2] Pickup status {CLANCY_STATUS_IN_PROGRESS if set, else off}
71
72
  [B3] Done status {CLANCY_STATUS_DONE if set, else off}
73
+ [B4] Review status {CLANCY_STATUS_REVIEW if set, else "uses Done status"}
72
74
 
73
75
  Roles
74
76
  [R1] Planner {✅ enabled / ─ disabled}
@@ -82,6 +84,9 @@ Planner
82
84
  {If Linear:}
83
85
  [P1] Plan state type {CLANCY_PLAN_STATE_TYPE:-backlog}
84
86
 
87
+ Git Host (PR creation)
88
+ [H1] Git host token {platform: GitHub/GitLab/Bitbucket or "not set"}
89
+
85
90
  Integrations
86
91
  [I1] Figma MCP {enabled if FIGMA_API_KEY set, else not set}
87
92
  [I2] Playwright {enabled if PLAYWRIGHT_ENABLED=true, else off}
@@ -232,6 +237,23 @@ If [2]: remove `CLANCY_STATUS_DONE` from `.clancy/.env`.
232
237
 
233
238
  ---
234
239
 
240
+ ### [B6] Jira Review status (Jira only)
241
+
242
+ ```
243
+ Jira Review status — current: {value or "uses Done status"}
244
+ When Clancy creates a pull request (instead of merging locally), it transitions
245
+ the ticket to this status. Falls back to CLANCY_STATUS_DONE if not set.
246
+
247
+ [1] Set status name
248
+ [2] Off (use Done status for PR flow too)
249
+ [3] Cancel
250
+ ```
251
+
252
+ If [1]: prompt `What status name should Clancy use for In Review? (e.g. In Review, Ready for Review, Code Review)` then write `CLANCY_STATUS_REVIEW=<value>` to `.clancy/.env`.
253
+ If [2]: remove `CLANCY_STATUS_REVIEW` from `.clancy/.env`.
254
+
255
+ ---
256
+
235
257
  ### [B1] Linear label filter (Linear only)
236
258
 
237
259
  ```
@@ -283,6 +305,23 @@ If [2]: remove `CLANCY_STATUS_DONE` from `.clancy/.env`.
283
305
 
284
306
  ---
285
307
 
308
+ ### [B4] Linear Review status (Linear only)
309
+
310
+ ```
311
+ Linear Review status — current: {value or "uses Done state"}
312
+ When Clancy creates a pull request (instead of merging locally), it moves
313
+ the issue to this state. Falls back to CLANCY_STATUS_DONE if not set.
314
+
315
+ [1] Set state name
316
+ [2] Off (use Done state for PR flow too)
317
+ [3] Cancel
318
+ ```
319
+
320
+ If [1]: prompt `What workflow state name should Clancy use for In Review? (e.g. In Review, Ready for Review, Code Review)` then write `CLANCY_STATUS_REVIEW=<value>` to `.clancy/.env`.
321
+ If [2]: remove `CLANCY_STATUS_REVIEW` from `.clancy/.env`.
322
+
323
+ ---
324
+
286
325
  ### [R1] Planner role
287
326
 
288
327
  ```
@@ -355,6 +394,28 @@ If [3]: prompt `What state type should /clancy:plan fetch from?` then write `CLA
355
394
 
356
395
  ---
357
396
 
397
+ ### [H1] Git host token
398
+
399
+ Only shown for Jira and Linear boards. GitHub Issues users already have `GITHUB_TOKEN` for PR creation.
400
+
401
+ ```
402
+ Git host — current: {GitHub / GitLab / Bitbucket / not set}
403
+ Clancy pushes feature branches and creates PRs on your git host.
404
+
405
+ [1] GitHub
406
+ [2] GitLab
407
+ [3] Bitbucket
408
+ [4] Remove (push and create PRs manually)
409
+ [5] Cancel
410
+ ```
411
+
412
+ If [1]: prompt `Paste your GitHub personal access token:` then write `GITHUB_TOKEN=<value>` to `.clancy/.env`. Remove any existing `GITLAB_TOKEN`, `BITBUCKET_USER`, `BITBUCKET_TOKEN`.
413
+ If [2]: prompt `Paste your GitLab personal access token:` then write `GITLAB_TOKEN=<value>` to `.clancy/.env`. Optionally ask for a self-hosted API base URL (e.g. `https://gitlab.example.com/api/v4`) and write `CLANCY_GIT_API_URL` and `CLANCY_GIT_PLATFORM="gitlab"`. If the user enters just a hostname or instance URL without `/api/v4`, append `/api/v4` automatically. Remove any existing `GITHUB_TOKEN` (only if board is not GitHub), `BITBUCKET_USER`, `BITBUCKET_TOKEN`.
414
+ If [3]: prompt for `Bitbucket username` and `Bitbucket app password`, write `BITBUCKET_USER` and `BITBUCKET_TOKEN` to `.clancy/.env`. Remove any existing `GITHUB_TOKEN` (only if board is not GitHub), `GITLAB_TOKEN`.
415
+ If [4]: remove all git host token vars (`GITLAB_TOKEN`, `BITBUCKET_USER`, `BITBUCKET_TOKEN`, `CLANCY_GIT_PLATFORM`, `CLANCY_GIT_API_URL`). Keep `GITHUB_TOKEN` only if board is GitHub Issues.
416
+
417
+ ---
418
+
358
419
  ### [I1] Figma MCP
359
420
 
360
421
  ```
@@ -479,6 +540,7 @@ If no: print `Cancelled. No changes made.` and loop back to the menu.
479
540
  - Jira: `JIRA_BASE_URL`, `JIRA_USER`, `JIRA_API_TOKEN`, `JIRA_PROJECT_KEY`, `CLANCY_JQL_STATUS`, `CLANCY_JQL_SPRINT`
480
541
  - GitHub: `GITHUB_TOKEN`, `GITHUB_REPO`
481
542
  - Linear: `LINEAR_API_KEY`, `LINEAR_TEAM_ID`
543
+ - Git host (all boards): `GITLAB_TOKEN`, `BITBUCKET_USER`, `BITBUCKET_TOKEN`, `CLANCY_GIT_PLATFORM`, `CLANCY_GIT_API_URL`, `CLANCY_STATUS_REVIEW`
482
544
  2. Write the new board credentials to `.clancy/.env`
483
545
  3. If switching to Jira: also ask the status filter question (same as init Q3) and write `CLANCY_JQL_STATUS` to `.clancy/.env`
484
546
  4. No script replacement needed — the bundled runtime scripts are board-agnostic (board detection happens at runtime from `.clancy/.env`)