chief-clancy 0.6.0 → 0.7.1

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 (181) hide show
  1. package/README.md +3 -2
  2. package/dist/bundle/clancy-afk.js +6 -2
  3. package/dist/bundle/clancy-once.js +49 -48
  4. package/dist/installer/hook-installer/hook-installer.d.ts +2 -0
  5. package/dist/installer/hook-installer/hook-installer.d.ts.map +1 -1
  6. package/dist/installer/hook-installer/hook-installer.js +36 -1
  7. package/dist/installer/hook-installer/hook-installer.js.map +1 -1
  8. package/dist/installer/install.js +8 -0
  9. package/dist/installer/install.js.map +1 -1
  10. package/hooks/clancy-branch-guard.js +129 -0
  11. package/hooks/clancy-context-monitor.js +134 -46
  12. package/hooks/clancy-post-compact.js +53 -0
  13. package/hooks/package.json +3 -0
  14. package/package.json +7 -3
  15. package/src/agents/verification-gate.md +128 -0
  16. package/src/roles/setup/workflows/init.md +45 -0
  17. package/src/roles/setup/workflows/scaffold.md +30 -0
  18. package/src/roles/setup/workflows/settings.md +56 -0
  19. package/src/templates/.env.example.github +19 -1
  20. package/src/templates/.env.example.jira +25 -1
  21. package/src/templates/.env.example.linear +19 -1
  22. package/dist/schemas/bitbucket-pr.d.ts +0 -137
  23. package/dist/schemas/bitbucket-pr.d.ts.map +0 -1
  24. package/dist/schemas/bitbucket-pr.js +0 -75
  25. package/dist/schemas/bitbucket-pr.js.map +0 -1
  26. package/dist/schemas/env.d.ts +0 -150
  27. package/dist/schemas/env.d.ts.map +0 -1
  28. package/dist/schemas/env.js +0 -63
  29. package/dist/schemas/env.js.map +0 -1
  30. package/dist/schemas/github-issues.d.ts +0 -105
  31. package/dist/schemas/github-issues.d.ts.map +0 -1
  32. package/dist/schemas/github-issues.js +0 -54
  33. package/dist/schemas/github-issues.js.map +0 -1
  34. package/dist/schemas/gitlab-mr.d.ts +0 -73
  35. package/dist/schemas/gitlab-mr.d.ts.map +0 -1
  36. package/dist/schemas/gitlab-mr.js +0 -33
  37. package/dist/schemas/gitlab-mr.js.map +0 -1
  38. package/dist/schemas/jira.d.ts +0 -59
  39. package/dist/schemas/jira.d.ts.map +0 -1
  40. package/dist/schemas/jira.js +0 -56
  41. package/dist/schemas/jira.js.map +0 -1
  42. package/dist/schemas/linear.d.ts +0 -108
  43. package/dist/schemas/linear.d.ts.map +0 -1
  44. package/dist/schemas/linear.js +0 -84
  45. package/dist/schemas/linear.js.map +0 -1
  46. package/dist/scripts/afk/afk.d.ts +0 -21
  47. package/dist/scripts/afk/afk.d.ts.map +0 -1
  48. package/dist/scripts/afk/afk.js +0 -118
  49. package/dist/scripts/afk/afk.js.map +0 -1
  50. package/dist/scripts/board/github/github.d.ts +0 -104
  51. package/dist/scripts/board/github/github.d.ts.map +0 -1
  52. package/dist/scripts/board/github/github.js +0 -291
  53. package/dist/scripts/board/github/github.js.map +0 -1
  54. package/dist/scripts/board/jira/jira.d.ts +0 -139
  55. package/dist/scripts/board/jira/jira.d.ts.map +0 -1
  56. package/dist/scripts/board/jira/jira.js +0 -378
  57. package/dist/scripts/board/jira/jira.js.map +0 -1
  58. package/dist/scripts/board/linear/linear.d.ts +0 -129
  59. package/dist/scripts/board/linear/linear.d.ts.map +0 -1
  60. package/dist/scripts/board/linear/linear.js +0 -393
  61. package/dist/scripts/board/linear/linear.js.map +0 -1
  62. package/dist/scripts/once/board-ops/board-ops.d.ts +0 -26
  63. package/dist/scripts/once/board-ops/board-ops.d.ts.map +0 -1
  64. package/dist/scripts/once/board-ops/board-ops.js +0 -113
  65. package/dist/scripts/once/board-ops/board-ops.js.map +0 -1
  66. package/dist/scripts/once/deliver/deliver.d.ts +0 -37
  67. package/dist/scripts/once/deliver/deliver.d.ts.map +0 -1
  68. package/dist/scripts/once/deliver/deliver.js +0 -236
  69. package/dist/scripts/once/deliver/deliver.js.map +0 -1
  70. package/dist/scripts/once/fetch-ticket/fetch-ticket.d.ts +0 -22
  71. package/dist/scripts/once/fetch-ticket/fetch-ticket.d.ts.map +0 -1
  72. package/dist/scripts/once/fetch-ticket/fetch-ticket.js +0 -123
  73. package/dist/scripts/once/fetch-ticket/fetch-ticket.js.map +0 -1
  74. package/dist/scripts/once/git-token/git-token.d.ts +0 -13
  75. package/dist/scripts/once/git-token/git-token.d.ts.map +0 -1
  76. package/dist/scripts/once/git-token/git-token.js +0 -30
  77. package/dist/scripts/once/git-token/git-token.js.map +0 -1
  78. package/dist/scripts/once/once.d.ts +0 -12
  79. package/dist/scripts/once/once.d.ts.map +0 -1
  80. package/dist/scripts/once/once.js +0 -356
  81. package/dist/scripts/once/once.js.map +0 -1
  82. package/dist/scripts/once/pr-creation/pr-creation.d.ts +0 -11
  83. package/dist/scripts/once/pr-creation/pr-creation.d.ts.map +0 -1
  84. package/dist/scripts/once/pr-creation/pr-creation.js +0 -50
  85. package/dist/scripts/once/pr-creation/pr-creation.js.map +0 -1
  86. package/dist/scripts/once/rework/rework.d.ts +0 -32
  87. package/dist/scripts/once/rework/rework.d.ts.map +0 -1
  88. package/dist/scripts/once/rework/rework.js +0 -208
  89. package/dist/scripts/once/rework/rework.js.map +0 -1
  90. package/dist/scripts/once/types/types.d.ts +0 -13
  91. package/dist/scripts/once/types/types.d.ts.map +0 -1
  92. package/dist/scripts/once/types/types.js +0 -2
  93. package/dist/scripts/once/types/types.js.map +0 -1
  94. package/dist/scripts/shared/branch/branch.d.ts +0 -50
  95. package/dist/scripts/shared/branch/branch.d.ts.map +0 -1
  96. package/dist/scripts/shared/branch/branch.js +0 -61
  97. package/dist/scripts/shared/branch/branch.js.map +0 -1
  98. package/dist/scripts/shared/claude-cli/claude-cli.d.ts +0 -31
  99. package/dist/scripts/shared/claude-cli/claude-cli.d.ts.map +0 -1
  100. package/dist/scripts/shared/claude-cli/claude-cli.js +0 -60
  101. package/dist/scripts/shared/claude-cli/claude-cli.js.map +0 -1
  102. package/dist/scripts/shared/env-schema/env-schema.d.ts +0 -27
  103. package/dist/scripts/shared/env-schema/env-schema.d.ts.map +0 -1
  104. package/dist/scripts/shared/env-schema/env-schema.js +0 -47
  105. package/dist/scripts/shared/env-schema/env-schema.js.map +0 -1
  106. package/dist/scripts/shared/feasibility/feasibility.d.ts +0 -30
  107. package/dist/scripts/shared/feasibility/feasibility.d.ts.map +0 -1
  108. package/dist/scripts/shared/feasibility/feasibility.js +0 -68
  109. package/dist/scripts/shared/feasibility/feasibility.js.map +0 -1
  110. package/dist/scripts/shared/format/format.d.ts +0 -11
  111. package/dist/scripts/shared/format/format.d.ts.map +0 -1
  112. package/dist/scripts/shared/format/format.js +0 -18
  113. package/dist/scripts/shared/format/format.js.map +0 -1
  114. package/dist/scripts/shared/git-ops/git-ops.d.ts +0 -90
  115. package/dist/scripts/shared/git-ops/git-ops.d.ts.map +0 -1
  116. package/dist/scripts/shared/git-ops/git-ops.js +0 -190
  117. package/dist/scripts/shared/git-ops/git-ops.js.map +0 -1
  118. package/dist/scripts/shared/http/http.d.ts +0 -54
  119. package/dist/scripts/shared/http/http.d.ts.map +0 -1
  120. package/dist/scripts/shared/http/http.js +0 -76
  121. package/dist/scripts/shared/http/http.js.map +0 -1
  122. package/dist/scripts/shared/notify/notify.d.ts +0 -46
  123. package/dist/scripts/shared/notify/notify.d.ts.map +0 -1
  124. package/dist/scripts/shared/notify/notify.js +0 -88
  125. package/dist/scripts/shared/notify/notify.js.map +0 -1
  126. package/dist/scripts/shared/preflight/preflight.d.ts +0 -40
  127. package/dist/scripts/shared/preflight/preflight.d.ts.map +0 -1
  128. package/dist/scripts/shared/preflight/preflight.js +0 -96
  129. package/dist/scripts/shared/preflight/preflight.js.map +0 -1
  130. package/dist/scripts/shared/progress/progress.d.ts +0 -75
  131. package/dist/scripts/shared/progress/progress.d.ts.map +0 -1
  132. package/dist/scripts/shared/progress/progress.js +0 -210
  133. package/dist/scripts/shared/progress/progress.js.map +0 -1
  134. package/dist/scripts/shared/prompt/prompt.d.ts +0 -58
  135. package/dist/scripts/shared/prompt/prompt.d.ts.map +0 -1
  136. package/dist/scripts/shared/prompt/prompt.js +0 -123
  137. package/dist/scripts/shared/prompt/prompt.js.map +0 -1
  138. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.d.ts +0 -82
  139. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.d.ts.map +0 -1
  140. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.js +0 -301
  141. package/dist/scripts/shared/pull-request/bitbucket/bitbucket.js.map +0 -1
  142. package/dist/scripts/shared/pull-request/github/github.d.ts +0 -72
  143. package/dist/scripts/shared/pull-request/github/github.d.ts.map +0 -1
  144. package/dist/scripts/shared/pull-request/github/github.js +0 -226
  145. package/dist/scripts/shared/pull-request/github/github.js.map +0 -1
  146. package/dist/scripts/shared/pull-request/gitlab/gitlab.d.ts +0 -74
  147. package/dist/scripts/shared/pull-request/gitlab/gitlab.d.ts.map +0 -1
  148. package/dist/scripts/shared/pull-request/gitlab/gitlab.js +0 -220
  149. package/dist/scripts/shared/pull-request/gitlab/gitlab.js.map +0 -1
  150. package/dist/scripts/shared/pull-request/post-pr/post-pr.d.ts +0 -31
  151. package/dist/scripts/shared/pull-request/post-pr/post-pr.d.ts.map +0 -1
  152. package/dist/scripts/shared/pull-request/post-pr/post-pr.js +0 -61
  153. package/dist/scripts/shared/pull-request/post-pr/post-pr.js.map +0 -1
  154. package/dist/scripts/shared/pull-request/pr-body/pr-body.d.ts +0 -40
  155. package/dist/scripts/shared/pull-request/pr-body/pr-body.d.ts.map +0 -1
  156. package/dist/scripts/shared/pull-request/pr-body/pr-body.js +0 -84
  157. package/dist/scripts/shared/pull-request/pr-body/pr-body.js.map +0 -1
  158. package/dist/scripts/shared/pull-request/rework-comment/rework-comment.d.ts +0 -23
  159. package/dist/scripts/shared/pull-request/rework-comment/rework-comment.d.ts.map +0 -1
  160. package/dist/scripts/shared/pull-request/rework-comment/rework-comment.js +0 -30
  161. package/dist/scripts/shared/pull-request/rework-comment/rework-comment.js.map +0 -1
  162. package/dist/scripts/shared/remote/remote.d.ts +0 -41
  163. package/dist/scripts/shared/remote/remote.d.ts.map +0 -1
  164. package/dist/scripts/shared/remote/remote.js +0 -227
  165. package/dist/scripts/shared/remote/remote.js.map +0 -1
  166. package/dist/types/board.d.ts +0 -13
  167. package/dist/types/board.d.ts.map +0 -1
  168. package/dist/types/board.js +0 -5
  169. package/dist/types/board.js.map +0 -1
  170. package/dist/types/index.d.ts +0 -4
  171. package/dist/types/index.d.ts.map +0 -1
  172. package/dist/types/index.js +0 -2
  173. package/dist/types/index.js.map +0 -1
  174. package/dist/types/remote.d.ts +0 -55
  175. package/dist/types/remote.d.ts.map +0 -1
  176. package/dist/types/remote.js +0 -5
  177. package/dist/types/remote.js.map +0 -1
  178. package/dist/utils/parse-json/parse-json.d.ts +0 -20
  179. package/dist/utils/parse-json/parse-json.d.ts.map +0 -1
  180. package/dist/utils/parse-json/parse-json.js +0 -27
  181. package/dist/utils/parse-json/parse-json.js.map +0 -1
@@ -1,150 +0,0 @@
1
- /**
2
- * Zod schemas for `.clancy/.env` configuration variables.
3
- *
4
- * Validates board credentials and shared Clancy settings at startup.
5
- */
6
- import * as z from 'zod/mini';
7
- export declare const sharedEnvSchema: z.ZodMiniObject<{
8
- CLANCY_BASE_BRANCH: z.ZodMiniOptional<z.ZodMiniString<string>>;
9
- CLANCY_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
10
- CLANCY_MODEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
11
- CLANCY_NOTIFY_WEBHOOK: z.ZodMiniOptional<z.ZodMiniString<string>>;
12
- CLANCY_STATUS_IN_PROGRESS: z.ZodMiniOptional<z.ZodMiniString<string>>;
13
- CLANCY_STATUS_DONE: z.ZodMiniOptional<z.ZodMiniString<string>>;
14
- CLANCY_STATUS_REVIEW: z.ZodMiniOptional<z.ZodMiniString<string>>;
15
- MAX_ITERATIONS: z.ZodMiniOptional<z.ZodMiniString<string>>;
16
- PLAYWRIGHT_ENABLED: z.ZodMiniOptional<z.ZodMiniString<string>>;
17
- PLAYWRIGHT_DEV_PORT: z.ZodMiniOptional<z.ZodMiniString<string>>;
18
- CLANCY_ROLES: z.ZodMiniOptional<z.ZodMiniString<string>>;
19
- CLANCY_PLAN_STATUS: z.ZodMiniOptional<z.ZodMiniString<string>>;
20
- CLANCY_PLAN_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
21
- CLANCY_PLAN_STATE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
22
- CLANCY_STATUS_PLANNED: z.ZodMiniOptional<z.ZodMiniString<string>>;
23
- CLANCY_SKIP_COMMENTS: z.ZodMiniOptional<z.ZodMiniString<string>>;
24
- GITHUB_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
25
- GITLAB_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
26
- BITBUCKET_USER: z.ZodMiniOptional<z.ZodMiniString<string>>;
27
- BITBUCKET_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
28
- CLANCY_GIT_PLATFORM: z.ZodMiniOptional<z.ZodMiniString<string>>;
29
- CLANCY_GIT_API_URL: z.ZodMiniOptional<z.ZodMiniString<string>>;
30
- CLANCY_MAX_REWORK: z.ZodMiniOptional<z.ZodMiniString<string>>;
31
- CLANCY_TDD: z.ZodMiniOptional<z.ZodMiniString<string>>;
32
- CLANCY_MODE: z.ZodMiniOptional<z.ZodMiniString<string>>;
33
- CLANCY_BRIEF_ISSUE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
34
- CLANCY_BRIEF_EPIC: z.ZodMiniOptional<z.ZodMiniString<string>>;
35
- CLANCY_COMPONENT: z.ZodMiniOptional<z.ZodMiniString<string>>;
36
- }, z.core.$strip>;
37
- export declare const jiraEnvSchema: z.ZodMiniObject<{
38
- CLANCY_BASE_BRANCH: z.ZodMiniOptional<z.ZodMiniString<string>>;
39
- CLANCY_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
40
- CLANCY_MODEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
41
- CLANCY_NOTIFY_WEBHOOK: z.ZodMiniOptional<z.ZodMiniString<string>>;
42
- CLANCY_STATUS_IN_PROGRESS: z.ZodMiniOptional<z.ZodMiniString<string>>;
43
- CLANCY_STATUS_DONE: z.ZodMiniOptional<z.ZodMiniString<string>>;
44
- CLANCY_STATUS_REVIEW: z.ZodMiniOptional<z.ZodMiniString<string>>;
45
- MAX_ITERATIONS: z.ZodMiniOptional<z.ZodMiniString<string>>;
46
- PLAYWRIGHT_ENABLED: z.ZodMiniOptional<z.ZodMiniString<string>>;
47
- PLAYWRIGHT_DEV_PORT: z.ZodMiniOptional<z.ZodMiniString<string>>;
48
- CLANCY_ROLES: z.ZodMiniOptional<z.ZodMiniString<string>>;
49
- CLANCY_PLAN_STATUS: z.ZodMiniOptional<z.ZodMiniString<string>>;
50
- CLANCY_PLAN_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
51
- CLANCY_PLAN_STATE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
52
- CLANCY_STATUS_PLANNED: z.ZodMiniOptional<z.ZodMiniString<string>>;
53
- CLANCY_SKIP_COMMENTS: z.ZodMiniOptional<z.ZodMiniString<string>>;
54
- GITHUB_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
55
- GITLAB_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
56
- BITBUCKET_USER: z.ZodMiniOptional<z.ZodMiniString<string>>;
57
- BITBUCKET_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
58
- CLANCY_GIT_PLATFORM: z.ZodMiniOptional<z.ZodMiniString<string>>;
59
- CLANCY_GIT_API_URL: z.ZodMiniOptional<z.ZodMiniString<string>>;
60
- CLANCY_MAX_REWORK: z.ZodMiniOptional<z.ZodMiniString<string>>;
61
- CLANCY_TDD: z.ZodMiniOptional<z.ZodMiniString<string>>;
62
- CLANCY_MODE: z.ZodMiniOptional<z.ZodMiniString<string>>;
63
- CLANCY_BRIEF_ISSUE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
64
- CLANCY_BRIEF_EPIC: z.ZodMiniOptional<z.ZodMiniString<string>>;
65
- CLANCY_COMPONENT: z.ZodMiniOptional<z.ZodMiniString<string>>;
66
- JIRA_BASE_URL: z.ZodMiniString<string>;
67
- JIRA_USER: z.ZodMiniString<string>;
68
- JIRA_API_TOKEN: z.ZodMiniString<string>;
69
- JIRA_PROJECT_KEY: z.ZodMiniString<string>;
70
- CLANCY_JQL_STATUS: z.ZodMiniOptional<z.ZodMiniString<string>>;
71
- CLANCY_JQL_SPRINT: z.ZodMiniOptional<z.ZodMiniString<string>>;
72
- }, z.core.$strip>;
73
- export declare const githubEnvSchema: z.ZodMiniObject<{
74
- CLANCY_BASE_BRANCH: z.ZodMiniOptional<z.ZodMiniString<string>>;
75
- CLANCY_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
76
- CLANCY_MODEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
77
- CLANCY_NOTIFY_WEBHOOK: z.ZodMiniOptional<z.ZodMiniString<string>>;
78
- CLANCY_STATUS_IN_PROGRESS: z.ZodMiniOptional<z.ZodMiniString<string>>;
79
- CLANCY_STATUS_DONE: z.ZodMiniOptional<z.ZodMiniString<string>>;
80
- CLANCY_STATUS_REVIEW: z.ZodMiniOptional<z.ZodMiniString<string>>;
81
- MAX_ITERATIONS: z.ZodMiniOptional<z.ZodMiniString<string>>;
82
- PLAYWRIGHT_ENABLED: z.ZodMiniOptional<z.ZodMiniString<string>>;
83
- PLAYWRIGHT_DEV_PORT: z.ZodMiniOptional<z.ZodMiniString<string>>;
84
- CLANCY_ROLES: z.ZodMiniOptional<z.ZodMiniString<string>>;
85
- CLANCY_PLAN_STATUS: z.ZodMiniOptional<z.ZodMiniString<string>>;
86
- CLANCY_PLAN_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
87
- CLANCY_PLAN_STATE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
88
- CLANCY_STATUS_PLANNED: z.ZodMiniOptional<z.ZodMiniString<string>>;
89
- CLANCY_SKIP_COMMENTS: z.ZodMiniOptional<z.ZodMiniString<string>>;
90
- GITLAB_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
91
- BITBUCKET_USER: z.ZodMiniOptional<z.ZodMiniString<string>>;
92
- BITBUCKET_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
93
- CLANCY_GIT_PLATFORM: z.ZodMiniOptional<z.ZodMiniString<string>>;
94
- CLANCY_GIT_API_URL: z.ZodMiniOptional<z.ZodMiniString<string>>;
95
- CLANCY_MAX_REWORK: z.ZodMiniOptional<z.ZodMiniString<string>>;
96
- CLANCY_TDD: z.ZodMiniOptional<z.ZodMiniString<string>>;
97
- CLANCY_MODE: z.ZodMiniOptional<z.ZodMiniString<string>>;
98
- CLANCY_BRIEF_ISSUE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
99
- CLANCY_BRIEF_EPIC: z.ZodMiniOptional<z.ZodMiniString<string>>;
100
- CLANCY_COMPONENT: z.ZodMiniOptional<z.ZodMiniString<string>>;
101
- GITHUB_TOKEN: z.ZodMiniString<string>;
102
- GITHUB_REPO: z.ZodMiniString<string>;
103
- }, z.core.$strip>;
104
- export declare const linearEnvSchema: z.ZodMiniObject<{
105
- CLANCY_BASE_BRANCH: z.ZodMiniOptional<z.ZodMiniString<string>>;
106
- CLANCY_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
107
- CLANCY_MODEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
108
- CLANCY_NOTIFY_WEBHOOK: z.ZodMiniOptional<z.ZodMiniString<string>>;
109
- CLANCY_STATUS_IN_PROGRESS: z.ZodMiniOptional<z.ZodMiniString<string>>;
110
- CLANCY_STATUS_DONE: z.ZodMiniOptional<z.ZodMiniString<string>>;
111
- CLANCY_STATUS_REVIEW: z.ZodMiniOptional<z.ZodMiniString<string>>;
112
- MAX_ITERATIONS: z.ZodMiniOptional<z.ZodMiniString<string>>;
113
- PLAYWRIGHT_ENABLED: z.ZodMiniOptional<z.ZodMiniString<string>>;
114
- PLAYWRIGHT_DEV_PORT: z.ZodMiniOptional<z.ZodMiniString<string>>;
115
- CLANCY_ROLES: z.ZodMiniOptional<z.ZodMiniString<string>>;
116
- CLANCY_PLAN_STATUS: z.ZodMiniOptional<z.ZodMiniString<string>>;
117
- CLANCY_PLAN_LABEL: z.ZodMiniOptional<z.ZodMiniString<string>>;
118
- CLANCY_PLAN_STATE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
119
- CLANCY_STATUS_PLANNED: z.ZodMiniOptional<z.ZodMiniString<string>>;
120
- CLANCY_SKIP_COMMENTS: z.ZodMiniOptional<z.ZodMiniString<string>>;
121
- GITHUB_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
122
- GITLAB_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
123
- BITBUCKET_USER: z.ZodMiniOptional<z.ZodMiniString<string>>;
124
- BITBUCKET_TOKEN: z.ZodMiniOptional<z.ZodMiniString<string>>;
125
- CLANCY_GIT_PLATFORM: z.ZodMiniOptional<z.ZodMiniString<string>>;
126
- CLANCY_GIT_API_URL: z.ZodMiniOptional<z.ZodMiniString<string>>;
127
- CLANCY_MAX_REWORK: z.ZodMiniOptional<z.ZodMiniString<string>>;
128
- CLANCY_TDD: z.ZodMiniOptional<z.ZodMiniString<string>>;
129
- CLANCY_MODE: z.ZodMiniOptional<z.ZodMiniString<string>>;
130
- CLANCY_BRIEF_ISSUE_TYPE: z.ZodMiniOptional<z.ZodMiniString<string>>;
131
- CLANCY_BRIEF_EPIC: z.ZodMiniOptional<z.ZodMiniString<string>>;
132
- CLANCY_COMPONENT: z.ZodMiniOptional<z.ZodMiniString<string>>;
133
- LINEAR_API_KEY: z.ZodMiniString<string>;
134
- LINEAR_TEAM_ID: z.ZodMiniString<string>;
135
- }, z.core.$strip>;
136
- export type SharedEnv = z.infer<typeof sharedEnvSchema>;
137
- export type JiraEnv = z.infer<typeof jiraEnvSchema>;
138
- export type GitHubEnv = z.infer<typeof githubEnvSchema>;
139
- export type LinearEnv = z.infer<typeof linearEnvSchema>;
140
- export type BoardConfig = {
141
- provider: 'jira';
142
- env: JiraEnv;
143
- } | {
144
- provider: 'github';
145
- env: GitHubEnv;
146
- } | {
147
- provider: 'linear';
148
- env: LinearEnv;
149
- };
150
- //# sourceMappingURL=env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/schemas/env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAU9B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqC1B,CAAC;AAIH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1B,CAAC;AAIH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAIxD,MAAM,MAAM,WAAW,GACnB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GAClC;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,SAAS,CAAA;CAAE,GACtC;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,SAAS,CAAA;CAAE,CAAC"}
@@ -1,63 +0,0 @@
1
- /**
2
- * Zod schemas for `.clancy/.env` configuration variables.
3
- *
4
- * Validates board credentials and shared Clancy settings at startup.
5
- */
6
- import * as z from 'zod/mini';
7
- /** A non-empty string — rejects `""` from the .env file. */
8
- const nonEmpty = z.string().check(z.minLength(1));
9
- /** A valid HTTP(S) URL. */
10
- const httpUrl = z.string().check(z.regex(/^https?:\/\/.+/));
11
- // ─── Shared optional env vars ────────────────────────────────────────────────
12
- export const sharedEnvSchema = z.object({
13
- CLANCY_BASE_BRANCH: z.optional(z.string()),
14
- CLANCY_LABEL: z.optional(z.string()),
15
- CLANCY_MODEL: z.optional(z.string()),
16
- CLANCY_NOTIFY_WEBHOOK: z.optional(z.string()),
17
- CLANCY_STATUS_IN_PROGRESS: z.optional(z.string()),
18
- CLANCY_STATUS_DONE: z.optional(z.string()),
19
- CLANCY_STATUS_REVIEW: z.optional(z.string()),
20
- MAX_ITERATIONS: z.optional(z.string()),
21
- PLAYWRIGHT_ENABLED: z.optional(z.string()),
22
- PLAYWRIGHT_DEV_PORT: z.optional(z.string()),
23
- CLANCY_ROLES: z.optional(z.string()),
24
- CLANCY_PLAN_STATUS: z.optional(z.string()),
25
- CLANCY_PLAN_LABEL: z.optional(z.string()),
26
- CLANCY_PLAN_STATE_TYPE: z.optional(z.string()),
27
- CLANCY_STATUS_PLANNED: z.optional(z.string()),
28
- CLANCY_SKIP_COMMENTS: z.optional(z.string()),
29
- // Git host integration (for PR creation on non-GitHub boards)
30
- GITHUB_TOKEN: z.optional(z.string()),
31
- GITLAB_TOKEN: z.optional(z.string()),
32
- BITBUCKET_USER: z.optional(z.string()),
33
- BITBUCKET_TOKEN: z.optional(z.string()),
34
- CLANCY_GIT_PLATFORM: z.optional(z.string()),
35
- CLANCY_GIT_API_URL: z.optional(z.string()),
36
- // QA rework loop
37
- CLANCY_MAX_REWORK: z.optional(z.string()),
38
- // Implementation mode
39
- CLANCY_TDD: z.optional(z.string()),
40
- // Strategist role
41
- CLANCY_MODE: z.optional(z.string()),
42
- CLANCY_BRIEF_ISSUE_TYPE: z.optional(z.string()),
43
- CLANCY_BRIEF_EPIC: z.optional(z.string()),
44
- CLANCY_COMPONENT: z.optional(z.string()),
45
- });
46
- // ─── Board-specific schemas ──────────────────────────────────────────────────
47
- export const jiraEnvSchema = z.extend(sharedEnvSchema, {
48
- JIRA_BASE_URL: httpUrl,
49
- JIRA_USER: nonEmpty,
50
- JIRA_API_TOKEN: nonEmpty,
51
- JIRA_PROJECT_KEY: nonEmpty,
52
- CLANCY_JQL_STATUS: z.optional(z.string()),
53
- CLANCY_JQL_SPRINT: z.optional(z.string()),
54
- });
55
- export const githubEnvSchema = z.extend(sharedEnvSchema, {
56
- GITHUB_TOKEN: nonEmpty,
57
- GITHUB_REPO: nonEmpty,
58
- });
59
- export const linearEnvSchema = z.extend(sharedEnvSchema, {
60
- LINEAR_API_KEY: nonEmpty,
61
- LINEAR_TEAM_ID: nonEmpty,
62
- });
63
- //# sourceMappingURL=env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/schemas/env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,4DAA4D;AAC5D,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAElD,2BAA2B;AAC3B,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAE5D,gFAAgF;AAEhF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1C,YAAY,EAAE,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,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,eAAe,EAAE;IACvD,YAAY,EAAE,QAAQ;IACtB,WAAW,EAAE,QAAQ;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,eAAe,EAAE;IACvD,cAAc,EAAE,QAAQ;IACxB,cAAc,EAAE,QAAQ;CACzB,CAAC,CAAC"}
@@ -1,105 +0,0 @@
1
- /**
2
- * Zod schemas for GitHub Issues REST API responses.
3
- */
4
- import { z } from 'zod/mini';
5
- /** A single GitHub issue from the list endpoint. */
6
- export declare const githubIssueSchema: z.ZodMiniObject<{
7
- number: z.ZodMiniNumber<number>;
8
- title: z.ZodMiniString<string>;
9
- body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
10
- pull_request: z.ZodMiniOptional<z.ZodMiniUnknown>;
11
- milestone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
12
- title: z.ZodMiniString<string>;
13
- }, z.core.$strip>>>;
14
- labels: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
15
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
16
- }, z.core.$strip>>>;
17
- }, z.core.$strip>;
18
- /** Response from `GET /repos/{owner}/{repo}/issues` (array of issues). */
19
- export declare const githubIssuesResponseSchema: z.ZodMiniArray<z.ZodMiniObject<{
20
- number: z.ZodMiniNumber<number>;
21
- title: z.ZodMiniString<string>;
22
- body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
23
- pull_request: z.ZodMiniOptional<z.ZodMiniUnknown>;
24
- milestone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
25
- title: z.ZodMiniString<string>;
26
- }, z.core.$strip>>>;
27
- labels: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
28
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
29
- }, z.core.$strip>>>;
30
- }, z.core.$strip>>;
31
- /** A single GitHub issue comment from the comments endpoint. */
32
- export declare const githubCommentSchema: z.ZodMiniObject<{
33
- id: z.ZodMiniNumber<number>;
34
- body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
35
- created_at: z.ZodMiniString<string>;
36
- user: z.ZodMiniOptional<z.ZodMiniObject<{
37
- login: z.ZodMiniString<string>;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>;
40
- /** Response from `GET /repos/{owner}/{repo}/issues/{number}/comments` (array of comments). */
41
- export declare const githubCommentsResponseSchema: z.ZodMiniArray<z.ZodMiniObject<{
42
- id: z.ZodMiniNumber<number>;
43
- body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
44
- created_at: z.ZodMiniString<string>;
45
- user: z.ZodMiniOptional<z.ZodMiniObject<{
46
- login: z.ZodMiniString<string>;
47
- }, z.core.$strip>>;
48
- }, z.core.$strip>>;
49
- /** A single PR from the list endpoint. */
50
- export declare const githubPrSchema: z.ZodMiniObject<{
51
- number: z.ZodMiniNumber<number>;
52
- html_url: z.ZodMiniString<string>;
53
- state: z.ZodMiniString<string>;
54
- }, z.core.$strip>;
55
- /** Response from `GET /repos/{owner}/{repo}/pulls` (array of PRs). */
56
- export declare const githubPrListSchema: z.ZodMiniArray<z.ZodMiniObject<{
57
- number: z.ZodMiniNumber<number>;
58
- html_url: z.ZodMiniString<string>;
59
- state: z.ZodMiniString<string>;
60
- }, z.core.$strip>>;
61
- /** A single review on a PR. */
62
- export declare const githubReviewSchema: z.ZodMiniObject<{
63
- state: z.ZodMiniString<string>;
64
- user: z.ZodMiniObject<{
65
- login: z.ZodMiniString<string>;
66
- }, z.core.$strip>;
67
- submitted_at: z.ZodMiniString<string>;
68
- }, z.core.$strip>;
69
- /** Response from `GET /repos/{owner}/{repo}/pulls/{number}/reviews` (array). */
70
- export declare const githubReviewListSchema: z.ZodMiniArray<z.ZodMiniObject<{
71
- state: z.ZodMiniString<string>;
72
- user: z.ZodMiniObject<{
73
- login: z.ZodMiniString<string>;
74
- }, z.core.$strip>;
75
- submitted_at: z.ZodMiniString<string>;
76
- }, z.core.$strip>>;
77
- /** A single inline (pull request) comment. */
78
- export declare const githubPrCommentSchema: z.ZodMiniObject<{
79
- body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
80
- path: z.ZodMiniOptional<z.ZodMiniString<string>>;
81
- created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
82
- user: z.ZodMiniOptional<z.ZodMiniObject<{
83
- login: z.ZodMiniString<string>;
84
- }, z.core.$strip>>;
85
- }, z.core.$strip>;
86
- /** Response from `GET /repos/{owner}/{repo}/pulls/{number}/comments` (array). */
87
- export declare const githubPrCommentsSchema: z.ZodMiniArray<z.ZodMiniObject<{
88
- body: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
89
- path: z.ZodMiniOptional<z.ZodMiniString<string>>;
90
- created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
91
- user: z.ZodMiniOptional<z.ZodMiniObject<{
92
- login: z.ZodMiniString<string>;
93
- }, z.core.$strip>>;
94
- }, z.core.$strip>>;
95
- export type GitHubIssue = z.infer<typeof githubIssueSchema>;
96
- export type GitHubIssuesResponse = z.infer<typeof githubIssuesResponseSchema>;
97
- export type GitHubComment = z.infer<typeof githubCommentSchema>;
98
- export type GitHubCommentsResponse = z.infer<typeof githubCommentsResponseSchema>;
99
- export type GitHubPr = z.infer<typeof githubPrSchema>;
100
- export type GitHubPrList = z.infer<typeof githubPrListSchema>;
101
- export type GitHubReview = z.infer<typeof githubReviewSchema>;
102
- export type GitHubReviewList = z.infer<typeof githubReviewListSchema>;
103
- export type GitHubPrComment = z.infer<typeof githubPrCommentSchema>;
104
- export type GitHubPrComments = z.infer<typeof githubPrCommentsSchema>;
105
- //# sourceMappingURL=github-issues.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"github-issues.d.ts","sourceR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9D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,54 +0,0 @@
1
- /**
2
- * Zod schemas for GitHub Issues REST API responses.
3
- */
4
- import { z } from 'zod/mini';
5
- /** A single GitHub issue from the list endpoint. */
6
- export const githubIssueSchema = z.object({
7
- number: z.number(),
8
- title: z.string(),
9
- body: z.optional(z.nullable(z.string())),
10
- pull_request: z.optional(z.unknown()),
11
- milestone: z.optional(z.nullable(z.object({
12
- title: z.string(),
13
- }))),
14
- labels: z.optional(z.array(z.object({
15
- name: z.optional(z.string()),
16
- }))),
17
- });
18
- /** Response from `GET /repos/{owner}/{repo}/issues` (array of issues). */
19
- export const githubIssuesResponseSchema = z.array(githubIssueSchema);
20
- /** A single GitHub issue comment from the comments endpoint. */
21
- export const githubCommentSchema = z.object({
22
- id: z.number(),
23
- body: z.optional(z.nullable(z.string())),
24
- created_at: z.string(),
25
- user: z.optional(z.object({ login: z.string() })),
26
- });
27
- /** Response from `GET /repos/{owner}/{repo}/issues/{number}/comments` (array of comments). */
28
- export const githubCommentsResponseSchema = z.array(githubCommentSchema);
29
- /** A single PR from the list endpoint. */
30
- export const githubPrSchema = z.object({
31
- number: z.number(),
32
- html_url: z.string(),
33
- state: z.string(),
34
- });
35
- /** Response from `GET /repos/{owner}/{repo}/pulls` (array of PRs). */
36
- export const githubPrListSchema = z.array(githubPrSchema);
37
- /** A single review on a PR. */
38
- export const githubReviewSchema = z.object({
39
- state: z.string(),
40
- user: z.object({ login: z.string() }),
41
- submitted_at: z.string(),
42
- });
43
- /** Response from `GET /repos/{owner}/{repo}/pulls/{number}/reviews` (array). */
44
- export const githubReviewListSchema = z.array(githubReviewSchema);
45
- /** A single inline (pull request) comment. */
46
- export const githubPrCommentSchema = z.object({
47
- body: z.optional(z.nullable(z.string())),
48
- path: z.optional(z.string()),
49
- created_at: z.optional(z.string()),
50
- user: z.optional(z.object({ login: z.string() })),
51
- });
52
- /** Response from `GET /repos/{owner}/{repo}/pulls/{number}/comments` (array). */
53
- export const githubPrCommentsSchema = z.array(githubPrCommentSchema);
54
- //# sourceMappingURL=github-issues.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"github-issues.js","sourceRoot":"","sources":["../../src/schemas/github-issues.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,oDAAoD;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,QAAQ,CACnB,CAAC,CAAC,QAAQ,CACR,CAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;KAClB,CAAC,CACH,CACF;IACD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CACL,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAC7B,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,CA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,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAElE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;CAClD,CAAC,CAAC;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,73 +0,0 @@
1
- /**
2
- * Zod schemas for GitLab Merge Request API responses.
3
- */
4
- import * as z from 'zod/mini';
5
- /** A single MR from the list endpoint. */
6
- export declare const gitlabMrSchema: z.ZodMiniObject<{
7
- iid: z.ZodMiniNumber<number>;
8
- web_url: z.ZodMiniString<string>;
9
- detailed_merge_status: z.ZodMiniOptional<z.ZodMiniString<string>>;
10
- }, z.core.$strip>;
11
- /** Response from `GET /projects/:id/merge_requests` (array of MRs). */
12
- export declare const gitlabMrListSchema: z.ZodMiniArray<z.ZodMiniObject<{
13
- iid: z.ZodMiniNumber<number>;
14
- web_url: z.ZodMiniString<string>;
15
- detailed_merge_status: z.ZodMiniOptional<z.ZodMiniString<string>>;
16
- }, z.core.$strip>>;
17
- /** A single note within an MR discussion. */
18
- export declare const gitlabNoteSchema: z.ZodMiniObject<{
19
- body: z.ZodMiniString<string>;
20
- resolvable: z.ZodMiniBoolean<boolean>;
21
- resolved: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
22
- system: z.ZodMiniBoolean<boolean>;
23
- type: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
24
- created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
25
- position: z.ZodMiniOptional<z.ZodMiniObject<{
26
- new_path: z.ZodMiniOptional<z.ZodMiniString<string>>;
27
- }, z.core.$strip>>;
28
- author: z.ZodMiniOptional<z.ZodMiniObject<{
29
- username: z.ZodMiniString<string>;
30
- }, z.core.$strip>>;
31
- }, z.core.$strip>;
32
- /** A single MR discussion (contains one or more notes). */
33
- export declare const gitlabDiscussionSchema: z.ZodMiniObject<{
34
- id: z.ZodMiniOptional<z.ZodMiniString<string>>;
35
- notes: z.ZodMiniArray<z.ZodMiniObject<{
36
- body: z.ZodMiniString<string>;
37
- resolvable: z.ZodMiniBoolean<boolean>;
38
- resolved: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
39
- system: z.ZodMiniBoolean<boolean>;
40
- type: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
41
- created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
42
- position: z.ZodMiniOptional<z.ZodMiniObject<{
43
- new_path: z.ZodMiniOptional<z.ZodMiniString<string>>;
44
- }, z.core.$strip>>;
45
- author: z.ZodMiniOptional<z.ZodMiniObject<{
46
- username: z.ZodMiniString<string>;
47
- }, z.core.$strip>>;
48
- }, z.core.$strip>>;
49
- }, z.core.$strip>;
50
- /** Response from `GET /projects/:id/merge_requests/:iid/discussions` (array). */
51
- export declare const gitlabDiscussionsSchema: z.ZodMiniArray<z.ZodMiniObject<{
52
- id: z.ZodMiniOptional<z.ZodMiniString<string>>;
53
- notes: z.ZodMiniArray<z.ZodMiniObject<{
54
- body: z.ZodMiniString<string>;
55
- resolvable: z.ZodMiniBoolean<boolean>;
56
- resolved: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
57
- system: z.ZodMiniBoolean<boolean>;
58
- type: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
59
- created_at: z.ZodMiniOptional<z.ZodMiniString<string>>;
60
- position: z.ZodMiniOptional<z.ZodMiniObject<{
61
- new_path: z.ZodMiniOptional<z.ZodMiniString<string>>;
62
- }, z.core.$strip>>;
63
- author: z.ZodMiniOptional<z.ZodMiniObject<{
64
- username: z.ZodMiniString<string>;
65
- }, z.core.$strip>>;
66
- }, z.core.$strip>>;
67
- }, z.core.$strip>>;
68
- export type GitLabMr = z.infer<typeof gitlabMrSchema>;
69
- export type GitLabMrList = z.infer<typeof gitlabMrListSchema>;
70
- export type GitLabNote = z.infer<typeof gitlabNoteSchema>;
71
- export type GitLabDiscussion = z.infer<typeof gitlabDiscussionSchema>;
72
- export type GitLabDiscussions = z.infer<typeof gitlabDiscussionsSchema>;
73
- //# sourceMappingURL=gitlab-mr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gitlab-mr.d.ts","sourceRoot":"","sources":["../../src/schemas/gitlab-mr.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,0CAA0C;AAC1C,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB;;;;kBAA0B,CAAC;AAE1D,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;iBAa3B,CAAC;AAEH,2DAA2D;AAC3D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;iBAGjC,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;kBAAkC,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * Zod schemas for GitLab Merge Request API responses.
3
- */
4
- import * as z from 'zod/mini';
5
- /** A single MR from the list endpoint. */
6
- export const gitlabMrSchema = z.object({
7
- iid: z.number(),
8
- web_url: z.string(),
9
- detailed_merge_status: z.optional(z.string()),
10
- });
11
- /** Response from `GET /projects/:id/merge_requests` (array of MRs). */
12
- export const gitlabMrListSchema = z.array(gitlabMrSchema);
13
- /** A single note within an MR discussion. */
14
- export const gitlabNoteSchema = z.object({
15
- body: z.string(),
16
- resolvable: z.boolean(),
17
- resolved: z.optional(z.boolean()),
18
- system: z.boolean(),
19
- type: z.optional(z.nullable(z.string())),
20
- created_at: z.optional(z.string()),
21
- position: z.optional(z.object({
22
- new_path: z.optional(z.string()),
23
- })),
24
- author: z.optional(z.object({ username: z.string() })),
25
- });
26
- /** A single MR discussion (contains one or more notes). */
27
- export const gitlabDiscussionSchema = z.object({
28
- id: z.optional(z.string()),
29
- notes: z.array(gitlabNoteSchema),
30
- });
31
- /** Response from `GET /projects/:id/merge_requests/:iid/discussions` (array). */
32
- export const gitlabDiscussionsSchema = z.array(gitlabDiscussionSchema);
33
- //# sourceMappingURL=gitlab-mr.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gitlab-mr.js","sourceRoot":"","sources":["../../src/schemas/gitlab-mr.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,0CAA0C;AAC1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf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;AACjF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC"}
@@ -1,59 +0,0 @@
1
- /**
2
- * Zod schemas for Jira Cloud REST API responses.
3
- */
4
- import { z } from 'zod/mini';
5
- /** Response from `POST /rest/api/3/search/jql`. */
6
- export declare const jiraSearchResponseSchema: z.ZodMiniObject<{
7
- total: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
8
- isLast: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
9
- issues: z.ZodMiniArray<z.ZodMiniObject<{
10
- key: z.ZodMiniString<string>;
11
- fields: z.ZodMiniObject<{
12
- summary: z.ZodMiniString<string>;
13
- description: z.ZodMiniOptional<z.ZodMiniUnknown>;
14
- issuelinks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
15
- type: z.ZodMiniOptional<z.ZodMiniObject<{
16
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
17
- }, z.core.$strip>>;
18
- inwardIssue: z.ZodMiniOptional<z.ZodMiniObject<{
19
- key: z.ZodMiniOptional<z.ZodMiniString<string>>;
20
- }, z.core.$strip>>;
21
- }, z.core.$strip>>>;
22
- parent: z.ZodMiniOptional<z.ZodMiniObject<{
23
- key: z.ZodMiniOptional<z.ZodMiniString<string>>;
24
- }, z.core.$strip>>;
25
- customfield_10014: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
26
- }, z.core.$strip>;
27
- }, z.core.$strip>>;
28
- }, z.core.$strip>;
29
- /** Response from `GET /rest/api/3/issue/{key}/transitions`. */
30
- export declare const jiraTransitionsResponseSchema: z.ZodMiniObject<{
31
- transitions: z.ZodMiniArray<z.ZodMiniObject<{
32
- id: z.ZodMiniString<string>;
33
- name: z.ZodMiniString<string>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
36
- /** Response from `GET /rest/api/3/issue/{key}?fields=issuelinks`. */
37
- export declare const jiraIssueLinksResponseSchema: z.ZodMiniObject<{
38
- fields: z.ZodMiniOptional<z.ZodMiniObject<{
39
- issuelinks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
40
- type: z.ZodMiniOptional<z.ZodMiniObject<{
41
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
42
- }, z.core.$strip>>;
43
- inwardIssue: z.ZodMiniOptional<z.ZodMiniObject<{
44
- key: z.ZodMiniOptional<z.ZodMiniString<string>>;
45
- fields: z.ZodMiniOptional<z.ZodMiniObject<{
46
- status: z.ZodMiniOptional<z.ZodMiniObject<{
47
- statusCategory: z.ZodMiniOptional<z.ZodMiniObject<{
48
- key: z.ZodMiniOptional<z.ZodMiniString<string>>;
49
- }, z.core.$strip>>;
50
- }, z.core.$strip>>;
51
- }, z.core.$strip>>;
52
- }, z.core.$strip>>;
53
- }, z.core.$strip>>>;
54
- }, z.core.$strip>>;
55
- }, z.core.$strip>;
56
- export type JiraSearchResponse = z.infer<typeof jiraSearchResponseSchema>;
57
- export type JiraTransitionsResponse = z.infer<typeof jiraTransitionsResponseSchema>;
58
- export type JiraIssueLinksResponse = z.infer<typeof jiraIssueLinksResponseSchema>;
59
- //# sourceMappingURL=jira.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jira.d.ts","sourceRoot":"","sources":["../../src/schemas/jira.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAuB7B,mDAAmD;AACnD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;iBAInC,CAAC;AAQH,+DAA+D;AAC/D,eAAO,MAAM,6BAA6B;;;;;iBAExC,CAAC;AAuBH,qEAAqE;AACrE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;iBAMvC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
@@ -1,56 +0,0 @@
1
- /**
2
- * Zod schemas for Jira Cloud REST API responses.
3
- */
4
- import { z } from 'zod/mini';
5
- /** A single issue link in a Jira issue. */
6
- const jiraIssueLinkSchema = z.object({
7
- type: z.optional(z.object({ name: z.optional(z.string()) })),
8
- inwardIssue: z.optional(z.object({ key: z.optional(z.string()) })),
9
- });
10
- /** The fields returned for a single Jira issue. */
11
- const jiraIssueFieldsSchema = z.object({
12
- summary: z.string(),
13
- description: z.optional(z.unknown()),
14
- issuelinks: z.optional(z.array(jiraIssueLinkSchema)),
15
- parent: z.optional(z.object({ key: z.optional(z.string()) })),
16
- customfield_10014: z.optional(z.nullable(z.string())),
17
- });
18
- /** A single Jira issue from the search response. */
19
- const jiraIssueSchema = z.object({
20
- key: z.string(),
21
- fields: jiraIssueFieldsSchema,
22
- });
23
- /** Response from `POST /rest/api/3/search/jql`. */
24
- export const jiraSearchResponseSchema = z.object({
25
- total: z.optional(z.number()),
26
- isLast: z.optional(z.boolean()),
27
- issues: z.array(jiraIssueSchema),
28
- });
29
- /** A single transition from `GET /rest/api/3/issue/{key}/transitions`. */
30
- const jiraTransitionSchema = z.object({
31
- id: z.string(),
32
- name: z.string(),
33
- });
34
- /** Response from `GET /rest/api/3/issue/{key}/transitions`. */
35
- export const jiraTransitionsResponseSchema = z.object({
36
- transitions: z.array(jiraTransitionSchema),
37
- });
38
- /** Schema for a single issue link with full status info (used by fetchBlockerStatus). */
39
- const jiraBlockerIssueLinkSchema = z.object({
40
- type: z.optional(z.object({ name: z.optional(z.string()) })),
41
- inwardIssue: z.optional(z.object({
42
- key: z.optional(z.string()),
43
- fields: z.optional(z.object({
44
- status: z.optional(z.object({
45
- statusCategory: z.optional(z.object({ key: z.optional(z.string()) })),
46
- })),
47
- })),
48
- })),
49
- });
50
- /** Response from `GET /rest/api/3/issue/{key}?fields=issuelinks`. */
51
- export const jiraIssueLinksResponseSchema = z.object({
52
- fields: z.optional(z.object({
53
- issuelinks: z.optional(z.array(jiraBlockerIssueLinkSchema)),
54
- })),
55
- });
56
- //# sourceMappingURL=jira.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jira.js","sourceRoot":"","sources":["../../src/schemas/jira.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,2CAA2C;AAC3C,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5D,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;CACnE,CAAC,CAAC;AAEH,mDAAmD;AACnD,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACpD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7D,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,C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