issue-commander 0.1.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 (339) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +18 -0
  3. package/.next/build/56416d4ae4ce586f.js +6 -0
  4. package/.next/build/56416d4ae4ce586f.js.map +5 -0
  5. package/.next/build/chunks/[root-of-the-server]__0oj80bi._.js +206 -0
  6. package/.next/build/chunks/[root-of-the-server]__0oj80bi._.js.map +8 -0
  7. package/.next/build/chunks/[root-of-the-server]__1f933tp._.js +500 -0
  8. package/.next/build/chunks/[root-of-the-server]__1f933tp._.js.map +11 -0
  9. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js +13 -0
  10. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js.map +5 -0
  11. package/.next/build/chunks/[turbopack]_runtime.js +890 -0
  12. package/.next/build/chunks/[turbopack]_runtime.js.map +11 -0
  13. package/.next/build/chunks/node_modules__pnpm_0ncq4wh._.js +6671 -0
  14. package/.next/build/chunks/node_modules__pnpm_0ncq4wh._.js.map +47 -0
  15. package/.next/build/package.json +1 -0
  16. package/.next/build-manifest.json +20 -0
  17. package/.next/diagnostics/build-diagnostics.json +6 -0
  18. package/.next/diagnostics/framework.json +1 -0
  19. package/.next/diagnostics/route-bundle-stats.json +29 -0
  20. package/.next/export-marker.json +6 -0
  21. package/.next/fallback-build-manifest.json +13 -0
  22. package/.next/images-manifest.json +68 -0
  23. package/.next/next-minimal-server.js.nft.json +1 -0
  24. package/.next/next-server.js.nft.json +1 -0
  25. package/.next/package.json +1 -0
  26. package/.next/prerender-manifest.json +114 -0
  27. package/.next/required-server-files.js +338 -0
  28. package/.next/required-server-files.json +338 -0
  29. package/.next/routes-manifest.json +146 -0
  30. package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  31. package/.next/server/app/_global-error/page/build-manifest.json +16 -0
  32. package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  33. package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  34. package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  35. package/.next/server/app/_global-error/page.js +10 -0
  36. package/.next/server/app/_global-error/page.js.map +5 -0
  37. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  38. package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
  39. package/.next/server/app/_global-error.html +1 -0
  40. package/.next/server/app/_global-error.meta +15 -0
  41. package/.next/server/app/_global-error.rsc +15 -0
  42. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  43. package/.next/server/app/_global-error.segments/_full.segment.rsc +15 -0
  44. package/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
  45. package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  46. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  47. package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  48. package/.next/server/app/_not-found/page/build-manifest.json +16 -0
  49. package/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
  50. package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  51. package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  52. package/.next/server/app/_not-found/page.js +13 -0
  53. package/.next/server/app/_not-found/page.js.map +5 -0
  54. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  55. package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
  56. package/.next/server/app/_not-found.html +1 -0
  57. package/.next/server/app/_not-found.meta +16 -0
  58. package/.next/server/app/_not-found.rsc +18 -0
  59. package/.next/server/app/_not-found.segments/_full.segment.rsc +18 -0
  60. package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
  61. package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -0
  62. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  63. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
  64. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
  65. package/.next/server/app/api/actions/copy/route/app-paths-manifest.json +3 -0
  66. package/.next/server/app/api/actions/copy/route/build-manifest.json +9 -0
  67. package/.next/server/app/api/actions/copy/route/server-reference-manifest.json +4 -0
  68. package/.next/server/app/api/actions/copy/route.js +9 -0
  69. package/.next/server/app/api/actions/copy/route.js.map +5 -0
  70. package/.next/server/app/api/actions/copy/route.js.nft.json +1 -0
  71. package/.next/server/app/api/actions/copy/route_client-reference-manifest.js +3 -0
  72. package/.next/server/app/api/actions/move/route/app-paths-manifest.json +3 -0
  73. package/.next/server/app/api/actions/move/route/build-manifest.json +9 -0
  74. package/.next/server/app/api/actions/move/route/server-reference-manifest.json +4 -0
  75. package/.next/server/app/api/actions/move/route.js +9 -0
  76. package/.next/server/app/api/actions/move/route.js.map +5 -0
  77. package/.next/server/app/api/actions/move/route.js.nft.json +1 -0
  78. package/.next/server/app/api/actions/move/route_client-reference-manifest.js +3 -0
  79. package/.next/server/app/api/actions/set-status/route/app-paths-manifest.json +3 -0
  80. package/.next/server/app/api/actions/set-status/route/build-manifest.json +9 -0
  81. package/.next/server/app/api/actions/set-status/route/server-reference-manifest.json +4 -0
  82. package/.next/server/app/api/actions/set-status/route.js +9 -0
  83. package/.next/server/app/api/actions/set-status/route.js.map +5 -0
  84. package/.next/server/app/api/actions/set-status/route.js.nft.json +1 -0
  85. package/.next/server/app/api/actions/set-status/route_client-reference-manifest.js +3 -0
  86. package/.next/server/app/api/img/route/app-paths-manifest.json +3 -0
  87. package/.next/server/app/api/img/route/build-manifest.json +9 -0
  88. package/.next/server/app/api/img/route/server-reference-manifest.json +4 -0
  89. package/.next/server/app/api/img/route.js +6 -0
  90. package/.next/server/app/api/img/route.js.map +5 -0
  91. package/.next/server/app/api/img/route.js.nft.json +1 -0
  92. package/.next/server/app/api/img/route_client-reference-manifest.js +3 -0
  93. package/.next/server/app/api/issue-types/route/app-paths-manifest.json +3 -0
  94. package/.next/server/app/api/issue-types/route/build-manifest.json +9 -0
  95. package/.next/server/app/api/issue-types/route/server-reference-manifest.json +4 -0
  96. package/.next/server/app/api/issue-types/route.js +8 -0
  97. package/.next/server/app/api/issue-types/route.js.map +5 -0
  98. package/.next/server/app/api/issue-types/route.js.nft.json +1 -0
  99. package/.next/server/app/api/issue-types/route_client-reference-manifest.js +3 -0
  100. package/.next/server/app/api/issues/[owner]/[repo]/[number]/route/app-paths-manifest.json +3 -0
  101. package/.next/server/app/api/issues/[owner]/[repo]/[number]/route/build-manifest.json +9 -0
  102. package/.next/server/app/api/issues/[owner]/[repo]/[number]/route/server-reference-manifest.json +4 -0
  103. package/.next/server/app/api/issues/[owner]/[repo]/[number]/route.js +9 -0
  104. package/.next/server/app/api/issues/[owner]/[repo]/[number]/route.js.map +5 -0
  105. package/.next/server/app/api/issues/[owner]/[repo]/[number]/route.js.nft.json +1 -0
  106. package/.next/server/app/api/issues/[owner]/[repo]/[number]/route_client-reference-manifest.js +3 -0
  107. package/.next/server/app/api/issues/route/app-paths-manifest.json +3 -0
  108. package/.next/server/app/api/issues/route/build-manifest.json +9 -0
  109. package/.next/server/app/api/issues/route/server-reference-manifest.json +4 -0
  110. package/.next/server/app/api/issues/route.js +9 -0
  111. package/.next/server/app/api/issues/route.js.map +5 -0
  112. package/.next/server/app/api/issues/route.js.nft.json +1 -0
  113. package/.next/server/app/api/issues/route_client-reference-manifest.js +3 -0
  114. package/.next/server/app/api/project-status/route/app-paths-manifest.json +3 -0
  115. package/.next/server/app/api/project-status/route/build-manifest.json +9 -0
  116. package/.next/server/app/api/project-status/route/server-reference-manifest.json +4 -0
  117. package/.next/server/app/api/project-status/route.js +9 -0
  118. package/.next/server/app/api/project-status/route.js.map +5 -0
  119. package/.next/server/app/api/project-status/route.js.nft.json +1 -0
  120. package/.next/server/app/api/project-status/route_client-reference-manifest.js +3 -0
  121. package/.next/server/app/api/repo-options/route/app-paths-manifest.json +3 -0
  122. package/.next/server/app/api/repo-options/route/build-manifest.json +9 -0
  123. package/.next/server/app/api/repo-options/route/server-reference-manifest.json +4 -0
  124. package/.next/server/app/api/repo-options/route.js +9 -0
  125. package/.next/server/app/api/repo-options/route.js.map +5 -0
  126. package/.next/server/app/api/repo-options/route.js.nft.json +1 -0
  127. package/.next/server/app/api/repo-options/route_client-reference-manifest.js +3 -0
  128. package/.next/server/app/api/sources/milestones/route/app-paths-manifest.json +3 -0
  129. package/.next/server/app/api/sources/milestones/route/build-manifest.json +9 -0
  130. package/.next/server/app/api/sources/milestones/route/server-reference-manifest.json +4 -0
  131. package/.next/server/app/api/sources/milestones/route.js +8 -0
  132. package/.next/server/app/api/sources/milestones/route.js.map +5 -0
  133. package/.next/server/app/api/sources/milestones/route.js.nft.json +1 -0
  134. package/.next/server/app/api/sources/milestones/route_client-reference-manifest.js +3 -0
  135. package/.next/server/app/api/sources/projects/route/app-paths-manifest.json +3 -0
  136. package/.next/server/app/api/sources/projects/route/build-manifest.json +9 -0
  137. package/.next/server/app/api/sources/projects/route/server-reference-manifest.json +4 -0
  138. package/.next/server/app/api/sources/projects/route.js +8 -0
  139. package/.next/server/app/api/sources/projects/route.js.map +5 -0
  140. package/.next/server/app/api/sources/projects/route.js.nft.json +1 -0
  141. package/.next/server/app/api/sources/projects/route_client-reference-manifest.js +3 -0
  142. package/.next/server/app/api/sources/repos/route/app-paths-manifest.json +3 -0
  143. package/.next/server/app/api/sources/repos/route/build-manifest.json +9 -0
  144. package/.next/server/app/api/sources/repos/route/server-reference-manifest.json +4 -0
  145. package/.next/server/app/api/sources/repos/route.js +8 -0
  146. package/.next/server/app/api/sources/repos/route.js.map +5 -0
  147. package/.next/server/app/api/sources/repos/route.js.nft.json +1 -0
  148. package/.next/server/app/api/sources/repos/route_client-reference-manifest.js +3 -0
  149. package/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
  150. package/.next/server/app/favicon.ico/route/build-manifest.json +9 -0
  151. package/.next/server/app/favicon.ico/route.js +8 -0
  152. package/.next/server/app/favicon.ico/route.js.map +5 -0
  153. package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  154. package/.next/server/app/favicon.ico.body +0 -0
  155. package/.next/server/app/favicon.ico.meta +1 -0
  156. package/.next/server/app/index.html +1 -0
  157. package/.next/server/app/index.meta +14 -0
  158. package/.next/server/app/index.rsc +19 -0
  159. package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
  160. package/.next/server/app/index.segments/_full.segment.rsc +19 -0
  161. package/.next/server/app/index.segments/_head.segment.rsc +6 -0
  162. package/.next/server/app/index.segments/_index.segment.rsc +7 -0
  163. package/.next/server/app/index.segments/_tree.segment.rsc +4 -0
  164. package/.next/server/app/page/app-paths-manifest.json +3 -0
  165. package/.next/server/app/page/build-manifest.json +16 -0
  166. package/.next/server/app/page/next-font-manifest.json +11 -0
  167. package/.next/server/app/page/react-loadable-manifest.json +1 -0
  168. package/.next/server/app/page/server-reference-manifest.json +4 -0
  169. package/.next/server/app/page.js +14 -0
  170. package/.next/server/app/page.js.map +5 -0
  171. package/.next/server/app/page.js.nft.json +1 -0
  172. package/.next/server/app/page_client-reference-manifest.js +3 -0
  173. package/.next/server/app-paths-manifest.json +18 -0
  174. package/.next/server/chunks/0k5d_next_1k6ii1a._.js +13 -0
  175. package/.next/server/chunks/0k5d_next_1k6ii1a._.js.map +1 -0
  176. package/.next/server/chunks/0k5d_next_dist_esm_build_templates_app-route_1ws-fkb.js +3 -0
  177. package/.next/server/chunks/0k5d_next_dist_esm_build_templates_app-route_1ws-fkb.js.map +1 -0
  178. package/.next/server/chunks/1oeh_server_app_api_issues_[owner]_[repo]_[number]_route_actions_1erp-fu.js +3 -0
  179. package/.next/server/chunks/1oeh_server_app_api_issues_[owner]_[repo]_[number]_route_actions_1erp-fu.js.map +1 -0
  180. package/.next/server/chunks/[externals]_next_dist_0iuj5m_._.js +3 -0
  181. package/.next/server/chunks/[externals]_next_dist_0iuj5m_._.js.map +1 -0
  182. package/.next/server/chunks/[root-of-the-server]__0-gtfs0._.js +3 -0
  183. package/.next/server/chunks/[root-of-the-server]__0-gtfs0._.js.map +1 -0
  184. package/.next/server/chunks/[root-of-the-server]__09cbec6._.js +146 -0
  185. package/.next/server/chunks/[root-of-the-server]__09cbec6._.js.map +1 -0
  186. package/.next/server/chunks/[root-of-the-server]__09q-926._.js +14 -0
  187. package/.next/server/chunks/[root-of-the-server]__09q-926._.js.map +1 -0
  188. package/.next/server/chunks/[root-of-the-server]__0awb99_._.js +146 -0
  189. package/.next/server/chunks/[root-of-the-server]__0awb99_._.js.map +1 -0
  190. package/.next/server/chunks/[root-of-the-server]__0b6k4yz._.js +146 -0
  191. package/.next/server/chunks/[root-of-the-server]__0b6k4yz._.js.map +1 -0
  192. package/.next/server/chunks/[root-of-the-server]__0cxgicj._.js +146 -0
  193. package/.next/server/chunks/[root-of-the-server]__0cxgicj._.js.map +1 -0
  194. package/.next/server/chunks/[root-of-the-server]__10mpo5n._.js +146 -0
  195. package/.next/server/chunks/[root-of-the-server]__10mpo5n._.js.map +1 -0
  196. package/.next/server/chunks/[root-of-the-server]__12biw0a._.js +146 -0
  197. package/.next/server/chunks/[root-of-the-server]__12biw0a._.js.map +1 -0
  198. package/.next/server/chunks/[root-of-the-server]__15iafqs._.js +146 -0
  199. package/.next/server/chunks/[root-of-the-server]__15iafqs._.js.map +1 -0
  200. package/.next/server/chunks/[root-of-the-server]__1b3873y._.js +3 -0
  201. package/.next/server/chunks/[root-of-the-server]__1b3873y._.js.map +1 -0
  202. package/.next/server/chunks/[root-of-the-server]__1f2rnoy._.js +146 -0
  203. package/.next/server/chunks/[root-of-the-server]__1f2rnoy._.js.map +1 -0
  204. package/.next/server/chunks/[root-of-the-server]__1grtvo6._.js +3 -0
  205. package/.next/server/chunks/[root-of-the-server]__1grtvo6._.js.map +1 -0
  206. package/.next/server/chunks/[root-of-the-server]__1h5gc1a._.js +146 -0
  207. package/.next/server/chunks/[root-of-the-server]__1h5gc1a._.js.map +1 -0
  208. package/.next/server/chunks/[root-of-the-server]__1qtjaw1._.js +146 -0
  209. package/.next/server/chunks/[root-of-the-server]__1qtjaw1._.js.map +1 -0
  210. package/.next/server/chunks/[turbopack]_runtime.js +903 -0
  211. package/.next/server/chunks/[turbopack]_runtime.js.map +11 -0
  212. package/.next/server/chunks/_next-internal_server_app_api_actions_copy_route_actions_1gsfs93.js +3 -0
  213. package/.next/server/chunks/_next-internal_server_app_api_actions_copy_route_actions_1gsfs93.js.map +1 -0
  214. package/.next/server/chunks/_next-internal_server_app_api_actions_move_route_actions_1an7jh0.js +3 -0
  215. package/.next/server/chunks/_next-internal_server_app_api_actions_move_route_actions_1an7jh0.js.map +1 -0
  216. package/.next/server/chunks/_next-internal_server_app_api_actions_set-status_route_actions_0ydlqpv.js +3 -0
  217. package/.next/server/chunks/_next-internal_server_app_api_actions_set-status_route_actions_0ydlqpv.js.map +1 -0
  218. package/.next/server/chunks/_next-internal_server_app_api_img_route_actions_09jwciw.js +3 -0
  219. package/.next/server/chunks/_next-internal_server_app_api_img_route_actions_09jwciw.js.map +1 -0
  220. package/.next/server/chunks/_next-internal_server_app_api_issue-types_route_actions_1_u9itu.js +3 -0
  221. package/.next/server/chunks/_next-internal_server_app_api_issue-types_route_actions_1_u9itu.js.map +1 -0
  222. package/.next/server/chunks/_next-internal_server_app_api_issues_route_actions_1fe49_0.js +3 -0
  223. package/.next/server/chunks/_next-internal_server_app_api_issues_route_actions_1fe49_0.js.map +1 -0
  224. package/.next/server/chunks/_next-internal_server_app_api_project-status_route_actions_0b_j5z9.js +3 -0
  225. package/.next/server/chunks/_next-internal_server_app_api_project-status_route_actions_0b_j5z9.js.map +1 -0
  226. package/.next/server/chunks/_next-internal_server_app_api_repo-options_route_actions_0uwnoxg.js +3 -0
  227. package/.next/server/chunks/_next-internal_server_app_api_repo-options_route_actions_0uwnoxg.js.map +1 -0
  228. package/.next/server/chunks/_next-internal_server_app_api_sources_milestones_route_actions_0byfu1a.js +3 -0
  229. package/.next/server/chunks/_next-internal_server_app_api_sources_milestones_route_actions_0byfu1a.js.map +1 -0
  230. package/.next/server/chunks/_next-internal_server_app_api_sources_projects_route_actions_1immsap.js +3 -0
  231. package/.next/server/chunks/_next-internal_server_app_api_sources_projects_route_actions_1immsap.js.map +1 -0
  232. package/.next/server/chunks/_next-internal_server_app_api_sources_repos_route_actions_1bs29i7.js +3 -0
  233. package/.next/server/chunks/_next-internal_server_app_api_sources_repos_route_actions_1bs29i7.js.map +1 -0
  234. package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js +3 -0
  235. package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js.map +1 -0
  236. package/.next/server/chunks/lib_validation_schemas_ts_12hfsov._.js +64 -0
  237. package/.next/server/chunks/lib_validation_schemas_ts_12hfsov._.js.map +1 -0
  238. package/.next/server/chunks/ssr/0k5d_next_dist_0s9uxxp._.js +6 -0
  239. package/.next/server/chunks/ssr/0k5d_next_dist_0s9uxxp._.js.map +1 -0
  240. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_06ol0xl._.js +3 -0
  241. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_06ol0xl._.js.map +1 -0
  242. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_forbidden_1p4io1g.js +3 -0
  243. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_forbidden_1p4io1g.js.map +1 -0
  244. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_global-error_1-2crru.js +3 -0
  245. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_global-error_1-2crru.js.map +1 -0
  246. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_unauthorized_0xr3wsj.js +3 -0
  247. package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_unauthorized_0xr3wsj.js.map +1 -0
  248. package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_05682-v.js +4 -0
  249. package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_05682-v.js.map +1 -0
  250. package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_0rc1ivy.js +4 -0
  251. package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_0rc1ivy.js.map +1 -0
  252. package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_1s1d6e7.js +4 -0
  253. package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_1s1d6e7.js.map +1 -0
  254. package/.next/server/chunks/ssr/[root-of-the-server]__0139ie3._.js +33 -0
  255. package/.next/server/chunks/ssr/[root-of-the-server]__0139ie3._.js.map +1 -0
  256. package/.next/server/chunks/ssr/[root-of-the-server]__037e4a0._.js +3 -0
  257. package/.next/server/chunks/ssr/[root-of-the-server]__037e4a0._.js.map +1 -0
  258. package/.next/server/chunks/ssr/[root-of-the-server]__0j86va_._.js +3 -0
  259. package/.next/server/chunks/ssr/[root-of-the-server]__0j86va_._.js.map +1 -0
  260. package/.next/server/chunks/ssr/[root-of-the-server]__0lap0he._.js +19 -0
  261. package/.next/server/chunks/ssr/[root-of-the-server]__0lap0he._.js.map +1 -0
  262. package/.next/server/chunks/ssr/[root-of-the-server]__0nrb7hf._.js +3 -0
  263. package/.next/server/chunks/ssr/[root-of-the-server]__0nrb7hf._.js.map +1 -0
  264. package/.next/server/chunks/ssr/[root-of-the-server]__0uzhw0c._.js +33 -0
  265. package/.next/server/chunks/ssr/[root-of-the-server]__0uzhw0c._.js.map +1 -0
  266. package/.next/server/chunks/ssr/[root-of-the-server]__15c79qg._.js +3 -0
  267. package/.next/server/chunks/ssr/[root-of-the-server]__15c79qg._.js.map +1 -0
  268. package/.next/server/chunks/ssr/[root-of-the-server]__15srn38._.js +3 -0
  269. package/.next/server/chunks/ssr/[root-of-the-server]__15srn38._.js.map +1 -0
  270. package/.next/server/chunks/ssr/[root-of-the-server]__1odgy3m._.js +3 -0
  271. package/.next/server/chunks/ssr/[root-of-the-server]__1odgy3m._.js.map +1 -0
  272. package/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
  273. package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +11 -0
  274. package/.next/server/chunks/ssr/_0och_zz._.js +3 -0
  275. package/.next/server/chunks/ssr/_0och_zz._.js.map +1 -0
  276. package/.next/server/chunks/ssr/_12s2gnq._.js +3 -0
  277. package/.next/server/chunks/ssr/_12s2gnq._.js.map +1 -0
  278. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js +3 -0
  279. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js.map +1 -0
  280. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js +3 -0
  281. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js.map +1 -0
  282. package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js +3 -0
  283. package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js.map +1 -0
  284. package/.next/server/chunks/ssr/node_modules__pnpm_0bitpno._.js +33 -0
  285. package/.next/server/chunks/ssr/node_modules__pnpm_0bitpno._.js.map +1 -0
  286. package/.next/server/chunks/ssr/node_modules__pnpm_0l85403._.js +3 -0
  287. package/.next/server/chunks/ssr/node_modules__pnpm_0l85403._.js.map +1 -0
  288. package/.next/server/functions-config-manifest.json +17 -0
  289. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  290. package/.next/server/middleware-build-manifest.js +20 -0
  291. package/.next/server/middleware-manifest.json +6 -0
  292. package/.next/server/next-font-manifest.js +1 -0
  293. package/.next/server/next-font-manifest.json +15 -0
  294. package/.next/server/pages/404.html +1 -0
  295. package/.next/server/pages/500.html +1 -0
  296. package/.next/server/pages-manifest.json +4 -0
  297. package/.next/server/prefetch-hints.json +1 -0
  298. package/.next/server/server-reference-manifest.js +1 -0
  299. package/.next/server/server-reference-manifest.json +5 -0
  300. package/.next/static/U75zJFXx630YxQTwEn0PN/_buildManifest.js +11 -0
  301. package/.next/static/U75zJFXx630YxQTwEn0PN/_clientMiddlewareManifest.js +1 -0
  302. package/.next/static/U75zJFXx630YxQTwEn0PN/_ssgManifest.js +1 -0
  303. package/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  304. package/.next/static/chunks/0hha91vaoysnq.js +1 -0
  305. package/.next/static/chunks/1oh3rj3i5urjs.js +1 -0
  306. package/.next/static/chunks/246am3y0860nw.css +3 -0
  307. package/.next/static/chunks/2qd-x1d_x72ft.js +1 -0
  308. package/.next/static/chunks/2uc8ryc2bya03.js +5 -0
  309. package/.next/static/chunks/3eypa2kwq_3sl.js +31 -0
  310. package/.next/static/chunks/3fgrsgshjfptj.js +1 -0
  311. package/.next/static/chunks/3y1pwecaxueam.js +1 -0
  312. package/.next/static/chunks/turbopack-2mjg24bp-2jgu.js +1 -0
  313. package/.next/static/media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2 +0 -0
  314. package/.next/static/media/53b9e256198e5412-s.390ncx5urfkfu.woff2 +0 -0
  315. package/.next/static/media/5ce348bf30bf5439-s.31988l_ccedte.woff2 +0 -0
  316. package/.next/static/media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2 +0 -0
  317. package/.next/static/media/7178b3e590c64307-s.21jp631_3pja2.woff2 +0 -0
  318. package/.next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2 +0 -0
  319. package/.next/static/media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2 +0 -0
  320. package/.next/static/media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2 +0 -0
  321. package/.next/static/media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2 +0 -0
  322. package/.next/static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2 +0 -0
  323. package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
  324. package/.next/static/media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2 +0 -0
  325. package/.next/trace +1 -0
  326. package/.next/trace-build +1 -0
  327. package/.next/turbopack +0 -0
  328. package/.next/types/cache-life.d.ts +145 -0
  329. package/.next/types/routes.d.ts +84 -0
  330. package/.next/types/validator.ts +178 -0
  331. package/README.md +224 -0
  332. package/bin/issue-commander.js +103 -0
  333. package/next.config.ts +13 -0
  334. package/package.json +82 -0
  335. package/public/file.svg +1 -0
  336. package/public/globe.svg +1 -0
  337. package/public/next.svg +1 -0
  338. package/public/vercel.svg +1 -0
  339. package/public/window.svg +1 -0
@@ -0,0 +1,146 @@
1
+ module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},47295,50604,e=>{"use strict";var t=e.i(74533);class r extends Error{code;status;extra;constructor(e,t,r,n){super(r),this.name="ApiError",this.code=e,this.status=t,this.extra=n}}class n extends r{constructor(e,t){super(e,500,t),this.name="GithubConfigError"}}e.s(["ApiError",0,r,"GithubConfigError",0,n,"toApiError",0,function(e){if(e instanceof r)return e;let t=e??{};if(Array.isArray(t.errors)&&t.errors.length>0)return t.errors.some(e=>"RATE_LIMITED"===e.type)?new r("RATE_LIMITED",429,"GitHub GraphQL rate limit exceeded. Try again shortly."):t.errors.some(e=>"NOT_FOUND"===e.type)?new r("NOT_FOUND",404,t.errors[0]?.message??"Resource not found."):new r("GITHUB_ERROR",502,t.errors.map(e=>e.message).filter(Boolean).join("; ")||"GitHub GraphQL error.");let n="number"==typeof t.status?t.status:void 0;if(403===n||429===n){let e=t.response?.headers?.["x-ratelimit-remaining"],s=t.response?.headers?.["x-ratelimit-reset"];if(429===n||"0"===e)return new r("RATE_LIMITED",429,"GitHub REST rate limit exceeded.",{retryAfterSeconds:s?Math.max(0,Number(s)-Math.floor(Date.now()/1e3)):void 0})}return 404===n?new r("NOT_FOUND",404,t.message??"Not found or no access."):n&&n>=400&&n<500?new r("BAD_REQUEST",n,t.message??"Bad request."):new r("GITHUB_ERROR",502,t.message??"Unexpected GitHub error.")}],50604);let s=null;e.s(["getToken",0,function(){if(s)return s;let e=process.env.GITHUB_TOKEN??process.env.GH_TOKEN;if(e&&e.trim())return s=e.trim();try{let e=(0,t.execFileSync)("gh",["auth","token"],{encoding:"utf8"}).trim();if(!e)throw Error("empty token");return s=e}catch{throw new n("NO_TOKEN","No GitHub token found. Set GITHUB_TOKEN in .env.local or run `gh auth login`.")}}],47295)},66231,1097,e=>{"use strict";var t=e.i(67123),r=e.i(50604);let n=`
2
+ id
3
+ number
4
+ title
5
+ state
6
+ url
7
+ repository { nameWithOwner }
8
+ milestone { number title }
9
+ issueType { name }
10
+ assignees(first: 10) { nodes { login avatarUrl } }
11
+ labels(first: 20) { nodes { name color } }
12
+ `,s=`
13
+ query ProjectId($login: String!, $number: Int!) {
14
+ organization(login: $login) {
15
+ projectV2(number: $number) { id title }
16
+ }
17
+ }
18
+ `,o=`
19
+ fieldValueByName(name: "Status") {
20
+ __typename
21
+ ... on ProjectV2ItemFieldSingleSelectValue { name optionId }
22
+ }
23
+ `,a=`
24
+ query ProjectItems($projectId: ID!, $cursor: String) {
25
+ node(id: $projectId) {
26
+ ... on ProjectV2 {
27
+ title
28
+ number
29
+ items(first: 50, after: $cursor) {
30
+ pageInfo { hasNextPage endCursor }
31
+ nodes {
32
+ id
33
+ type
34
+ ${o}
35
+ content {
36
+ __typename
37
+ ... on Issue { ${n} }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ `,i=`
45
+ query EnrichStatus($ids: [ID!]!) {
46
+ nodes(ids: $ids) {
47
+ ... on Issue {
48
+ id
49
+ projectItems(first: 5) {
50
+ nodes {
51
+ id
52
+ project { ... on ProjectV2 { id number title } }
53
+ ${o}
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ `,l=`
60
+ query StatusField($projectId: ID!) {
61
+ node(id: $projectId) {
62
+ ... on ProjectV2 {
63
+ field(name: "Status") {
64
+ ... on ProjectV2SingleSelectField { id name options { id name } }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ `,u=`
70
+ mutation SetStatus($projectId: ID!, $itemId: ID!, $fieldId: ID!, $optionId: String!) {
71
+ updateProjectV2ItemFieldValue(
72
+ input: { projectId: $projectId, itemId: $itemId, fieldId: $fieldId, value: { singleSelectOptionId: $optionId } }
73
+ ) {
74
+ projectV2Item { id }
75
+ }
76
+ }
77
+ `,d=`
78
+ query OrgProjects($login: String!, $cursor: String) {
79
+ organization(login: $login) {
80
+ projectsV2(first: 50, after: $cursor) {
81
+ pageInfo { hasNextPage endCursor }
82
+ nodes { id number title }
83
+ }
84
+ }
85
+ }
86
+ `,p=`
87
+ query OrgMilestones($login: String!, $cursor: String) {
88
+ organization(login: $login) {
89
+ repositories(first: 100, after: $cursor, orderBy: { field: PUSHED_AT, direction: DESC }) {
90
+ pageInfo { hasNextPage endCursor }
91
+ nodes {
92
+ milestones(first: 100, states: [OPEN]) {
93
+ nodes { title }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ `,c=`
100
+ query IssueRelations($owner: String!, $repo: String!, $number: Int!) {
101
+ repository(owner: $owner, name: $repo) {
102
+ issue(number: $number) {
103
+ parent { number title state url repository { nameWithOwner } }
104
+ subIssues(first: 50) {
105
+ totalCount
106
+ nodes { number title state url repository { nameWithOwner } }
107
+ }
108
+ closedByPullRequestsReferences(first: 10, includeClosedPrs: true) {
109
+ nodes { number title url state repository { nameWithOwner } }
110
+ }
111
+ timelineItems(first: 50, itemTypes: [CROSS_REFERENCED_EVENT]) {
112
+ nodes {
113
+ __typename
114
+ ... on CrossReferencedEvent {
115
+ source {
116
+ __typename
117
+ ... on Issue { number title url state repository { nameWithOwner } }
118
+ ... on PullRequest { number title url state repository { nameWithOwner } }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ `,m=`
127
+ query RepoId($owner: String!, $name: String!) {
128
+ repository(owner: $owner, name: $name) { id nameWithOwner }
129
+ }
130
+ `,f=`
131
+ mutation TransferIssue($input: TransferIssueInput!) {
132
+ transferIssue(input: $input) {
133
+ issue { id number url repository { nameWithOwner } }
134
+ }
135
+ }
136
+ `,g=`
137
+ mutation AddItem($input: AddProjectV2ItemByIdInput!) {
138
+ addProjectV2ItemById(input: $input) { item { id } }
139
+ }
140
+ `,h=`
141
+ mutation DeleteItem($input: DeleteProjectV2ItemInput!) {
142
+ deleteProjectV2Item(input: $input) { deletedItemId }
143
+ }
144
+ `;function b(e){return"string"==typeof e?{name:e,color:"888888"}:e.name?{name:e.name,color:e.color??"888888"}:null}function I(e,t,r,n){let[s,o]=e.repository.nameWithOwner.split("/"),a={projectId:r.id,projectNumber:r.number,projectTitle:r.title,itemId:t,status:n?.name??null,optionId:n?.optionId??null};return{number:e.number,title:e.title,state:"CLOSED"===e.state?"closed":"open",assignees:e.assignees.nodes.map(e=>({login:e.login,avatarUrl:e.avatarUrl})),labels:e.labels.nodes.map(e=>({name:e.name,color:e.color})),milestone:e.milestone?{number:e.milestone.number,title:e.milestone.title}:null,repo:{owner:s,name:o},htmlUrl:e.url,nodeId:e.id,type:e.issueType?.name??null,projectItemId:t,projectStatus:a}}function w(e,r){return(0,t.getOctokit)().graphql(e,r)}async function y(e,t){let n=await w(s,{login:e,number:t}),o=n.organization?.projectV2;if(!o)throw new r.ApiError("PROJECT_NOT_FOUND",404,`Project #${t} not found in @${e}.`);return o}async function R(e,t){let n=await w(a,{projectId:e,cursor:t??null});if(!n.node)throw new r.ApiError("PROJECT_NOT_FOUND",404,"Project not found.");let s={id:e,number:n.node.number,title:n.node.title},o=[],i=0;for(let e of n.node.items.nodes)e.content?.__typename==="Issue"?o.push(I(e.content,e.id,s,e.fieldValueByName)):i++;return{title:n.node.title,rows:o,pageInfo:n.node.items.pageInfo,skippedDrafts:i}}async function _(e,t){let r=new Map;if(0===e.length)return r;for(let n of(await w(i,{ids:e})).nodes){if(!n)continue;let e=n.projectItems.nodes.filter(e=>e.project);if(0===e.length)continue;let s=(null!=t?e.find(e=>e.project.number===t):void 0)??e[0];r.set(n.id,{projectId:s.project.id,projectNumber:s.project.number,projectTitle:s.project.title,itemId:s.id,status:s.fieldValueByName?.name??null,optionId:s.fieldValueByName?.optionId??null,multiple:e.length>1})}return r}async function v(e){let t=await w(l,{projectId:e}),r=t.node?.field;return r?{fieldId:r.id,options:r.options}:null}async function E(e,t,r,n){await w(u,{projectId:e,itemId:t,fieldId:r,optionId:n})}async function O(e){let t=[],r=null;do{let n=await w(d,{login:e,cursor:r}),s=n.organization?.projectsV2;if(!s)break;t.push(...s.nodes),r=s.pageInfo.hasNextPage?s.pageInfo.endCursor:null}while(r)return t}async function j(e){let t=new Map,r=null;do{let n=await w(p,{login:e,cursor:r}),s=n.organization?.repositories;if(!s)break;for(let e of s.nodes)for(let r of e.milestones.nodes){let e=t.get(r.title)??{title:r.title,repoCount:0,openIssues:0,closedIssues:0};e.repoCount+=1,t.set(r.title,e)}r=s.pageInfo.hasNextPage?s.pageInfo.endCursor:null}while(r)return[...t.values()].sort((e,t)=>t.repoCount-e.repoCount||e.title.localeCompare(t.title))}e.s(["isPullRequest",0,function(e){return null!=e.pull_request},"mapProjectIssue",0,I,"mapRestIssue",0,function(e,t){return{number:e.number,title:e.title,state:"closed"===e.state?"closed":"open",assignees:(e.assignees??[]).map(e=>({login:e.login,avatarUrl:e.avatar_url})),labels:(e.labels??[]).map(b).filter(e=>null!==e),milestone:e.milestone?{number:e.milestone.number,title:e.milestone.title}:null,repo:t,htmlUrl:e.html_url,nodeId:e.node_id,type:e.type?.name??null}},"mapRestPull",0,function(e,t){let r=null!=e.merged_at,n=e.user?{login:e.user.login,avatarUrl:e.user.avatar_url}:null;return{number:e.number,title:e.title,state:"closed"===e.state?"closed":"open",assignees:n?[n]:[],labels:(e.labels??[]).map(b).filter(e=>null!==e),milestone:e.milestone?{number:e.milestone.number,title:e.milestone.title}:null,repo:t,htmlUrl:e.html_url,nodeId:e.node_id,type:null,pr:{merged:r,mergedAt:e.merged_at??null,baseRef:e.base.ref,headRef:e.head.ref,draft:!!e.draft}}},"mapSearchIssue",0,function(e){let t=/repos\/([^/]+)\/([^/]+)$/.exec(e.repository_url),r=t?.[1]??"",n=t?.[2]??"";return{number:e.number,title:e.title,state:"closed"===e.state?"closed":"open",assignees:(e.assignees??[]).map(e=>({login:e.login,avatarUrl:e.avatar_url})),labels:(e.labels??[]).map(b).filter(e=>null!==e),milestone:e.milestone?{number:e.milestone.number,title:e.milestone.title}:null,repo:{owner:r,name:n},htmlUrl:e.html_url,nodeId:e.node_id,type:e.type?.name??null}}],1097);let x=e=>({number:e.number,title:e.title,state:"CLOSED"===e.state?"closed":"open",url:e.url,repo:e.repository.nameWithOwner}),P=(e,t)=>({number:e.number,title:e.title,url:e.url,repo:e.repository.nameWithOwner,state:"MERGED"===e.state?"merged":"CLOSED"===e.state?"closed":"open",isPR:t});async function $(e,t,r){let n=await w(c,{owner:e,repo:t,number:r}),s=n.repository?.issue,o=new Map;for(let e of s?.closedByPullRequestsReferences.nodes??[])o.set(e.url,P(e,!0));for(let e of s?.timelineItems.nodes??[])e.source&&o.set(e.source.url,P(e.source,"PullRequest"===e.source.__typename));return{parent:s?.parent?x(s.parent):null,children:(s?.subIssues.nodes??[]).map(x),linked:[...o.values()]}}async function T(e,t){let n=await w(m,{owner:e,name:t});if(!n.repository)throw new r.ApiError("REPO_NOT_FOUND",404,`Repository ${e}/${t} not found.`);return n.repository.id}async function N(e,t){let r=(await w(f,{input:{issueId:e,repositoryId:t}})).transferIssue.issue;return{id:r.id,number:r.number,url:r.url,nameWithOwner:r.repository.nameWithOwner}}async function C(e,t){return(await w(g,{input:{projectId:e,contentId:t}})).addProjectV2ItemById.item.id}async function S(e,t){return(await w(h,{input:{projectId:e,itemId:t}})).deleteProjectV2Item.deletedItemId}e.s(["addProjectItem",0,C,"deleteProjectItem",0,S,"enrichProjectStatus",0,_,"getIssueRelations",0,$,"getStatusField",0,v,"listOrgMilestones",0,j,"listOrgProjects",0,O,"listProjectItems",0,R,"resolveProjectId",0,y,"resolveRepoId",0,T,"setItemStatus",0,E,"transferIssue",0,N],66231)},64171,e=>{"use strict";var t=e.i(50604);e.s(["getOrg",0,function(){let e=process.env.IC_GITHUB_ORG?.trim()||process.env.GITHUB_ORG?.trim()||null;if(!e)throw new t.GithubConfigError("NO_ORG","No GitHub organization set. Pass `--org=<org>`, or set `IC_GITHUB_ORG` / `GITHUB_ORG`.");return e}])},37012,e=>{"use strict";var t=e.i(67123),r=e.i(64171),n=e.i(50604),s=e.i(66231),o=e.i(1097);async function a(e){let a,i=(0,r.getOrg)(),l=(0,t.getOctokit)();if(e.milestoneTitle){let t=(await l.paginate(l.rest.issues.listMilestones,{owner:i,repo:e.repo,state:"all",per_page:100})).find(t=>t.title===e.milestoneTitle);if(!t)throw new n.ApiError("MILESTONE_NOT_FOUND",400,`Repo "${e.repo}" has no milestone "${e.milestoneTitle}". Create it there first or pick another.`);a=t.number}let u={owner:i,repo:e.repo,title:e.title,...e.body?{body:e.body}:{},...e.assignees?.length?{assignees:e.assignees}:{},...e.labels?.length?{labels:e.labels}:{},...null!=a?{milestone:a}:{},...e.type?{type:e.type}:{}},d=await l.rest.issues.create(u);if(e.projectNumber)try{let t=await (0,s.resolveProjectId)(i,e.projectNumber);await (0,s.addProjectItem)(t.id,d.data.node_id)}catch{}return(0,o.mapRestIssue)(d.data,{owner:i,name:e.repo})}async function i(e,r,n,s){let o=(await (0,t.getOctokit)().rest.issues.createComment({owner:e,repo:r,issue_number:n,body:s})).data;return{author:o.user?.login??"you",authorAvatarUrl:o.user?.avatar_url??"",body:o.body??s,createdAt:o.created_at}}async function l(e,r,n,s){let a={owner:e,repo:r,issue_number:n};void 0!==s.body&&(a.body=s.body),void 0!==s.state&&(a.state=s.state),void 0!==s.milestoneNumber&&(a.milestone=s.milestoneNumber),void 0!==s.assignees&&(a.assignees=s.assignees),void 0!==s.labels&&(a.labels=s.labels),void 0!==s.type&&(a.type=s.type);let i=await (0,t.getOctokit)().rest.issues.update(a);return(0,o.mapRestIssue)(i.data,{owner:e,name:r})}async function u(e){let o=(0,r.getOrg)();if("repo"===e.mode){let t=await (0,s.resolveRepoId)(o,e.targetRepo),r=await (0,s.transferIssue)(e.issueNodeId,t);return{mode:"repo",renumbered:!0,newNumber:r.number,newUrl:r.url,newNodeId:r.id,warning:"Issue transferred — it has a new number; the old URL now redirects."}}if("milestone"===e.mode){let r=(0,t.getOctokit)(),s=null;if(null!==e.targetTitle){let t=(await r.paginate(r.rest.issues.listMilestones,{owner:o,repo:e.repo,state:"all",per_page:100})).find(t=>t.title===e.targetTitle);if(!t)throw new n.ApiError("MILESTONE_NOT_FOUND",400,`Repo "${e.repo}" has no milestone "${e.targetTitle}". Create it there first, or transfer the issue to a repo that has it.`);s=t.number}return await r.rest.issues.update({owner:o,repo:e.repo,issue_number:e.number,milestone:s}),{mode:"milestone"}}let a=await (0,s.addProjectItem)(e.targetProjectId,e.issueNodeId);return await (0,s.deleteProjectItem)(e.sourceProjectId,e.sourceProjectItemId),{mode:"project",newProjectItemId:a}}async function d(e){return{projectItemId:await (0,s.addProjectItem)(e.targetProjectId,e.issueNodeId)}}e.s(["addComment",0,i,"copyIssue",0,d,"createIssue",0,a,"moveIssue",0,u,"updateIssue",0,l])},41869,e=>{"use strict";var t=e.i(96364),r=e.i(80796),n=e.i(88819),s=e.i(67765),o=e.i(58326),a=e.i(38970),i=e.i(9986),l=e.i(14355),u=e.i(46673),d=e.i(40998),p=e.i(79068),c=e.i(7570),m=e.i(53404),f=e.i(70966),g=e.i(22838),h=e.i(93695);e.i(32270);var b=e.i(30778),I=e.i(67123),w=e.i(66231);let y=e=>({author:e.user?.login??"ghost",authorAvatarUrl:e.user?.avatar_url??"",body:e.body??"",createdAt:e.created_at}),R=/https?:\/\/github\.com\/([\w.-]+)\/([\w.-]+)\/(?:issues|pull)\/(\d+)/g;async function _(e,t,r){let n=new Set,s=[];for(let e of t)if(e)for(let t of e.matchAll(R)){let e=t[1],o=t[2],a=parseInt(t[3],10),i=`${e}/${o}#${a}`;r.has(i)||n.has(i)||(n.add(i),s.push({owner:e,repo:o,number:a}))}return(await Promise.all(s.slice(0,20).map(async t=>{try{let{data:r}=await e.rest.issues.get({owner:t.owner,repo:t.repo,issue_number:t.number});return{number:r.number,title:r.title,state:"closed"===r.state?"closed":"open",url:r.html_url,repo:`${t.owner}/${t.repo}`,isPR:null!=r.pull_request}}catch{return null}}))).filter(e=>null!==e)}async function v(e,t,r,n=!1){let s=(0,I.getOctokit)();if(n){let[n,o]=await Promise.all([s.rest.pulls.get({owner:e,repo:t,pull_number:r}),s.paginate(s.rest.issues.listComments,{owner:e,repo:t,issue_number:r,per_page:100})]),a=n.data,i=await _(s,[a.body,...o.map(e=>e.body)],new Set([`${e}/${t}#${r}`]));return{number:a.number,title:a.title,state:"closed"===a.state?"closed":"open",body:a.body??"",htmlUrl:a.html_url,author:a.user?.login??"ghost",authorAvatarUrl:a.user?.avatar_url??"",createdAt:a.created_at,comments:o.map(y),parent:null,children:[],linked:[],mentioned:i,pr:{merged:a.merged??null!=a.merged_at,draft:!!a.draft,baseRef:a.base.ref,headRef:a.head.ref,commits:a.commits??0,changedFiles:a.changed_files??0,additions:a.additions??0,deletions:a.deletions??0}}}let[o,a,i]=await Promise.all([s.rest.issues.get({owner:e,repo:t,issue_number:r}),s.paginate(s.rest.issues.listComments,{owner:e,repo:t,issue_number:r,per_page:100}),(0,w.getIssueRelations)(e,t,r)]),l=o.data,u=new Set([`${e}/${t}#${r}`]);for(let e of(i.parent&&u.add(`${i.parent.repo}#${i.parent.number}`),i.children))u.add(`${e.repo}#${e.number}`);for(let e of i.linked)u.add(`${e.repo}#${e.number}`);let d=await _(s,[l.body,...a.map(e=>e.body)],u);return{number:l.number,title:l.title,state:"closed"===l.state?"closed":"open",body:l.body??"",htmlUrl:l.html_url,author:l.user?.login??"ghost",authorAvatarUrl:l.user?.avatar_url??"",createdAt:l.created_at,comments:a.map(y),parent:i.parent,children:i.children,linked:i.linked,mentioned:d}}var E=e.i(37012),O=e.i(80956),j=e.i(50604),x=e.i(53453);function P(e){let t=Number(e);if(!Number.isInteger(t)||t<=0)throw new j.ApiError("BAD_REQUEST",400,`Invalid issue number: ${e}`);return t}async function $(e,t){try{let{owner:r,repo:n,number:s}=await t.params,o="pr"===e.nextUrl.searchParams.get("kind");return(0,x.ok)(await v(r,n,P(s),o))}catch(e){return(0,x.fail)(e)}}async function T(e,t){try{let{owner:r,repo:n,number:s}=await t.params,o=await e.json().catch(()=>null),a=O.patchIssueBodySchema.safeParse(o);if(!a.success)throw new j.ApiError("BAD_REQUEST",400,a.error.issues.map(e=>e.message).join("; "));return(0,x.ok)(await (0,E.updateIssue)(r,n,P(s),a.data))}catch(e){return(0,x.fail)(e)}}async function N(e,t){try{let{owner:r,repo:n,number:s}=await t.params,o=await e.json().catch(()=>null),a=O.addCommentBodySchema.safeParse(o);if(!a.success)throw new j.ApiError("BAD_REQUEST",400,a.error.issues.map(e=>e.message).join("; "));return(0,x.ok)(await (0,E.addComment)(r,n,P(s),a.data.body))}catch(e){return(0,x.fail)(e)}}e.s(["GET",0,$,"PATCH",0,T,"POST",0,N,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],83176);var C=e.i(83176);let S=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/issues/[owner]/[repo]/[number]/route",pathname:"/api/issues/[owner]/[repo]/[number]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/issues/[owner]/[repo]/[number]/route.ts",nextConfigOutput:"",userland:C,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:U,serverHooks:D}=S;async function k(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),S.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let I="/api/issues/[owner]/[repo]/[number]/route";I=I.replace(/\/index$/,"")||"/";let w=await S.prepare(e,t,{srcPage:I,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,deploymentId:R,params:_,nextConfig:v,parsedUrl:E,isDraftMode:O,prerenderManifest:j,routerServerContext:x,isOnDemandRevalidate:P,revalidateOnlyGenerated:$,resolvedPathname:T,clientReferenceManifest:N,serverActionsManifest:C}=w,A=(0,i.normalizeAppPath)(I),U=!!(j.dynamicRoutes[A]||j.routes[T]),D=async()=>((null==x?void 0:x.render404)?await x.render404(e,t,E,!1):t.end("This page could not be found"),null);if(U&&!O){let e=!!j.routes[T],t=j.dynamicRoutes[A];if(t&&!1===t.fallback&&!e){if(v.adapterPath)return await D();throw new h.NoFallbackError}}let k=null;!U||S.isDev||O||(k="/index"===(k=T)?"/":k);let q=!0===S.isDev||!U,H=U&&!q;C&&N&&(0,a.setManifestsSingleton)({page:I,clientReferenceManifest:N,serverActionsManifest:C});let B=e.method||"GET",G=(0,o.getTracer)(),M=G.getActiveScopeSpan(),V=!!(null==x?void 0:x.isWrappedByNextServer),F=!!(0,s.getRequestMeta)(e,"minimalMode"),L=(0,s.getRequestMeta)(e,"incrementalCache")||await S.getIncrementalCache(e,v,j,F);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let W={params:_,previewProps:j.preview,renderOpts:{experimental:{authInterrupts:!!v.experimental.authInterrupts},cacheComponents:!!v.cacheComponents,supportsDynamicResponse:q,incrementalCache:L,cacheLifeProfiles:v.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>S.onRequestError(e,t,n,s,x)},sharedContext:{buildId:y,deploymentId:R}},K=new l.NodeNextRequest(e),z=new l.NodeNextResponse(t),Q=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s,a=async e=>S.handle(Q,W).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=G.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${B} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${B} ${I}`)}),i=async s=>{var o,i;let l=async({previousCacheEntry:r})=>{try{if(!F&&P&&$&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await a(s);e.fetchMetrics=W.renderOpts.fetchMetrics;let i=W.renderOpts.pendingWaitUntil;i&&n.waitUntil&&(n.waitUntil(i),i=void 0);let l=W.renderOpts.collectedTags;if(!U)return await (0,c.sendResponse)(K,z,o,W.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[g.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,n=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:W.renderOpts.collectedExpire;return{value:{kind:b.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await S.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:P})},!1,x),t}},u=await S.handleResponse({req:e,nextConfig:v,cacheKey:k,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:j,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:$,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:F});if(!U)return null;if((null==u||null==(o=u.value)?void 0:o.kind)!==b.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});F||t.setHeader("x-nextjs-cache",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),O&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,m.fromNodeOutgoingHttpHeaders)(u.value.headers);return F&&U||d.delete(g.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(K,z,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};V&&M?await i(M):(s=G.getActiveScopeSpan(),await G.withPropagatedContext(e.headers,()=>G.trace(d.BaseServerSpan.handleRequest,{spanName:`${B} ${I}`,kind:o.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},i),void 0,!V))}catch(t){if(t instanceof h.NoFallbackError||await S.onRequestError(e,t,{routerKind:"App Router",routePath:A,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:P})},!1,x),U)throw t;return await (0,c.sendResponse)(K,z,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:U})},"routeModule",0,S,"serverHooks",0,D,"workAsyncStorage",0,A,"workUnitAsyncStorage",0,U],41869)}];
145
+
146
+ //# sourceMappingURL=%5Broot-of-the-server%5D__09cbec6._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../lib/github/token.ts","../../../lib/github/errors.ts","../../../lib/github/graphql.ts","../../../lib/github/queries.ts","../../../lib/domain/mappers.ts","../../../lib/github/org.ts","../../../lib/sources/mutations.ts","../../../node_modules/.pnpm/next%4016.2.9_%40babel%2Bcore%407.29.7_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/dist/esm/build/templates/app-route.js","../../../lib/sources/getIssueDetail.ts","../../../app/api/issues/%5Bowner%5D/%5Brepo%5D/%5Bnumber%5D/route.ts"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport { GithubConfigError } from \"./errors\";\n\nlet cached: string | null = null;\n\n/**\n * Resolve a GitHub token. Prefers GITHUB_TOKEN / GH_TOKEN env vars, otherwise\n * shells out to `gh auth token` (execFile, never a shell — no injection risk).\n * Cached for the process lifetime.\n */\nexport function getToken(): string {\n if (cached) return cached;\n\n const envTok = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;\n if (envTok && envTok.trim()) {\n cached = envTok.trim();\n return cached;\n }\n\n try {\n const out = execFileSync(\"gh\", [\"auth\", \"token\"], { encoding: \"utf8\" }).trim();\n if (!out) throw new Error(\"empty token\");\n cached = out;\n return cached;\n } catch {\n throw new GithubConfigError(\n \"NO_TOKEN\",\n \"No GitHub token found. Set GITHUB_TOKEN in .env.local or run `gh auth login`.\",\n );\n }\n}\n\n/** Clear the cached token (e.g. after a 401, to re-read from gh). */\nexport function resetToken(): void {\n cached = null;\n}\n","// Centralized error model. Route handlers throw ApiError (or any error) and use\n// respond.fail() to map it to a JSON envelope with a stable code + HTTP status.\n\nexport type ApiErrorCode =\n | \"NO_TOKEN\"\n | \"NO_ORG\"\n | \"BAD_REQUEST\"\n | \"NOT_FOUND\"\n | \"REPO_NOT_FOUND\"\n | \"PROJECT_NOT_FOUND\"\n | \"RATE_LIMITED\"\n | \"MILESTONE_NOT_FOUND\"\n | \"COPY_TARGET_NOT_PROJECT\"\n | \"GITHUB_ERROR\"\n | \"INTERNAL\";\n\nexport class ApiError extends Error {\n code: ApiErrorCode;\n status: number;\n extra?: Record<string, unknown>;\n\n constructor(code: ApiErrorCode, status: number, message: string, extra?: Record<string, unknown>) {\n super(message);\n this.name = \"ApiError\";\n this.code = code;\n this.status = status;\n this.extra = extra;\n }\n}\n\n/** Config problems (missing token/org) — surfaced as 500 with a clear message. */\nexport class GithubConfigError extends ApiError {\n constructor(code: \"NO_TOKEN\" | \"NO_ORG\", message: string) {\n super(code, 500, message);\n this.name = \"GithubConfigError\";\n }\n}\n\ninterface MaybeRequestError {\n status?: number;\n message?: string;\n response?: { headers?: Record<string, string> };\n errors?: Array<{ type?: string; message?: string }>;\n}\n\n/** Normalize anything thrown (Octokit RequestError, GraphqlResponseError, plain Error). */\nexport function toApiError(e: unknown): ApiError {\n if (e instanceof ApiError) return e;\n\n const err = (e ?? {}) as MaybeRequestError;\n\n // GraphQL errors (octokit GraphqlResponseError) carry an `errors` array.\n if (Array.isArray(err.errors) && err.errors.length > 0) {\n const rateLimited = err.errors.some((x) => x.type === \"RATE_LIMITED\");\n if (rateLimited) {\n return new ApiError(\"RATE_LIMITED\", 429, \"GitHub GraphQL rate limit exceeded. Try again shortly.\");\n }\n const notFound = err.errors.some((x) => x.type === \"NOT_FOUND\");\n if (notFound) {\n return new ApiError(\"NOT_FOUND\", 404, err.errors[0]?.message ?? \"Resource not found.\");\n }\n return new ApiError(\"GITHUB_ERROR\", 502, err.errors.map((x) => x.message).filter(Boolean).join(\"; \") || \"GitHub GraphQL error.\");\n }\n\n const status = typeof err.status === \"number\" ? err.status : undefined;\n\n if (status === 403 || status === 429) {\n const remaining = err.response?.headers?.[\"x-ratelimit-remaining\"];\n const reset = err.response?.headers?.[\"x-ratelimit-reset\"];\n if (status === 429 || remaining === \"0\") {\n const retryAfterSeconds = reset ? Math.max(0, Number(reset) - Math.floor(Date.now() / 1000)) : undefined;\n return new ApiError(\"RATE_LIMITED\", 429, \"GitHub REST rate limit exceeded.\", { retryAfterSeconds });\n }\n }\n\n if (status === 404) {\n // GitHub returns 404 (not 403) for unauthorized access to private resources.\n return new ApiError(\"NOT_FOUND\", 404, err.message ?? \"Not found or no access.\");\n }\n\n if (status && status >= 400 && status < 500) {\n return new ApiError(\"BAD_REQUEST\", status, err.message ?? \"Bad request.\");\n }\n\n return new ApiError(\"GITHUB_ERROR\", 502, err.message ?? \"Unexpected GitHub error.\");\n}\n","import { getOctokit } from \"./client\";\nimport { ApiError } from \"./errors\";\nimport {\n ADD_PROJECT_ITEM_MUTATION,\n DELETE_PROJECT_ITEM_MUTATION,\n ENRICH_STATUS_QUERY,\n ISSUE_RELATIONS_QUERY,\n ORG_MILESTONES_QUERY,\n ORG_PROJECTS_QUERY,\n PROJECT_ID_QUERY,\n PROJECT_ITEMS_QUERY,\n REPO_ID_QUERY,\n STATUS_FIELD_QUERY,\n TRANSFER_ISSUE_MUTATION,\n UPDATE_ITEM_STATUS_MUTATION,\n} from \"./queries\";\nimport { type GqlProjectIssue, mapProjectIssue, type SingleSelectValue } from \"@/lib/domain/mappers\";\nimport type { IssueRow, LinkedRef, MilestoneOption, PageInfo, ProjectOption, ProjectStatus, RelatedIssue } from \"@/lib/types\";\n\nfunction gql<T>(query: string, variables: Record<string, unknown>): Promise<T> {\n return getOctokit().graphql<T>(query, variables);\n}\n\nexport async function resolveProjectId(org: string, number: number): Promise<{ id: string; title: string }> {\n const data = await gql<{ organization: { projectV2: { id: string; title: string } | null } | null }>(\n PROJECT_ID_QUERY,\n { login: org, number },\n );\n const proj = data.organization?.projectV2;\n if (!proj) throw new ApiError(\"PROJECT_NOT_FOUND\", 404, `Project #${number} not found in @${org}.`);\n return proj;\n}\n\ninterface ProjectItemsResponse {\n node: {\n title: string;\n number: number;\n items: {\n pageInfo: PageInfo;\n nodes: Array<{\n id: string;\n type: string;\n fieldValueByName: SingleSelectValue | null;\n content: ({ __typename: string } & Partial<GqlProjectIssue>) | null;\n }>;\n };\n } | null;\n}\n\nexport async function listProjectItems(\n projectId: string,\n cursor?: string,\n): Promise<{ title: string; rows: IssueRow[]; pageInfo: PageInfo; skippedDrafts: number }> {\n const data = await gql<ProjectItemsResponse>(PROJECT_ITEMS_QUERY, { projectId, cursor: cursor ?? null });\n if (!data.node) throw new ApiError(\"PROJECT_NOT_FOUND\", 404, \"Project not found.\");\n\n const project = { id: projectId, number: data.node.number, title: data.node.title };\n const rows: IssueRow[] = [];\n let skippedDrafts = 0;\n for (const item of data.node.items.nodes) {\n if (item.content?.__typename === \"Issue\") {\n rows.push(mapProjectIssue(item.content as GqlProjectIssue, item.id, project, item.fieldValueByName));\n } else {\n skippedDrafts++;\n }\n }\n return { title: data.node.title, rows, pageInfo: data.node.items.pageInfo, skippedDrafts };\n}\n\ninterface EnrichResponse {\n nodes: Array<{\n id: string;\n projectItems: {\n nodes: Array<{\n id: string;\n project: { id: string; number: number; title: string } | null;\n fieldValueByName: SingleSelectValue | null;\n }>;\n };\n } | null>;\n}\n\n/**\n * Map issue node id -> its project Status (for repo/milestone panes). Prefers the issue's item in\n * `preferredProjectNumber` (the user's default project) when present, else falls back to its first project.\n */\nexport async function enrichProjectStatus(\n issueNodeIds: string[],\n preferredProjectNumber?: number | null,\n): Promise<Map<string, ProjectStatus>> {\n const out = new Map<string, ProjectStatus>();\n if (issueNodeIds.length === 0) return out;\n const data = await gql<EnrichResponse>(ENRICH_STATUS_QUERY, { ids: issueNodeIds });\n for (const node of data.nodes) {\n if (!node) continue;\n const items = node.projectItems.nodes.filter((it) => it.project);\n if (items.length === 0) continue;\n const preferred =\n preferredProjectNumber != null ? items.find((it) => it.project!.number === preferredProjectNumber) : undefined;\n const chosen = preferred ?? items[0];\n out.set(node.id, {\n projectId: chosen.project!.id,\n projectNumber: chosen.project!.number,\n projectTitle: chosen.project!.title,\n itemId: chosen.id,\n status: chosen.fieldValueByName?.name ?? null,\n optionId: chosen.fieldValueByName?.optionId ?? null,\n multiple: items.length > 1,\n });\n }\n return out;\n}\n\nexport interface StatusField {\n fieldId: string;\n options: Array<{ id: string; name: string }>;\n}\n\nexport async function getStatusField(projectId: string): Promise<StatusField | null> {\n const data = await gql<{\n node: { field: { id: string; options: Array<{ id: string; name: string }> } | null } | null;\n }>(STATUS_FIELD_QUERY, { projectId });\n const field = data.node?.field;\n if (!field) return null;\n return { fieldId: field.id, options: field.options };\n}\n\nexport async function setItemStatus(\n projectId: string,\n itemId: string,\n fieldId: string,\n optionId: string,\n): Promise<void> {\n await gql(UPDATE_ITEM_STATUS_MUTATION, { projectId, itemId, fieldId, optionId });\n}\n\nexport async function listOrgProjects(org: string): Promise<ProjectOption[]> {\n const out: ProjectOption[] = [];\n let cursor: string | null = null;\n // Paginate fully — orgs rarely have hundreds of projects.\n do {\n const data: {\n organization: {\n projectsV2: { pageInfo: PageInfo; nodes: Array<{ id: string; number: number; title: string }> };\n } | null;\n } = await gql(ORG_PROJECTS_QUERY, { login: org, cursor });\n const conn = data.organization?.projectsV2;\n if (!conn) break;\n out.push(...conn.nodes);\n cursor = conn.pageInfo.hasNextPage ? conn.pageInfo.endCursor : null;\n } while (cursor);\n return out;\n}\n\ninterface OrgMilestonesResponse {\n organization: {\n repositories: {\n pageInfo: PageInfo;\n nodes: Array<{ milestones: { nodes: Array<{ title: string }> } }>;\n };\n } | null;\n}\n\n/** Aggregate distinct OPEN milestone titles across all org repos (one paginated query). */\nexport async function listOrgMilestones(org: string): Promise<MilestoneOption[]> {\n const byTitle = new Map<string, MilestoneOption>();\n let cursor: string | null = null;\n do {\n const data: OrgMilestonesResponse = await gql(ORG_MILESTONES_QUERY, { login: org, cursor });\n const conn = data.organization?.repositories;\n if (!conn) break;\n for (const repo of conn.nodes) {\n for (const m of repo.milestones.nodes) {\n const cur = byTitle.get(m.title) ?? { title: m.title, repoCount: 0, openIssues: 0, closedIssues: 0 };\n cur.repoCount += 1;\n byTitle.set(m.title, cur);\n }\n }\n cursor = conn.pageInfo.hasNextPage ? conn.pageInfo.endCursor : null;\n } while (cursor);\n\n return [...byTitle.values()].sort((a, b) => b.repoCount - a.repoCount || a.title.localeCompare(b.title));\n}\n\ninterface GqlRel {\n number: number;\n title: string;\n state: string;\n url: string;\n repository: { nameWithOwner: string };\n}\n\nconst toRelated = (r: GqlRel): RelatedIssue => ({\n number: r.number,\n title: r.title,\n state: r.state === \"CLOSED\" ? \"closed\" : \"open\",\n url: r.url,\n repo: r.repository.nameWithOwner,\n});\n\ninterface GqlLinked {\n __typename?: string;\n number: number;\n title: string;\n url: string;\n state: string; // OPEN | CLOSED | MERGED\n repository: { nameWithOwner: string };\n}\n\nconst toLinked = (n: GqlLinked, isPR: boolean): LinkedRef => ({\n number: n.number,\n title: n.title,\n url: n.url,\n repo: n.repository.nameWithOwner,\n state: n.state === \"MERGED\" ? \"merged\" : n.state === \"CLOSED\" ? \"closed\" : \"open\",\n isPR,\n});\n\n/** Parent + sub-issues + linked PRs/cross-references for an issue (F3 preview). */\nexport async function getIssueRelations(\n owner: string,\n repo: string,\n number: number,\n): Promise<{ parent: RelatedIssue | null; children: RelatedIssue[]; linked: LinkedRef[] }> {\n const data = await gql<{\n repository: {\n issue: {\n parent: GqlRel | null;\n subIssues: { nodes: GqlRel[] };\n closedByPullRequestsReferences: { nodes: GqlLinked[] };\n timelineItems: { nodes: Array<{ source?: GqlLinked | null }> };\n } | null;\n } | null;\n }>(ISSUE_RELATIONS_QUERY, { owner, repo, number });\n const issue = data.repository?.issue;\n\n const linked = new Map<string, LinkedRef>();\n for (const pr of issue?.closedByPullRequestsReferences.nodes ?? []) linked.set(pr.url, toLinked(pr, true));\n for (const t of issue?.timelineItems.nodes ?? []) {\n if (t.source) linked.set(t.source.url, toLinked(t.source, t.source.__typename === \"PullRequest\"));\n }\n\n return {\n parent: issue?.parent ? toRelated(issue.parent) : null,\n children: (issue?.subIssues.nodes ?? []).map(toRelated),\n linked: [...linked.values()],\n };\n}\n\nexport async function resolveRepoId(owner: string, name: string): Promise<string> {\n const data = await gql<{ repository: { id: string } | null }>(REPO_ID_QUERY, { owner, name });\n if (!data.repository) throw new ApiError(\"REPO_NOT_FOUND\", 404, `Repository ${owner}/${name} not found.`);\n return data.repository.id;\n}\n\nexport async function transferIssue(\n issueId: string,\n repositoryId: string,\n): Promise<{ id: string; number: number; url: string; nameWithOwner: string }> {\n const data = await gql<{\n transferIssue: { issue: { id: string; number: number; url: string; repository: { nameWithOwner: string } } };\n }>(TRANSFER_ISSUE_MUTATION, { input: { issueId, repositoryId } });\n const issue = data.transferIssue.issue;\n return { id: issue.id, number: issue.number, url: issue.url, nameWithOwner: issue.repository.nameWithOwner };\n}\n\nexport async function addProjectItem(projectId: string, contentId: string): Promise<string> {\n const data = await gql<{ addProjectV2ItemById: { item: { id: string } } }>(ADD_PROJECT_ITEM_MUTATION, {\n input: { projectId, contentId },\n });\n return data.addProjectV2ItemById.item.id;\n}\n\nexport async function deleteProjectItem(projectId: string, itemId: string): Promise<string> {\n const data = await gql<{ deleteProjectV2Item: { deletedItemId: string } }>(DELETE_PROJECT_ITEM_MUTATION, {\n input: { projectId, itemId },\n });\n return data.deleteProjectV2Item.deletedItemId;\n}\n","// Raw GraphQL documents. Field names verified against docs.github.com.\n\nconst ISSUE_CONTENT_FIELDS = `\n id\n number\n title\n state\n url\n repository { nameWithOwner }\n milestone { number title }\n issueType { name }\n assignees(first: 10) { nodes { login avatarUrl } }\n labels(first: 20) { nodes { name color } }\n`;\n\n/** Resolve a project's node id by org login + number. */\nexport const PROJECT_ID_QUERY = /* GraphQL */ `\n query ProjectId($login: String!, $number: Int!) {\n organization(login: $login) {\n projectV2(number: $number) { id title }\n }\n }\n`;\n\nconst SINGLE_SELECT_VALUE = `\n fieldValueByName(name: \"Status\") {\n __typename\n ... on ProjectV2ItemFieldSingleSelectValue { name optionId }\n }\n`;\n\n/** Paginated project items -> issue content (+ the item's Status field value). */\nexport const PROJECT_ITEMS_QUERY = /* GraphQL */ `\n query ProjectItems($projectId: ID!, $cursor: String) {\n node(id: $projectId) {\n ... on ProjectV2 {\n title\n number\n items(first: 50, after: $cursor) {\n pageInfo { hasNextPage endCursor }\n nodes {\n id\n type\n ${SINGLE_SELECT_VALUE}\n content {\n __typename\n ... on Issue { ${ISSUE_CONTENT_FIELDS} }\n }\n }\n }\n }\n }\n }\n`;\n\n/** Enrich a batch of issues with their project memberships + Status (repo/milestone panes). */\nexport const ENRICH_STATUS_QUERY = /* GraphQL */ `\n query EnrichStatus($ids: [ID!]!) {\n nodes(ids: $ids) {\n ... on Issue {\n id\n projectItems(first: 5) {\n nodes {\n id\n project { ... on ProjectV2 { id number title } }\n ${SINGLE_SELECT_VALUE}\n }\n }\n }\n }\n }\n`;\n\n/** The project's Status single-select field + its options (for the F7 editor). */\nexport const STATUS_FIELD_QUERY = /* GraphQL */ `\n query StatusField($projectId: ID!) {\n node(id: $projectId) {\n ... on ProjectV2 {\n field(name: \"Status\") {\n ... on ProjectV2SingleSelectField { id name options { id name } }\n }\n }\n }\n }\n`;\n\nexport const UPDATE_ITEM_STATUS_MUTATION = /* GraphQL */ `\n mutation SetStatus($projectId: ID!, $itemId: ID!, $fieldId: ID!, $optionId: String!) {\n updateProjectV2ItemFieldValue(\n input: { projectId: $projectId, itemId: $itemId, fieldId: $fieldId, value: { singleSelectOptionId: $optionId } }\n ) {\n projectV2Item { id }\n }\n }\n`;\n\n/** List the org's Projects V2 (for the source selector). */\nexport const ORG_PROJECTS_QUERY = /* GraphQL */ `\n query OrgProjects($login: String!, $cursor: String) {\n organization(login: $login) {\n projectsV2(first: 50, after: $cursor) {\n pageInfo { hasNextPage endCursor }\n nodes { id number title }\n }\n }\n }\n`;\n\n/** All repos + their milestone titles in one paginated query (org-wide milestone selector). */\nexport const ORG_MILESTONES_QUERY = /* GraphQL */ `\n query OrgMilestones($login: String!, $cursor: String) {\n organization(login: $login) {\n repositories(first: 100, after: $cursor, orderBy: { field: PUSHED_AT, direction: DESC }) {\n pageInfo { hasNextPage endCursor }\n nodes {\n milestones(first: 100, states: [OPEN]) {\n nodes { title }\n }\n }\n }\n }\n }\n`;\n\n/** Parent + sub-issues for an issue (the sub-issues feature). */\nexport const ISSUE_RELATIONS_QUERY = /* GraphQL */ `\n query IssueRelations($owner: String!, $repo: String!, $number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $number) {\n parent { number title state url repository { nameWithOwner } }\n subIssues(first: 50) {\n totalCount\n nodes { number title state url repository { nameWithOwner } }\n }\n closedByPullRequestsReferences(first: 10, includeClosedPrs: true) {\n nodes { number title url state repository { nameWithOwner } }\n }\n timelineItems(first: 50, itemTypes: [CROSS_REFERENCED_EVENT]) {\n nodes {\n __typename\n ... on CrossReferencedEvent {\n source {\n __typename\n ... on Issue { number title url state repository { nameWithOwner } }\n ... on PullRequest { number title url state repository { nameWithOwner } }\n }\n }\n }\n }\n }\n }\n }\n`;\n\n/** Resolve a repository node id (transfer target). */\nexport const REPO_ID_QUERY = /* GraphQL */ `\n query RepoId($owner: String!, $name: String!) {\n repository(owner: $owner, name: $name) { id nameWithOwner }\n }\n`;\n\nexport const TRANSFER_ISSUE_MUTATION = /* GraphQL */ `\n mutation TransferIssue($input: TransferIssueInput!) {\n transferIssue(input: $input) {\n issue { id number url repository { nameWithOwner } }\n }\n }\n`;\n\nexport const ADD_PROJECT_ITEM_MUTATION = /* GraphQL */ `\n mutation AddItem($input: AddProjectV2ItemByIdInput!) {\n addProjectV2ItemById(input: $input) { item { id } }\n }\n`;\n\nexport const DELETE_PROJECT_ITEM_MUTATION = /* GraphQL */ `\n mutation DeleteItem($input: DeleteProjectV2ItemInput!) {\n deleteProjectV2Item(input: $input) { deletedItemId }\n }\n`;\n","import type { IssueRow, Label, ProjectStatus, RepoRef } from \"@/lib/types\";\n\nexport interface SingleSelectValue {\n __typename?: string;\n name?: string;\n optionId?: string;\n}\nexport interface ProjectMeta {\n id: string;\n number: number;\n title: string;\n}\n\n// ---- REST (octokit.rest.issues.*) ----\n\nexport interface RestIssue {\n number: number;\n title: string;\n state: string;\n html_url: string;\n node_id: string;\n assignees?: Array<{ login: string; avatar_url: string }> | null;\n labels?: Array<string | { name?: string | null; color?: string | null }>;\n milestone?: { number: number; title: string } | null;\n type?: { name?: string | null } | null;\n pull_request?: unknown;\n}\n\nfunction toLabel(l: string | { name?: string | null; color?: string | null }): Label | null {\n if (typeof l === \"string\") return { name: l, color: \"888888\" };\n if (!l.name) return null;\n return { name: l.name, color: l.color ?? \"888888\" };\n}\n\nexport function mapRestIssue(issue: RestIssue, repo: RepoRef): IssueRow {\n return {\n number: issue.number,\n title: issue.title,\n state: issue.state === \"closed\" ? \"closed\" : \"open\",\n assignees: (issue.assignees ?? []).map((a) => ({ login: a.login, avatarUrl: a.avatar_url })),\n labels: (issue.labels ?? []).map(toLabel).filter((l): l is Label => l !== null),\n milestone: issue.milestone ? { number: issue.milestone.number, title: issue.milestone.title } : null,\n repo,\n htmlUrl: issue.html_url,\n nodeId: issue.node_id,\n type: issue.type?.name ?? null,\n };\n}\n\n/** A repo source lists issues; PRs come back from the same endpoint and must be dropped. */\nexport function isPullRequest(issue: RestIssue): boolean {\n return issue.pull_request != null;\n}\n\n// ---- REST pulls (octokit.rest.pulls.list) ----\n\nexport interface RestPull {\n number: number;\n title: string;\n state: string; // open | closed\n html_url: string;\n node_id: string;\n merged_at?: string | null;\n draft?: boolean | null;\n base: { ref: string };\n head: { ref: string };\n user?: { login: string; avatar_url: string } | null; // PR author\n assignees?: Array<{ login: string; avatar_url: string }> | null;\n labels?: Array<string | { name?: string | null; color?: string | null }>;\n milestone?: { number: number; title: string } | null;\n}\n\nexport function mapRestPull(pull: RestPull, repo: RepoRef): IssueRow {\n const merged = pull.merged_at != null;\n // PRs rarely have explicit assignees; show the author in the person column instead.\n const author = pull.user ? { login: pull.user.login, avatarUrl: pull.user.avatar_url } : null;\n return {\n number: pull.number,\n title: pull.title,\n state: pull.state === \"closed\" ? \"closed\" : \"open\",\n assignees: author ? [author] : [],\n labels: (pull.labels ?? []).map(toLabel).filter((l): l is Label => l !== null),\n milestone: pull.milestone ? { number: pull.milestone.number, title: pull.milestone.title } : null,\n repo,\n htmlUrl: pull.html_url,\n nodeId: pull.node_id,\n type: null,\n pr: {\n merged,\n mergedAt: pull.merged_at ?? null,\n baseRef: pull.base.ref,\n headRef: pull.head.ref,\n draft: !!pull.draft,\n },\n };\n}\n\n// ---- REST search results (octokit.rest.search.issuesAndPullRequests) ----\n\nexport interface SearchIssue {\n number: number;\n title: string;\n state: string;\n html_url: string;\n node_id: string;\n repository_url: string; // https://api.github.com/repos/{owner}/{name}\n assignees?: Array<{ login: string; avatar_url: string }> | null;\n labels?: Array<string | { name?: string | null; color?: string | null }>;\n milestone?: { number: number; title: string } | null;\n type?: { name?: string | null } | null;\n pull_request?: unknown;\n}\n\nexport function mapSearchIssue(it: SearchIssue): IssueRow {\n const m = /repos\\/([^/]+)\\/([^/]+)$/.exec(it.repository_url);\n const owner = m?.[1] ?? \"\";\n const name = m?.[2] ?? \"\";\n return {\n number: it.number,\n title: it.title,\n state: it.state === \"closed\" ? \"closed\" : \"open\",\n assignees: (it.assignees ?? []).map((a) => ({ login: a.login, avatarUrl: a.avatar_url })),\n labels: (it.labels ?? []).map(toLabel).filter((l): l is Label => l !== null),\n milestone: it.milestone ? { number: it.milestone.number, title: it.milestone.title } : null,\n repo: { owner, name },\n htmlUrl: it.html_url,\n nodeId: it.node_id,\n type: it.type?.name ?? null,\n };\n}\n\n// ---- GraphQL (ProjectV2 item -> Issue content) ----\n\nexport interface GqlProjectIssue {\n id: string;\n number: number;\n title: string;\n state: string; // OPEN | CLOSED\n url: string;\n repository: { nameWithOwner: string };\n milestone: { number: number; title: string } | null;\n assignees: { nodes: Array<{ login: string; avatarUrl: string }> };\n labels: { nodes: Array<{ name: string; color: string }> };\n issueType?: { name: string } | null;\n}\n\nexport function mapProjectIssue(\n issue: GqlProjectIssue,\n projectItemId: string,\n project: ProjectMeta,\n statusValue: SingleSelectValue | null,\n): IssueRow {\n const [owner, name] = issue.repository.nameWithOwner.split(\"/\");\n const projectStatus: ProjectStatus = {\n projectId: project.id,\n projectNumber: project.number,\n projectTitle: project.title,\n itemId: projectItemId,\n status: statusValue?.name ?? null,\n optionId: statusValue?.optionId ?? null,\n };\n return {\n number: issue.number,\n title: issue.title,\n state: issue.state === \"CLOSED\" ? \"closed\" : \"open\",\n assignees: issue.assignees.nodes.map((a) => ({ login: a.login, avatarUrl: a.avatarUrl })),\n labels: issue.labels.nodes.map((l) => ({ name: l.name, color: l.color })),\n milestone: issue.milestone ? { number: issue.milestone.number, title: issue.milestone.title } : null,\n repo: { owner, name },\n htmlUrl: issue.url,\n nodeId: issue.id,\n type: issue.issueType?.name ?? null,\n projectItemId,\n projectStatus,\n };\n}\n","import { GithubConfigError } from \"./errors\";\n\n/**\n * The single organization the whole app is scoped to. Set it with the `--org` flag,\n * `IC_GITHUB_ORG` (preferred, prefixed to avoid clashes), or plain `GITHUB_ORG`.\n * There is no in-app switching by design — change it and restart.\n */\nexport function resolveOrg(): string | null {\n return process.env.IC_GITHUB_ORG?.trim() || process.env.GITHUB_ORG?.trim() || null;\n}\n\nexport function getOrg(): string {\n const org = resolveOrg();\n if (!org) {\n throw new GithubConfigError(\n \"NO_ORG\",\n \"No GitHub organization set. Pass `--org=<org>`, or set `IC_GITHUB_ORG` / `GITHUB_ORG`.\",\n );\n }\n return org;\n}\n","import { getOctokit } from \"@/lib/github/client\";\nimport { getOrg } from \"@/lib/github/org\";\nimport { ApiError } from \"@/lib/github/errors\";\nimport { addProjectItem, deleteProjectItem, resolveProjectId, resolveRepoId, transferIssue } from \"@/lib/github/graphql\";\nimport { mapRestIssue, type RestIssue } from \"@/lib/domain/mappers\";\nimport type { CopyResult, IssueComment, IssueRow, MoveResult } from \"@/lib/types\";\nimport type { CopyBody, CreateIssueBody, MoveBody, PatchIssueBody } from \"@/lib/validation/schemas\";\n\n/** Create a new issue in a repo (+ optionally add it to a project). */\nexport async function createIssue(body: CreateIssueBody): Promise<IssueRow> {\n const org = getOrg();\n const octokit = getOctokit();\n\n // Resolve the org-wide milestone title to a number within THIS repo (same as a milestone move).\n let milestoneNumber: number | undefined;\n if (body.milestoneTitle) {\n const milestones = await octokit.paginate(octokit.rest.issues.listMilestones, {\n owner: org,\n repo: body.repo,\n state: \"all\",\n per_page: 100,\n });\n const found = milestones.find((m) => m.title === body.milestoneTitle);\n if (!found) {\n throw new ApiError(\n \"MILESTONE_NOT_FOUND\",\n 400,\n `Repo \"${body.repo}\" has no milestone \"${body.milestoneTitle}\". Create it there first or pick another.`,\n );\n }\n milestoneNumber = found.number;\n }\n\n // `type` (Issue Type name) isn't in octokit's generated params yet — widen the type to pass it.\n const createParams: Parameters<typeof octokit.rest.issues.create>[0] & { type?: string } = {\n owner: org,\n repo: body.repo,\n title: body.title,\n ...(body.body ? { body: body.body } : {}),\n ...(body.assignees?.length ? { assignees: body.assignees } : {}),\n ...(body.labels?.length ? { labels: body.labels } : {}),\n ...(milestoneNumber != null ? { milestone: milestoneNumber } : {}),\n ...(body.type ? { type: body.type } : {}),\n };\n const res = await octokit.rest.issues.create(createParams);\n\n if (body.projectNumber) {\n // The issue is already created; a project-add failure shouldn't fail the whole request.\n try {\n const project = await resolveProjectId(org, body.projectNumber);\n await addProjectItem(project.id, res.data.node_id);\n } catch {\n /* membership can be added later via F5 */\n }\n }\n return mapRestIssue(res.data as unknown as RestIssue, { owner: org, name: body.repo });\n}\n\n/** F3 preview — post a comment on an issue. */\nexport async function addComment(\n owner: string,\n repo: string,\n number: number,\n body: string,\n): Promise<IssueComment> {\n const res = await getOctokit().rest.issues.createComment({ owner, repo, issue_number: number, body });\n const c = res.data;\n return {\n author: c.user?.login ?? \"you\",\n authorAvatarUrl: c.user?.avatar_url ?? \"\",\n body: c.body ?? body,\n createdAt: c.created_at,\n };\n}\n\n/** F4 edit / F8 close / same-repo milestone set — composed into one REST update. */\nexport async function updateIssue(\n owner: string,\n repo: string,\n number: number,\n patch: PatchIssueBody,\n): Promise<IssueRow> {\n const params: Parameters<ReturnType<typeof getOctokit>[\"rest\"][\"issues\"][\"update\"]>[0] & {\n type?: string | null;\n } = {\n owner,\n repo,\n issue_number: number,\n };\n if (patch.body !== undefined) params.body = patch.body;\n if (patch.state !== undefined) params.state = patch.state;\n if (patch.milestoneNumber !== undefined) params.milestone = patch.milestoneNumber;\n if (patch.assignees !== undefined) params.assignees = patch.assignees;\n if (patch.labels !== undefined) params.labels = patch.labels;\n if (patch.type !== undefined) params.type = patch.type; // Issue Type name; null clears\n\n const res = await getOctokit().rest.issues.update(params);\n return mapRestIssue(res.data as unknown as RestIssue, { owner, name: repo });\n}\n\n/** F6 move. */\nexport async function moveIssue(body: MoveBody): Promise<MoveResult> {\n const org = getOrg();\n\n if (body.mode === \"repo\") {\n const repoId = await resolveRepoId(org, body.targetRepo);\n const res = await transferIssue(body.issueNodeId, repoId);\n return {\n mode: \"repo\",\n renumbered: true,\n newNumber: res.number,\n newUrl: res.url,\n newNodeId: res.id,\n warning: \"Issue transferred — it has a new number; the old URL now redirects.\",\n };\n }\n\n if (body.mode === \"milestone\") {\n const octokit = getOctokit();\n let milestoneNumber: number | null = null;\n\n // Resolve the org-wide title to a milestone number within the issue's OWN repo.\n if (body.targetTitle !== null) {\n const milestones = await octokit.paginate(octokit.rest.issues.listMilestones, {\n owner: org,\n repo: body.repo,\n state: \"all\",\n per_page: 100,\n });\n const found = milestones.find((m) => m.title === body.targetTitle);\n if (!found) {\n throw new ApiError(\n \"MILESTONE_NOT_FOUND\",\n 400,\n `Repo \"${body.repo}\" has no milestone \"${body.targetTitle}\". Create it there first, or transfer the issue to a repo that has it.`,\n );\n }\n milestoneNumber = found.number;\n }\n\n await octokit.rest.issues.update({\n owner: org,\n repo: body.repo,\n issue_number: body.number,\n milestone: milestoneNumber,\n });\n return { mode: \"milestone\" };\n }\n\n // mode === \"project\": add to target first, then remove from source (never lose membership).\n const newProjectItemId = await addProjectItem(body.targetProjectId, body.issueNodeId);\n await deleteProjectItem(body.sourceProjectId, body.sourceProjectItemId);\n return { mode: \"project\", newProjectItemId };\n}\n\n/** F5 copy — Projects V2 only. addProjectV2ItemById is idempotent if already present. */\nexport async function copyIssue(body: CopyBody): Promise<CopyResult> {\n const projectItemId = await addProjectItem(body.targetProjectId, body.issueNodeId);\n return { projectItemId };\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/issues/[owner]/[repo]/[number]/route\",\n pathname: \"/api/issues/[owner]/[repo]/[number]\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/app/api/issues/[owner]/[repo]/[number]/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/issues/[owner]/[repo]/[number]/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId,\n deploymentId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { getOctokit } from \"@/lib/github/client\";\nimport { getIssueRelations } from \"@/lib/github/graphql\";\nimport type { IssueComment, IssueDetail, RelatedIssue } from \"@/lib/types\";\n\ntype RawComment = { user?: { login?: string; avatar_url?: string } | null; body?: string | null; created_at: string };\nconst mapComment = (c: RawComment): IssueComment => ({\n author: c.user?.login ?? \"ghost\",\n authorAvatarUrl: c.user?.avatar_url ?? \"\",\n body: c.body ?? \"\",\n createdAt: c.created_at,\n});\n\n// GitHub issue/PR URLs referenced anywhere in the body or comments.\nconst MENTION_RE = /https?:\\/\\/github\\.com\\/([\\w.-]+)\\/([\\w.-]+)\\/(?:issues|pull)\\/(\\d+)/g;\nconst MAX_MENTIONS = 20; // cap the fan-out of follow-up fetches\n\n/** Parse body/comment text for github.com issue/PR links and resolve them to rows. */\nasync function findMentionedIssues(\n octokit: ReturnType<typeof getOctokit>,\n texts: Array<string | null | undefined>,\n exclude: Set<string>,\n): Promise<RelatedIssue[]> {\n const seen = new Set<string>();\n const refs: Array<{ owner: string; repo: string; number: number }> = [];\n for (const text of texts) {\n if (!text) continue;\n for (const m of text.matchAll(MENTION_RE)) {\n const owner = m[1];\n const repo = m[2];\n const number = parseInt(m[3], 10);\n const key = `${owner}/${repo}#${number}`;\n if (exclude.has(key) || seen.has(key)) continue;\n seen.add(key);\n refs.push({ owner, repo, number });\n }\n }\n const rows = await Promise.all(\n refs.slice(0, MAX_MENTIONS).map(async (r): Promise<RelatedIssue | null> => {\n try {\n const { data: i } = await octokit.rest.issues.get({ owner: r.owner, repo: r.repo, issue_number: r.number });\n return {\n number: i.number,\n title: i.title,\n state: i.state === \"closed\" ? \"closed\" : \"open\",\n url: i.html_url,\n repo: `${r.owner}/${r.repo}`,\n isPR: i.pull_request != null,\n };\n } catch {\n return null; // private / deleted / unauthorized — skip silently\n }\n }),\n );\n return rows.filter((x): x is RelatedIssue => x !== null);\n}\n\nexport async function getIssueDetail(\n owner: string,\n repo: string,\n number: number,\n isPr = false,\n): Promise<IssueDetail> {\n const octokit = getOctokit();\n\n // PRs: the issue-relations GraphQL query hard-errors on a PR number, and PRs carry extra\n // stats. Use pulls.get (body/author/state + commits/files/diff) plus the shared issue-comments\n // endpoint (the PR conversation, no review/code comments). No sub-issue relations for PRs.\n if (isPr) {\n const [prRes, comments] = await Promise.all([\n octokit.rest.pulls.get({ owner, repo, pull_number: number }),\n octokit.paginate(octokit.rest.issues.listComments, { owner, repo, issue_number: number, per_page: 100 }),\n ]);\n const pr = prRes.data;\n const mentioned = await findMentionedIssues(\n octokit,\n [pr.body, ...comments.map((c) => c.body)],\n new Set([`${owner}/${repo}#${number}`]),\n );\n return {\n number: pr.number,\n title: pr.title,\n state: pr.state === \"closed\" ? \"closed\" : \"open\",\n body: pr.body ?? \"\",\n htmlUrl: pr.html_url,\n author: pr.user?.login ?? \"ghost\",\n authorAvatarUrl: pr.user?.avatar_url ?? \"\",\n createdAt: pr.created_at,\n comments: comments.map(mapComment),\n parent: null,\n children: [],\n linked: [],\n mentioned,\n pr: {\n merged: pr.merged ?? pr.merged_at != null,\n draft: !!pr.draft,\n baseRef: pr.base.ref,\n headRef: pr.head.ref,\n commits: pr.commits ?? 0,\n changedFiles: pr.changed_files ?? 0,\n additions: pr.additions ?? 0,\n deletions: pr.deletions ?? 0,\n },\n };\n }\n\n const [issueRes, comments, relations] = await Promise.all([\n octokit.rest.issues.get({ owner, repo, issue_number: number }),\n octokit.paginate(octokit.rest.issues.listComments, { owner, repo, issue_number: number, per_page: 100 }),\n getIssueRelations(owner, repo, number),\n ]);\n const issue = issueRes.data;\n // Exclude self + already-shown relations so mentions don't duplicate the other blocks.\n const exclude = new Set<string>([`${owner}/${repo}#${number}`]);\n if (relations.parent) exclude.add(`${relations.parent.repo}#${relations.parent.number}`);\n for (const c of relations.children) exclude.add(`${c.repo}#${c.number}`);\n for (const l of relations.linked) exclude.add(`${l.repo}#${l.number}`);\n const mentioned = await findMentionedIssues(octokit, [issue.body, ...comments.map((c) => c.body)], exclude);\n return {\n number: issue.number,\n title: issue.title,\n state: issue.state === \"closed\" ? \"closed\" : \"open\",\n body: issue.body ?? \"\",\n htmlUrl: issue.html_url,\n author: issue.user?.login ?? \"ghost\",\n authorAvatarUrl: issue.user?.avatar_url ?? \"\",\n createdAt: issue.created_at,\n comments: comments.map(mapComment),\n parent: relations.parent,\n children: relations.children,\n linked: relations.linked,\n mentioned,\n };\n}\n","import type { NextRequest } from \"next/server\";\nimport { getIssueDetail } from \"@/lib/sources/getIssueDetail\";\nimport { addComment, updateIssue } from \"@/lib/sources/mutations\";\nimport { addCommentBodySchema, patchIssueBodySchema } from \"@/lib/validation/schemas\";\nimport { ApiError } from \"@/lib/github/errors\";\nimport { fail, ok } from \"@/lib/http/respond\";\n\nexport const runtime = \"nodejs\";\nexport const dynamic = \"force-dynamic\";\n\ntype Ctx = { params: Promise<{ owner: string; repo: string; number: string }> };\n\nfunction parseNumber(raw: string): number {\n const n = Number(raw);\n if (!Number.isInteger(n) || n <= 0) {\n throw new ApiError(\"BAD_REQUEST\", 400, `Invalid issue number: ${raw}`);\n }\n return n;\n}\n\nexport async function GET(request: NextRequest, ctx: Ctx) {\n try {\n const { owner, repo, number } = await ctx.params;\n const isPr = request.nextUrl.searchParams.get(\"kind\") === \"pr\";\n return ok(await getIssueDetail(owner, repo, parseNumber(number), isPr));\n } catch (e) {\n return fail(e);\n }\n}\n\nexport async function PATCH(request: NextRequest, ctx: Ctx) {\n try {\n const { owner, repo, number } = await ctx.params;\n const json = await request.json().catch(() => null);\n const parsed = patchIssueBodySchema.safeParse(json);\n if (!parsed.success) {\n throw new ApiError(\"BAD_REQUEST\", 400, parsed.error.issues.map((i) => i.message).join(\"; \"));\n }\n return ok(await updateIssue(owner, repo, parseNumber(number), parsed.data));\n } catch (e) {\n return fail(e);\n }\n}\n\nexport async function POST(request: NextRequest, ctx: Ctx) {\n try {\n const { owner, repo, number } = await ctx.params;\n const json = await request.json().catch(() => null);\n const parsed = addCommentBodySchema.safeParse(json);\n if (!parsed.success) {\n throw new ApiError(\"BAD_REQUEST\", 400, parsed.error.issues.map((i) => i.message).join(\"; \"));\n }\n return ok(await addComment(owner, repo, parseNumber(number), parsed.data.body));\n } catch (e) {\n return fail(e);\n }\n}\n"],"names":["ApiError","Error","code","status","extra","message","name","GithubConfigError","toApiError","e","err","Array","isArray","errors","length","rateLimited","some","x","type","notFound","map","filter","Boolean","join","undefined","remaining","response","headers","reset","retryAfterSeconds","Math","max","Number","floor","Date","now","ISSUE_CONTENT_FIELDS","PROJECT_ID_QUERY","SINGLE_SELECT_VALUE","PROJECT_ITEMS_QUERY","ENRICH_STATUS_QUERY","STATUS_FIELD_QUERY","UPDATE_ITEM_STATUS_MUTATION","ORG_PROJECTS_QUERY","ORG_MILESTONES_QUERY","ISSUE_RELATIONS_QUERY","REPO_ID_QUERY","TRANSFER_ISSUE_MUTATION","ADD_PROJECT_ITEM_MUTATION","DELETE_PROJECT_ITEM_MUTATION","resolveOrg","process","env","IC_GITHUB_ORG","trim","GITHUB_ORG","getOrg","org","createIssue","body","octokit","milestoneNumber","milestoneTitle","milestones","paginate","rest","issues","listMilestones","owner","repo","state","per_page","found","find","m","title","number","createParams","assignees","labels","milestone","res","create","projectNumber","project","id","data","node_id","addComment","createComment","issue_number","c","author","user","login","authorAvatarUrl","avatar_url","createdAt","created_at","updateIssue","patch","params","update","moveIssue","mode","repoId","targetRepo","issueNodeId","renumbered","newNumber","newUrl","url","newNodeId","warning","targetTitle","newProjectItemId","targetProjectId","sourceProjectId","sourceProjectItemId","copyIssue","projectItemId","mapComment","MENTION_RE","MAX_MENTIONS","findMentionedIssues","texts","exclude","seen","Set","refs","text","matchAll","parseInt","key","has","add","push","rows","Promise","all","slice","r","i","get","html_url","isPR","pull_request","getIssueDetail","pr","isPr","commits","prRes","comments","relations","pulls","pull_number","listComments","mentioned","parent","linked","htmlUrl","issue","children","merged","merged_at","draft","baseRef","base","ref","headRef","head","changedFiles","changed_files","additions","deletions","issueRes","l"],"mappings":"glCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,MCgBO,OAAMA,UAAiBC,MAC5BC,IAAmB,CACnBC,MAAe,CACfC,KAAgC,AAE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