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.
- package/.next/BUILD_ID +1 -0
- package/.next/app-path-routes-manifest.json +18 -0
- package/.next/build/56416d4ae4ce586f.js +6 -0
- package/.next/build/56416d4ae4ce586f.js.map +5 -0
- package/.next/build/chunks/[root-of-the-server]__0oj80bi._.js +206 -0
- package/.next/build/chunks/[root-of-the-server]__0oj80bi._.js.map +8 -0
- package/.next/build/chunks/[root-of-the-server]__1f933tp._.js +500 -0
- package/.next/build/chunks/[root-of-the-server]__1f933tp._.js.map +11 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js +13 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js.map +5 -0
- package/.next/build/chunks/[turbopack]_runtime.js +890 -0
- package/.next/build/chunks/[turbopack]_runtime.js.map +11 -0
- package/.next/build/chunks/node_modules__pnpm_0ncq4wh._.js +6671 -0
- package/.next/build/chunks/node_modules__pnpm_0ncq4wh._.js.map +47 -0
- package/.next/build/package.json +1 -0
- package/.next/build-manifest.json +20 -0
- package/.next/diagnostics/build-diagnostics.json +6 -0
- package/.next/diagnostics/framework.json +1 -0
- package/.next/diagnostics/route-bundle-stats.json +29 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +13 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +114 -0
- package/.next/required-server-files.js +338 -0
- package/.next/required-server-files.json +338 -0
- package/.next/routes-manifest.json +146 -0
- package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_global-error/page/build-manifest.json +16 -0
- package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_global-error/page.js +10 -0
- package/.next/server/app/_global-error/page.js.map +5 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +15 -0
- package/.next/server/app/_global-error.rsc +15 -0
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +15 -0
- package/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_not-found/page/build-manifest.json +16 -0
- package/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_not-found/page.js +13 -0
- package/.next/server/app/_not-found/page.js.map +5 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +16 -0
- package/.next/server/app/_not-found.rsc +18 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +18 -0
- package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/.next/server/app/api/actions/copy/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/actions/copy/route/build-manifest.json +9 -0
- package/.next/server/app/api/actions/copy/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/actions/copy/route.js +9 -0
- package/.next/server/app/api/actions/copy/route.js.map +5 -0
- package/.next/server/app/api/actions/copy/route.js.nft.json +1 -0
- package/.next/server/app/api/actions/copy/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/actions/move/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/actions/move/route/build-manifest.json +9 -0
- package/.next/server/app/api/actions/move/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/actions/move/route.js +9 -0
- package/.next/server/app/api/actions/move/route.js.map +5 -0
- package/.next/server/app/api/actions/move/route.js.nft.json +1 -0
- package/.next/server/app/api/actions/move/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/actions/set-status/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/actions/set-status/route/build-manifest.json +9 -0
- package/.next/server/app/api/actions/set-status/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/actions/set-status/route.js +9 -0
- package/.next/server/app/api/actions/set-status/route.js.map +5 -0
- package/.next/server/app/api/actions/set-status/route.js.nft.json +1 -0
- package/.next/server/app/api/actions/set-status/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/img/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/img/route/build-manifest.json +9 -0
- package/.next/server/app/api/img/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/img/route.js +6 -0
- package/.next/server/app/api/img/route.js.map +5 -0
- package/.next/server/app/api/img/route.js.nft.json +1 -0
- package/.next/server/app/api/img/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/issue-types/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/issue-types/route/build-manifest.json +9 -0
- package/.next/server/app/api/issue-types/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/issue-types/route.js +8 -0
- package/.next/server/app/api/issue-types/route.js.map +5 -0
- package/.next/server/app/api/issue-types/route.js.nft.json +1 -0
- package/.next/server/app/api/issue-types/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/issues/[owner]/[repo]/[number]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/issues/[owner]/[repo]/[number]/route/build-manifest.json +9 -0
- package/.next/server/app/api/issues/[owner]/[repo]/[number]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/issues/[owner]/[repo]/[number]/route.js +9 -0
- package/.next/server/app/api/issues/[owner]/[repo]/[number]/route.js.map +5 -0
- package/.next/server/app/api/issues/[owner]/[repo]/[number]/route.js.nft.json +1 -0
- package/.next/server/app/api/issues/[owner]/[repo]/[number]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/issues/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/issues/route/build-manifest.json +9 -0
- package/.next/server/app/api/issues/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/issues/route.js +9 -0
- package/.next/server/app/api/issues/route.js.map +5 -0
- package/.next/server/app/api/issues/route.js.nft.json +1 -0
- package/.next/server/app/api/issues/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/project-status/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/project-status/route/build-manifest.json +9 -0
- package/.next/server/app/api/project-status/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/project-status/route.js +9 -0
- package/.next/server/app/api/project-status/route.js.map +5 -0
- package/.next/server/app/api/project-status/route.js.nft.json +1 -0
- package/.next/server/app/api/project-status/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/repo-options/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/repo-options/route/build-manifest.json +9 -0
- package/.next/server/app/api/repo-options/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/repo-options/route.js +9 -0
- package/.next/server/app/api/repo-options/route.js.map +5 -0
- package/.next/server/app/api/repo-options/route.js.nft.json +1 -0
- package/.next/server/app/api/repo-options/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/sources/milestones/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/sources/milestones/route/build-manifest.json +9 -0
- package/.next/server/app/api/sources/milestones/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/sources/milestones/route.js +8 -0
- package/.next/server/app/api/sources/milestones/route.js.map +5 -0
- package/.next/server/app/api/sources/milestones/route.js.nft.json +1 -0
- package/.next/server/app/api/sources/milestones/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/sources/projects/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/sources/projects/route/build-manifest.json +9 -0
- package/.next/server/app/api/sources/projects/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/sources/projects/route.js +8 -0
- package/.next/server/app/api/sources/projects/route.js.map +5 -0
- package/.next/server/app/api/sources/projects/route.js.nft.json +1 -0
- package/.next/server/app/api/sources/projects/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/sources/repos/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/sources/repos/route/build-manifest.json +9 -0
- package/.next/server/app/api/sources/repos/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/sources/repos/route.js +8 -0
- package/.next/server/app/api/sources/repos/route.js.map +5 -0
- package/.next/server/app/api/sources/repos/route.js.nft.json +1 -0
- package/.next/server/app/api/sources/repos/route_client-reference-manifest.js +3 -0
- package/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
- package/.next/server/app/favicon.ico/route/build-manifest.json +9 -0
- package/.next/server/app/favicon.ico/route.js +8 -0
- package/.next/server/app/favicon.ico/route.js.map +5 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +14 -0
- package/.next/server/app/index.rsc +19 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
- package/.next/server/app/index.segments/_full.segment.rsc +19 -0
- package/.next/server/app/index.segments/_head.segment.rsc +6 -0
- package/.next/server/app/index.segments/_index.segment.rsc +7 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/page/app-paths-manifest.json +3 -0
- package/.next/server/app/page/build-manifest.json +16 -0
- package/.next/server/app/page/next-font-manifest.json +11 -0
- package/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/page/server-reference-manifest.json +4 -0
- package/.next/server/app/page.js +14 -0
- package/.next/server/app/page.js.map +5 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +3 -0
- package/.next/server/app-paths-manifest.json +18 -0
- package/.next/server/chunks/0k5d_next_1k6ii1a._.js +13 -0
- package/.next/server/chunks/0k5d_next_1k6ii1a._.js.map +1 -0
- package/.next/server/chunks/0k5d_next_dist_esm_build_templates_app-route_1ws-fkb.js +3 -0
- package/.next/server/chunks/0k5d_next_dist_esm_build_templates_app-route_1ws-fkb.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_issues_[owner]_[repo]_[number]_route_actions_1erp-fu.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_issues_[owner]_[repo]_[number]_route_actions_1erp-fu.js.map +1 -0
- package/.next/server/chunks/[externals]_next_dist_0iuj5m_._.js +3 -0
- package/.next/server/chunks/[externals]_next_dist_0iuj5m_._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0-gtfs0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0-gtfs0._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__09cbec6._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__09cbec6._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__09q-926._.js +14 -0
- package/.next/server/chunks/[root-of-the-server]__09q-926._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0awb99_._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__0awb99_._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0b6k4yz._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__0b6k4yz._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0cxgicj._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__0cxgicj._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__10mpo5n._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__10mpo5n._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__12biw0a._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__12biw0a._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__15iafqs._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__15iafqs._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1b3873y._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1b3873y._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1f2rnoy._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__1f2rnoy._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1grtvo6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1grtvo6._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1h5gc1a._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__1h5gc1a._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1qtjaw1._.js +146 -0
- package/.next/server/chunks/[root-of-the-server]__1qtjaw1._.js.map +1 -0
- package/.next/server/chunks/[turbopack]_runtime.js +903 -0
- package/.next/server/chunks/[turbopack]_runtime.js.map +11 -0
- package/.next/server/chunks/_next-internal_server_app_api_actions_copy_route_actions_1gsfs93.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_actions_copy_route_actions_1gsfs93.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_actions_move_route_actions_1an7jh0.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_actions_move_route_actions_1an7jh0.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_actions_set-status_route_actions_0ydlqpv.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_actions_set-status_route_actions_0ydlqpv.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_img_route_actions_09jwciw.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_img_route_actions_09jwciw.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_issue-types_route_actions_1_u9itu.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_issue-types_route_actions_1_u9itu.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_issues_route_actions_1fe49_0.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_issues_route_actions_1fe49_0.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_project-status_route_actions_0b_j5z9.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_project-status_route_actions_0b_j5z9.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_repo-options_route_actions_0uwnoxg.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_repo-options_route_actions_0uwnoxg.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_sources_milestones_route_actions_0byfu1a.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_sources_milestones_route_actions_0byfu1a.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_sources_projects_route_actions_1immsap.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_sources_projects_route_actions_1immsap.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_sources_repos_route_actions_1bs29i7.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_sources_repos_route_actions_1bs29i7.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js.map +1 -0
- package/.next/server/chunks/lib_validation_schemas_ts_12hfsov._.js +64 -0
- package/.next/server/chunks/lib_validation_schemas_ts_12hfsov._.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_0s9uxxp._.js +6 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_0s9uxxp._.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_06ol0xl._.js +3 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_06ol0xl._.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_forbidden_1p4io1g.js +3 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_forbidden_1p4io1g.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_global-error_1-2crru.js +3 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_global-error_1-2crru.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_unauthorized_0xr3wsj.js +3 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_client_components_builtin_unauthorized_0xr3wsj.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_05682-v.js +4 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_05682-v.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_0rc1ivy.js +4 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_0rc1ivy.js.map +1 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_1s1d6e7.js +4 -0
- package/.next/server/chunks/ssr/0k5d_next_dist_esm_build_templates_app-page_1s1d6e7.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0139ie3._.js +33 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0139ie3._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__037e4a0._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__037e4a0._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0j86va_._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0j86va_._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0lap0he._.js +19 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0lap0he._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0nrb7hf._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0nrb7hf._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0uzhw0c._.js +33 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0uzhw0c._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15c79qg._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15c79qg._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15srn38._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15srn38._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1odgy3m._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1odgy3m._.js.map +1 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +11 -0
- package/.next/server/chunks/ssr/_0och_zz._.js +3 -0
- package/.next/server/chunks/ssr/_0och_zz._.js.map +1 -0
- package/.next/server/chunks/ssr/_12s2gnq._.js +3 -0
- package/.next/server/chunks/ssr/_12s2gnq._.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0bitpno._.js +33 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0bitpno._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0l85403._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0l85403._.js.map +1 -0
- package/.next/server/functions-config-manifest.json +17 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +20 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +15 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/prefetch-hints.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +5 -0
- package/.next/static/U75zJFXx630YxQTwEn0PN/_buildManifest.js +11 -0
- package/.next/static/U75zJFXx630YxQTwEn0PN/_clientMiddlewareManifest.js +1 -0
- package/.next/static/U75zJFXx630YxQTwEn0PN/_ssgManifest.js +1 -0
- package/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/.next/static/chunks/0hha91vaoysnq.js +1 -0
- package/.next/static/chunks/1oh3rj3i5urjs.js +1 -0
- package/.next/static/chunks/246am3y0860nw.css +3 -0
- package/.next/static/chunks/2qd-x1d_x72ft.js +1 -0
- package/.next/static/chunks/2uc8ryc2bya03.js +5 -0
- package/.next/static/chunks/3eypa2kwq_3sl.js +31 -0
- package/.next/static/chunks/3fgrsgshjfptj.js +1 -0
- package/.next/static/chunks/3y1pwecaxueam.js +1 -0
- package/.next/static/chunks/turbopack-2mjg24bp-2jgu.js +1 -0
- package/.next/static/media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2 +0 -0
- package/.next/static/media/53b9e256198e5412-s.390ncx5urfkfu.woff2 +0 -0
- package/.next/static/media/5ce348bf30bf5439-s.31988l_ccedte.woff2 +0 -0
- package/.next/static/media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2 +0 -0
- package/.next/static/media/7178b3e590c64307-s.21jp631_3pja2.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2 +0 -0
- package/.next/static/media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2 +0 -0
- package/.next/static/media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2 +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2 +0 -0
- package/.next/static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2 +0 -0
- package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- package/.next/static/media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2 +0 -0
- package/.next/trace +1 -0
- package/.next/trace-build +1 -0
- package/.next/turbopack +0 -0
- package/.next/types/cache-life.d.ts +145 -0
- package/.next/types/routes.d.ts +84 -0
- package/.next/types/validator.ts +178 -0
- package/README.md +224 -0
- package/bin/issue-commander.js +103 -0
- package/next.config.ts +13 -0
- package/package.json +82 -0
- package/public/file.svg +1 -0
- package/public/globe.svg +1 -0
- package/public/next.svg +1 -0
- package/public/vercel.svg +1 -0
- package/public/window.svg +1 -0
|
@@ -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/listSources.ts","../../../lib/github/cache.ts","../../../app/api/sources/milestones/route.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"],"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 { cached } from \"@/lib/github/cache\";\nimport { listOrgMilestones, listOrgProjects } from \"@/lib/github/graphql\";\nimport type { MilestoneOption, ProjectOption, RepoOption, RepoOptions } from \"@/lib/types\";\n\nconst TTL = 2 * 60 * 1000;\n\nexport function listRepos(): Promise<RepoOption[]> {\n const org = getOrg();\n return cached(`repos:${org}`, TTL, async () => {\n const octokit = getOctokit();\n const repos = await octokit.paginate(octokit.rest.repos.listForOrg, {\n org,\n per_page: 100,\n sort: \"pushed\",\n });\n return repos.map((r) => ({ owner: org, name: r.name, private: r.private }));\n });\n}\n\n/**\n * Aggregate distinct milestone titles across every org repo. Milestones are\n * repo-scoped in GitHub, but teams reuse the same title across repos. Uses one\n * paginated GraphQL query (not a per-repo REST fan-out, which overwhelmed the\n * dev async-hooks instrumentation and was slow).\n */\nexport function listMilestones(): Promise<MilestoneOption[]> {\n const org = getOrg();\n return cached(`milestones:${org}`, TTL, () => listOrgMilestones(org));\n}\n\nexport function listProjects(): Promise<ProjectOption[]> {\n const org = getOrg();\n return cached(`projects:${org}`, TTL, () => listOrgProjects(org));\n}\n\n/** Assignable users, labels, and open milestones for a repo (F7 quick-edit). */\nexport function listRepoOptions(repo: string): Promise<RepoOptions> {\n const org = getOrg();\n return cached(`repoOptions:${org}/${repo}`, TTL, async () => {\n const octokit = getOctokit();\n const [assignees, labels, milestones] = await Promise.all([\n octokit.paginate(octokit.rest.issues.listAssignees, { owner: org, repo, per_page: 100 }),\n octokit.paginate(octokit.rest.issues.listLabelsForRepo, { owner: org, repo, per_page: 100 }),\n octokit.paginate(octokit.rest.issues.listMilestones, { owner: org, repo, state: \"open\", per_page: 100 }),\n ]);\n return {\n assignees: assignees.map((a) => ({ login: a.login, avatarUrl: a.avatar_url })),\n labels: labels.map((l) => ({ name: l.name, color: l.color })),\n milestones: milestones.map((m) => ({ number: m.number, title: m.title })),\n };\n });\n}\n","// Tiny in-memory TTL cache for source lists (repos / milestones / projects).\n// These change rarely; caching keeps the source selector snappy and survives\n// browser refreshes (which clear the client-side React Query cache).\n\ninterface Entry<T> {\n value: T;\n expires: number;\n}\n\nconst store = new Map<string, Entry<unknown>>();\n\nexport async function cached<T>(key: string, ttlMs: number, fn: () => Promise<T>): Promise<T> {\n const now = Date.now();\n const hit = store.get(key) as Entry<T> | undefined;\n if (hit && hit.expires > now) return hit.value;\n const value = await fn();\n store.set(key, { value, expires: now + ttlMs });\n return value;\n}\n","import { listMilestones } from \"@/lib/sources/listSources\";\nimport { fail, ok } from \"@/lib/http/respond\";\n\nexport const runtime = \"nodejs\";\nexport const dynamic = \"force-dynamic\";\n\nexport async function GET() {\n try {\n return ok({ milestones: await listMilestones() });\n } catch (e) {\n return fail(e);\n }\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/sources/milestones/route\",\n pathname: \"/api/sources/milestones\",\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/sources/milestones/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/sources/milestones/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"],"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","store","Map","cached","key","ttlMs","fn","hit","get","expires","value","set","runtime","dynamic","GET","milestones"],"mappings":"glCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,MCgBO,OAAMA,UAAiBC,MAC5BC,IAAmB,AACnBC,OAAe,CACfC,KAAgC,AAEhCJ,aAAYE,CAAkB,CAAEC,CAAc,CAAEE,CAAe,CAAED,CAA+B,CAAE,CAChG,KAAK,CAACC,GACN,IAAI,CAACC,IAAI,CAAG,WACZ,IAAI,CAACJ,IAAI,CAAGA,EACZ,IAAI,CAACC,MAAM,CAAGA,EACd,IAAI,CAACC,KAAK,CAAGA,CACf,CACF,CAGO,MAAMG,UAA0BP,EACrCO,YAAYL,CAA2B,CAAEG,CAAe,CAAE,CACxD,KAAK,CAACH,EAAM,IAAKG,GACjB,IAAI,CAACC,IAAI,CAAG,mBACd,CACF,4DAUO,SAASE,AAAWC,CAAU,EACnC,GAAIA,aAAaT,EAAU,OAAOS,EAElC,IAAMC,EAAOD,GAAK,CAAC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AA,EAAA,EAAA,YAAY,AAAZ,EAAa,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,GAAyB,EACzB,MAAM,EAAe,EADgB,EAGrC,EAAa,EAAO,kBAAkB,GACtC,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,QAAiB,EAAW,CAAC,GAE5C,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA5TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[9]}
|
|
@@ -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"],o=t.response?.headers?.["x-ratelimit-reset"];if(429===n||"0"===e)return new r("RATE_LIMITED",429,"GitHub REST rate limit exceeded.",{retryAfterSeconds:o?Math.max(0,Number(o)-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 o=null;e.s(["getToken",0,function(){if(o)return o;let e=process.env.GITHUB_TOKEN??process.env.GH_TOKEN;if(e&&e.trim())return o=e.trim();try{let e=(0,t.execFileSync)("gh",["auth","token"],{encoding:"utf8"}).trim();if(!e)throw Error("empty token");return o=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
|
+
`,o=`
|
|
13
|
+
query ProjectId($login: String!, $number: Int!) {
|
|
14
|
+
organization(login: $login) {
|
|
15
|
+
projectV2(number: $number) { id title }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`,s=`
|
|
19
|
+
fieldValueByName(name: "Status") {
|
|
20
|
+
__typename
|
|
21
|
+
... on ProjectV2ItemFieldSingleSelectValue { name optionId }
|
|
22
|
+
}
|
|
23
|
+
`,i=`
|
|
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
|
+
${s}
|
|
35
|
+
content {
|
|
36
|
+
__typename
|
|
37
|
+
... on Issue { ${n} }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`,a=`
|
|
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
|
+
${s}
|
|
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 I(e){return"string"==typeof e?{name:e,color:"888888"}:e.name?{name:e.name,color:e.color??"888888"}:null}function y(e,t,r,n){let[o,s]=e.repository.nameWithOwner.split("/"),i={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:o,name:s},htmlUrl:e.url,nodeId:e.id,type:e.issueType?.name??null,projectItemId:t,projectStatus:i}}function w(e,r){return(0,t.getOctokit)().graphql(e,r)}async function b(e,t){let n=await w(o,{login:e,number:t}),s=n.organization?.projectV2;if(!s)throw new r.ApiError("PROJECT_NOT_FOUND",404,`Project #${t} not found in @${e}.`);return s}async function R(e,t){let n=await w(i,{projectId:e,cursor:t??null});if(!n.node)throw new r.ApiError("PROJECT_NOT_FOUND",404,"Project not found.");let o={id:e,number:n.node.number,title:n.node.title},s=[],a=0;for(let e of n.node.items.nodes)e.content?.__typename==="Issue"?s.push(y(e.content,e.id,o,e.fieldValueByName)):a++;return{title:n.node.title,rows:s,pageInfo:n.node.items.pageInfo,skippedDrafts:a}}async function E(e,t){let r=new Map;if(0===e.length)return r;for(let n of(await w(a,{ids:e})).nodes){if(!n)continue;let e=n.projectItems.nodes.filter(e=>e.project);if(0===e.length)continue;let o=(null!=t?e.find(e=>e.project.number===t):void 0)??e[0];r.set(n.id,{projectId:o.project.id,projectNumber:o.project.number,projectTitle:o.project.title,itemId:o.id,status:o.fieldValueByName?.name??null,optionId:o.fieldValueByName?.optionId??null,multiple:e.length>1})}return r}async function x(e){let t=await w(l,{projectId:e}),r=t.node?.field;return r?{fieldId:r.id,options:r.options}:null}async function v(e,t,r,n){await w(u,{projectId:e,itemId:t,fieldId:r,optionId:n})}async function _(e){let t=[],r=null;do{let n=await w(d,{login:e,cursor:r}),o=n.organization?.projectsV2;if(!o)break;t.push(...o.nodes),r=o.pageInfo.hasNextPage?o.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}),o=n.organization?.repositories;if(!o)break;for(let e of o.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=o.pageInfo.hasNextPage?o.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,y,"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(I).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(I).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(I).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 O=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 S(e,t,r){let n=await w(c,{owner:e,repo:t,number:r}),o=n.repository?.issue,s=new Map;for(let e of o?.closedByPullRequestsReferences.nodes??[])s.set(e.url,P(e,!0));for(let e of o?.timelineItems.nodes??[])e.source&&s.set(e.source.url,P(e.source,"PullRequest"===e.source.__typename));return{parent:o?.parent?O(o.parent):null,children:(o?.subIssues.nodes??[]).map(O),linked:[...s.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 $(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 N(e,t){return(await w(h,{input:{projectId:e,itemId:t}})).deleteProjectV2Item.deletedItemId}e.s(["addProjectItem",0,C,"deleteProjectItem",0,N,"enrichProjectStatus",0,E,"getIssueRelations",0,S,"getStatusField",0,x,"listOrgMilestones",0,j,"listOrgProjects",0,_,"listProjectItems",0,R,"resolveProjectId",0,b,"resolveRepoId",0,T,"setItemStatus",0,v,"transferIssue",0,$],66231)},90191,e=>{"use strict";var t=e.i(96364),r=e.i(80796),n=e.i(88819),o=e.i(67765),s=e.i(58326),i=e.i(38970),a=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 I=e.i(30778),y=e.i(66231),w=e.i(80956),b=e.i(50604),R=e.i(53453);async function E(e){try{let t=await e.json().catch(()=>null),r=w.setStatusBodySchema.safeParse(t);if(!r.success)throw new b.ApiError("BAD_REQUEST",400,r.error.issues.map(e=>e.message).join("; "));let{projectId:n,itemId:o,fieldId:s,optionId:i}=r.data;return await (0,y.setItemStatus)(n,o,s,i),(0,R.ok)({ok:!0})}catch(e){return(0,R.fail)(e)}}e.s(["POST",0,E,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],44649);var x=e.i(44649);let v=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/actions/set-status/route",pathname:"/api/actions/set-status",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/actions/set-status/route.ts",nextConfigOutput:"",userland:x,...{}}),{workAsyncStorage:_,workUnitAsyncStorage:j,serverHooks:O}=v;async function P(e,t,n){n.requestMeta&&(0,o.setRequestMeta)(e,n.requestMeta),v.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/api/actions/set-status/route";y=y.replace(/\/index$/,"")||"/";let w=await v.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:b,deploymentId:R,params:E,nextConfig:x,parsedUrl:_,isDraftMode:j,prerenderManifest:O,routerServerContext:P,isOnDemandRevalidate:S,revalidateOnlyGenerated:T,resolvedPathname:$,clientReferenceManifest:C,serverActionsManifest:N}=w,A=(0,a.normalizeAppPath)(y),q=!!(O.dynamicRoutes[A]||O.routes[$]),D=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,_,!1):t.end("This page could not be found"),null);if(q&&!j){let e=!!O.routes[$],t=O.dynamicRoutes[A];if(t&&!1===t.fallback&&!e){if(x.adapterPath)return await D();throw new h.NoFallbackError}}let U=null;!q||v.isDev||j||(U="/index"===(U=$)?"/":U);let k=!0===v.isDev||!q,H=q&&!k;N&&C&&(0,i.setManifestsSingleton)({page:y,clientReferenceManifest:C,serverActionsManifest:N});let V=e.method||"GET",M=(0,s.getTracer)(),B=M.getActiveScopeSpan(),F=!!(null==P?void 0:P.isWrappedByNextServer),G=!!(0,o.getRequestMeta)(e,"minimalMode"),W=(0,o.getRequestMeta)(e,"incrementalCache")||await v.getIncrementalCache(e,x,O,G);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let L={params:E,previewProps:O.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:k,incrementalCache:W,cacheLifeProfiles:x.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,o)=>v.onRequestError(e,t,n,o,P)},sharedContext:{buildId:b,deploymentId:R}},K=new l.NodeNextRequest(e),z=new l.NodeNextResponse(t),Q=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let o,i=async e=>v.handle(Q,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.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=`${V} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),o&&o!==e&&(o.setAttribute("http.route",n),o.updateName(t))}else e.updateName(`${V} ${y}`)}),a=async o=>{var s,a;let l=async({previousCacheEntry:r})=>{try{if(!G&&S&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(o);e.fetchMetrics=L.renderOpts.fetchMetrics;let a=L.renderOpts.pendingWaitUntil;a&&n.waitUntil&&(n.waitUntil(a),a=void 0);let l=L.renderOpts.collectedTags;if(!q)return await (0,c.sendResponse)(K,z,s,L.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[g.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,n=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:I.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await v.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:S})},!1,P),t}},u=await v.handleResponse({req:e,nextConfig:x,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:O,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:G});if(!q)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==I.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(a=u.value)?void 0:a.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||t.setHeader("x-nextjs-cache",S?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),j&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,m.fromNodeOutgoingHttpHeaders)(u.value.headers);return G&&q||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};F&&B?await a(B):(o=M.getActiveScopeSpan(),await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${V} ${y}`,kind:s.SpanKind.SERVER,attributes:{"http.method":V,"http.target":e.url}},a),void 0,!F))}catch(t){if(t instanceof h.NoFallbackError||await v.onRequestError(e,t,{routerKind:"App Router",routePath:A,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:S})},!1,P),q)throw t;return await (0,c.sendResponse)(K,z,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:_,workUnitAsyncStorage:j})},"routeModule",0,v,"serverHooks",0,O,"workAsyncStorage",0,_,"workUnitAsyncStorage",0,j],90191)}];
|
|
145
|
+
|
|
146
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__15iafqs._.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","../../../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","../../../app/api/actions/set-status/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 { 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/actions/set-status/route\",\n pathname: \"/api/actions/set-status\",\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/actions/set-status/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/actions/set-status/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 type { NextRequest } from \"next/server\";\nimport { setItemStatus } from \"@/lib/github/graphql\";\nimport { setStatusBodySchema } 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\nexport async function POST(request: NextRequest) {\n try {\n const json = await request.json().catch(() => null);\n const parsed = setStatusBodySchema.safeParse(json);\n if (!parsed.success) {\n throw new ApiError(\"BAD_REQUEST\", 400, parsed.error.issues.map((i) => i.message).join(\"; \"));\n }\n const { projectId, itemId, fieldId, optionId } = parsed.data;\n await setItemStatus(projectId, itemId, fieldId, optionId);\n return ok({ ok: true });\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","runtime","dynamic","POST","request","json","catch","parsed","safeParse","success","error","issues","i","projectId","itemId","fieldId","optionId","data","ok"],"mappings":"glCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,MCgBO,OAAMA,UAAiBC,MAC5BC,IAAmB,CACnBC,MAAe,CACfC,KAAgC,AAEhCJ,aAAYE,CAAkB,CAAEC,CAAc,CAAEE,CAAe,CAAED,CAA+B,CAAE,CAChG,KAAK,CAACC,GACN,IAAI,CAACC,IAAI,CAAG,WACZ,IAAI,CAACJ,IAAI,CAAGA,EACZ,IAAI,CAACC,MAAM,CAAGA,EACd,IAAI,CAACC,KAAK,CAAGA,CACf,CACF,CAGO,MAAMG,UAA0BP,EACrCO,YAAYL,CAA2B,CAAEG,CAAe,CAAE,CACxD,KAAK,CAACH,EAAM,IAAKG,GACjB,IAAI,CAACC,IAAI,CAAG,mBACd,CACF,4DAUO,SAASE,AAAWC,CAAU,EACnC,GAAIA,aAAaT,EAAU,OAAOS,EAElC,IAAMC,EAAOD,GAAK,CAAC,EAGnB,GAAIE,MAAMC,OAAO,CAACF,EAAIG,MAAM,GAAKH,EAAIG,MAAM,CAACC,MAAM,CAAG,GAAG,MAEtD,AADoBJ,EAAIG,EACpBE,IAD0B,CAACC,IAAI,CAAC,AAACC,GAAiB,AACrC,iBAD0BA,EAAEC,IAAI,EAExC,IAAIlB,EAAS,eAAgB,IAAK,0DAE1BU,EAAIG,MAAM,CAACG,IAAI,CAAC,AAACC,GAAiB,cAAXA,EAAEC,IAAI,EAErC,IAAIlB,EAAS,YAAa,IAAKU,EAAIG,MAAM,CAAC,EAAE,EAAER,SAAW,uBAE3D,IAAIL,EAAS,eAAgB,IAAKU,EAAIG,MAAM,CAACO,GAAG,CAAC,AAACH,GAAMA,EAAEZ,OAAO,EAAEgB,MAAM,CAACC,SAASC,IAAI,CAAC,OAAS,yBAG1G,IAAMpB,EAA+B,UAAtB,OAAOO,EAAIP,MAAM,CAAgBO,EAAIP,MAAM,CA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