trybeacon 0.1.66 → 0.1.68
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/.claude-plugin/plugin.json +1 -1
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +8 -12
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -27
- package/.next/routes-manifest.json +0 -28
- package/.next/server/app/_global-error/page.js +3 -3
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +11 -11
- package/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/board-annotations/[id]/route.js +1 -1
- package/.next/server/app/api/board-annotations/route.js +1 -1
- package/.next/server/app/api/board-layout/route.js +1 -1
- package/.next/server/app/api/bug-flags/[id]/route.js +1 -1
- package/.next/server/app/api/bug-flags/route.js +1 -1
- package/.next/server/app/api/code-graph/position/route.js +1 -1
- package/.next/server/app/api/code-graph/route.js +1 -1
- package/.next/server/app/api/context/feature/route.js +1 -1
- package/.next/server/app/api/context/file/route.js +1 -1
- package/.next/server/app/api/context/route.js +1 -1
- package/.next/server/app/api/db/arrange/route.js +1 -1
- package/.next/server/app/api/db/backfill-access/route.js +1 -1
- package/.next/server/app/api/db/position/route.js +1 -1
- package/.next/server/app/api/db/prune-planned/route.js +1 -1
- package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
- package/.next/server/app/api/db/relations/[id]/route.js +1 -1
- package/.next/server/app/api/db/tables/[id]/route.js +1 -1
- package/.next/server/app/api/draft/approve/route.js +1 -1
- package/.next/server/app/api/draft/route.js +1 -1
- package/.next/server/app/api/draft/status/route.js +1 -1
- package/.next/server/app/api/edges/[id]/route.js +1 -1
- package/.next/server/app/api/edges/route.js +1 -1
- package/.next/server/app/api/endpoints/[id]/route.js +1 -1
- package/.next/server/app/api/entities/route.js +1 -1
- package/.next/server/app/api/flags/route.js +1 -1
- package/.next/server/app/api/ingest/route.js +2 -2
- package/.next/server/app/api/init/route.js +2 -2
- package/.next/server/app/api/lesson/close/route.js +1 -1
- package/.next/server/app/api/lesson/presence/route.js +1 -1
- package/.next/server/app/api/lesson/questions/route.js +1 -1
- package/.next/server/app/api/lesson/route.js +1 -1
- package/.next/server/app/api/lesson/save/route.js +1 -1
- package/.next/server/app/api/lesson/verdict/route.js +1 -1
- package/.next/server/app/api/map/describe/route.js +2 -2
- package/.next/server/app/api/map/files/route.js +1 -1
- package/.next/server/app/api/map/finish/route.js +1 -1
- package/.next/server/app/api/map/route.js +1 -1
- package/.next/server/app/api/map/start/route.js +1 -1
- package/.next/server/app/api/map/touch-active/route.js +1 -1
- package/.next/server/app/api/mention-search/route.js +1 -1
- package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
- package/.next/server/app/api/nodes/[id]/route.js +1 -1
- package/.next/server/app/api/nodes/positions/route.js +1 -1
- package/.next/server/app/api/nodes/route.js +1 -1
- package/.next/server/app/api/nodes/subtasks/route.js +1 -1
- package/.next/server/app/api/notes/[id]/route.js +1 -1
- package/.next/server/app/api/notes/route.js +1 -1
- package/.next/server/app/api/open/route.js +1 -1
- package/.next/server/app/api/plan/annotations/route.js +3 -3
- package/.next/server/app/api/plan/approve/route.js +2 -2
- package/.next/server/app/api/plan/history/route.js +1 -1
- package/.next/server/app/api/plan/markdown/route.js +1 -1
- package/.next/server/app/api/plan/presence/route.js +1 -1
- package/.next/server/app/api/plan/route.js +1 -1
- package/.next/server/app/api/plan/verdict/route.js +1 -1
- package/.next/server/app/api/preferences/route.js +1 -1
- package/.next/server/app/api/project-meta/route.js +1 -1
- package/.next/server/app/api/reset/route.js +1 -1
- package/.next/server/app/api/scope-guard/check/route.js +1 -1
- package/.next/server/app/api/share/create/route.js +1 -1
- package/.next/server/app/api/share/route.js +1 -1
- package/.next/server/app/api/share/route.js.nft.json +1 -1
- package/.next/server/app/api/stream/route.js +2 -2
- package/.next/server/app/api/tab/nav/route.js +1 -1
- package/.next/server/app/api/tab/presence/route.js +1 -1
- package/.next/server/app/api/telemetry/route.js +1 -1
- package/.next/server/app/api/telemetry/stats/route.js +1 -1
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/api/workspace/activate/route.js +1 -1
- package/.next/server/app/api/workspace/route.js +1 -1
- package/.next/server/app/apple-icon.png/route.js +1 -1
- package/.next/server/app/docs/page.js +2 -2
- package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/docs.html +1 -1
- package/.next/server/app/docs.rsc +12 -12
- package/.next/server/app/docs.segments/_full.segment.rsc +12 -12
- package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/docs.segments/_index.segment.rsc +11 -11
- package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
- package/.next/server/app/help/page.js +2 -2
- package/.next/server/app/help/page_client-reference-manifest.js +1 -1
- package/.next/server/app/help.html +1 -1
- package/.next/server/app/help.rsc +11 -11
- package/.next/server/app/help.segments/_full.segment.rsc +11 -11
- package/.next/server/app/help.segments/_head.segment.rsc +1 -1
- package/.next/server/app/help.segments/_index.segment.rsc +11 -11
- package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/help.segments/help.segment.rsc +1 -1
- package/.next/server/app/icon.svg/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +12 -12
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +12 -12
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +11 -11
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/learn/page.js +5 -3
- package/.next/server/app/learn/page.js.nft.json +1 -1
- package/.next/server/app/learn/page_client-reference-manifest.js +1 -1
- package/.next/server/app/map/page.js +2 -2
- package/.next/server/app/map/page.js.nft.json +1 -1
- package/.next/server/app/map/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/plan/page.js +2 -2
- package/.next/server/app/plan/page.js.nft.json +1 -1
- package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
- package/.next/server/app/s/[token]/page.js +2 -2
- package/.next/server/app/s/[token]/page.js.nft.json +1 -1
- package/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js +2 -2
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +8 -12
- package/.next/server/chunks/2025.js +1 -0
- package/.next/server/chunks/2773.js +1 -0
- package/.next/server/chunks/2994.js +2 -0
- package/.next/server/chunks/4046.js +3 -3
- package/.next/server/chunks/4307.js +1 -1
- package/.next/server/chunks/5719.js +1 -0
- package/.next/server/chunks/6709.js +1 -0
- package/.next/server/chunks/7720.js +154 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/ZEJwYPSMMES2UlUBBgBmw/_buildManifest.js +1 -0
- package/.next/static/chunks/1a258343-954e0e6619585d3c.js +2 -0
- package/.next/static/chunks/2059-fba06ba63ba64522.js +62 -0
- package/.next/static/chunks/4607-a668ea431c41e60e.js +1 -0
- package/.next/static/chunks/4853-6dc402b4ce452fa5.js +1 -0
- package/.next/static/chunks/{7043-254590cf9891391f.js → 4888-911c0da3c2d785d2.js} +1 -1
- package/.next/static/chunks/5957-83f611fcd5a08b45.js +1 -0
- package/.next/static/chunks/6371-9ebaddaf512402a4.js +1 -0
- package/.next/static/chunks/766-242213d211df0afd.js +1 -0
- package/.next/static/chunks/8997-78a359d0d238622e.js +1 -0
- package/.next/static/chunks/app/_global-error/page-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/board-annotations/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/board-annotations/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/board-layout/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/bug-flags/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/bug-flags/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/code-graph/position/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/code-graph/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/context/feature/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/context/file/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/context/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/db/arrange/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/db/backfill-access/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/db/position/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/db/prune-planned/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/db/reconcile-endpoints/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/db/relations/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/db/tables/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/draft/approve/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/draft/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/draft/status/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/edges/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/edges/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/endpoints/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/entities/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/flags/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/ingest/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/init/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/lesson/close/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/lesson/presence/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/lesson/questions/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/lesson/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/lesson/save/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/lesson/verdict/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/map/describe/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/map/files/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/map/finish/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/map/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/map/start/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/map/touch-active/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/mention-search/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/nodes/[id]/position/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/nodes/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/nodes/positions/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/nodes/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/nodes/subtasks/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/notes/[id]/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/notes/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/open/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/plan/annotations/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/plan/approve/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/plan/history/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/plan/markdown/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/plan/presence/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/plan/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/plan/verdict/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/preferences/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/project-meta/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/reset/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/scope-guard/check/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/share/create/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/share/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/stream/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/tab/nav/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/tab/presence/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/telemetry/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/telemetry/stats/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/version/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/workspace/activate/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/api/workspace/route-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/app/docs/page-126c0e42c71731b2.js +1 -0
- package/.next/static/chunks/app/layout-e46e1337e196e904.js +1 -0
- package/.next/static/chunks/app/learn/page-4193bf2f60c4f812.js +7 -0
- package/.next/static/chunks/app/map/page-6f0139228ec52538.js +1 -0
- package/.next/static/chunks/app/page-ec00130a7a249f14.js +1 -0
- package/.next/static/chunks/app/plan/page-5addc50440c40167.js +1 -0
- package/.next/static/chunks/app/s/[token]/page-13976553e707cad8.js +1 -0
- package/.next/static/chunks/app/settings/page-7e176d120b1effa9.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-93569b5eb93a61e9.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-93569b5eb93a61e9.js +1 -0
- package/.next/static/css/ac0b6ff5058ccc12.css +1 -0
- package/.next/trace +43 -43
- package/.next/trace-build +1 -1
- package/.next/types/routes.d.ts +2 -6
- package/.next/types/validator.ts +0 -36
- package/dist/bin/beacon.js +14 -12
- package/dist/bin/doctor.js +22 -15
- package/dist/bin/hook.js +18 -11
- package/dist/bin/mcp.js +41 -34
- package/dist/bin/plan.js +21 -14
- package/dist/bin/uninstall.js +26 -19
- package/dist/lib/assets.js +7 -0
- package/dist/lib/codex-install.js +28 -21
- package/dist/lib/global-install.js +27 -20
- package/package.json +3 -3
- package/plugin/skills/beacon-explain/SKILL.md +7 -0
- package/.next/server/app/api/feedback/[id]/route.js +0 -1
- package/.next/server/app/api/feedback/[id]/route.js.nft.json +0 -1
- package/.next/server/app/api/feedback/[id]/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/feedback/[id]/vote/route.js +0 -1
- package/.next/server/app/api/feedback/[id]/vote/route.js.nft.json +0 -1
- package/.next/server/app/api/feedback/[id]/vote/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/feedback/route.js +0 -1
- package/.next/server/app/api/feedback/route.js.nft.json +0 -1
- package/.next/server/app/api/feedback/route_client-reference-manifest.js +0 -1
- package/.next/server/app/feedback/page.js +0 -2
- package/.next/server/app/feedback/page.js.nft.json +0 -1
- package/.next/server/app/feedback/page_client-reference-manifest.js +0 -1
- package/.next/server/app/feedback.html +0 -1
- package/.next/server/app/feedback.meta +0 -15
- package/.next/server/app/feedback.rsc +0 -32
- package/.next/server/app/feedback.segments/_full.segment.rsc +0 -32
- package/.next/server/app/feedback.segments/_head.segment.rsc +0 -6
- package/.next/server/app/feedback.segments/_index.segment.rsc +0 -15
- package/.next/server/app/feedback.segments/_tree.segment.rsc +0 -5
- package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +0 -9
- package/.next/server/app/feedback.segments/feedback.segment.rsc +0 -5
- package/.next/server/chunks/2050.js +0 -1
- package/.next/server/chunks/3584.js +0 -154
- package/.next/server/chunks/6024.js +0 -2
- package/.next/server/chunks/7187.js +0 -1
- package/.next/server/chunks/8035.js +0 -1
- package/.next/static/P3uXQySdS-m6_bxuiezYe/_buildManifest.js +0 -1
- package/.next/static/chunks/1936-7fea5225b5bfcfda.js +0 -1
- package/.next/static/chunks/1a258343-6baccd9e573fdfaf.js +0 -2
- package/.next/static/chunks/2019-3be80edc82176878.js +0 -1
- package/.next/static/chunks/3845-6fe7e66d4bf82eb5.js +0 -1
- package/.next/static/chunks/4549-591415d55ca009a3.js +0 -62
- package/.next/static/chunks/6638-4e53879181b1df75.js +0 -1
- package/.next/static/chunks/7643-6c7ff4b9400f68fc.js +0 -1
- package/.next/static/chunks/app/_global-error/page-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/board-annotations/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/board-annotations/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/board-layout/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/bug-flags/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/bug-flags/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/code-graph/position/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/code-graph/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/context/feature/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/context/file/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/context/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/db/arrange/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/db/backfill-access/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/db/position/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/db/prune-planned/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/db/reconcile-endpoints/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/db/relations/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/db/tables/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/draft/approve/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/draft/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/draft/status/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/edges/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/edges/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/endpoints/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/entities/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/feedback/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/feedback/[id]/vote/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/feedback/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/flags/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/ingest/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/init/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/lesson/close/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/lesson/presence/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/lesson/questions/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/lesson/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/lesson/save/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/lesson/verdict/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/map/describe/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/map/files/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/map/finish/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/map/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/map/start/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/map/touch-active/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/mention-search/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/nodes/[id]/position/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/nodes/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/nodes/positions/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/nodes/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/nodes/subtasks/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/notes/[id]/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/notes/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/open/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/plan/annotations/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/plan/approve/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/plan/history/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/plan/markdown/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/plan/presence/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/plan/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/plan/verdict/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/preferences/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/project-meta/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/reset/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/scope-guard/check/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/share/create/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/share/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/stream/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/tab/nav/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/tab/presence/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/telemetry/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/telemetry/stats/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/version/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/workspace/activate/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/api/workspace/route-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/app/docs/page-ae19d2e91ec24771.js +0 -1
- package/.next/static/chunks/app/feedback/page-ea7f66503f2a4ca6.js +0 -1
- package/.next/static/chunks/app/layout-0c993f55d3a798f4.js +0 -1
- package/.next/static/chunks/app/learn/page-797d74e02b98fa88.js +0 -5
- package/.next/static/chunks/app/map/page-634b6d5d98e921b3.js +0 -1
- package/.next/static/chunks/app/page-84dc684d45002cfb.js +0 -1
- package/.next/static/chunks/app/plan/page-df829b2054c40611.js +0 -1
- package/.next/static/chunks/app/s/[token]/page-f97dec75856a7952.js +0 -1
- package/.next/static/chunks/app/settings/page-59d90685cd17fc1f.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-2390ea0e69e5991f.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2390ea0e69e5991f.js +0 -1
- package/.next/static/css/b3d3212da726bbfb.css +0 -1
- package/.next/types/app/api/feedback/[id]/route.ts +0 -351
- package/.next/types/app/api/feedback/[id]/vote/route.ts +0 -351
- package/.next/types/app/api/feedback/route.ts +0 -351
- package/.next/types/app/feedback/page.ts +0 -87
- /package/.next/static/{P3uXQySdS-m6_bxuiezYe → ZEJwYPSMMES2UlUBBgBmw}/_ssgManifest.js +0 -0
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
// File: /home/runner/work/beacon/beacon/app/api/feedback/[id]/vote/route.ts
|
|
2
|
-
import * as entry from '../../../../../../../app/api/feedback/[id]/vote/route.js'
|
|
3
|
-
import type { NextRequest } from 'next/server.js'
|
|
4
|
-
|
|
5
|
-
import type { InstantConfigForTypeCheckInternal } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
-
|
|
7
|
-
type TEntry = typeof import('../../../../../../../app/api/feedback/[id]/vote/route.js')
|
|
8
|
-
|
|
9
|
-
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
|
-
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
11
|
-
: T
|
|
12
|
-
|
|
13
|
-
// Check that the entry is a valid entry
|
|
14
|
-
checkFields<Diff<{
|
|
15
|
-
GET?: Function
|
|
16
|
-
HEAD?: Function
|
|
17
|
-
OPTIONS?: Function
|
|
18
|
-
POST?: Function
|
|
19
|
-
PUT?: Function
|
|
20
|
-
DELETE?: Function
|
|
21
|
-
PATCH?: Function
|
|
22
|
-
config?: {}
|
|
23
|
-
generateStaticParams?: Function
|
|
24
|
-
unstable_instant?: InstantConfigForTypeCheckInternal
|
|
25
|
-
unstable_dynamicStaleTime?: number
|
|
26
|
-
revalidate?: RevalidateRange<TEntry> | false
|
|
27
|
-
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
28
|
-
dynamicParams?: boolean
|
|
29
|
-
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
30
|
-
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
31
|
-
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
32
|
-
maxDuration?: number
|
|
33
|
-
|
|
34
|
-
}, TEntry, ''>>()
|
|
35
|
-
|
|
36
|
-
type RouteContext = { params: Promise<SegmentParams> }
|
|
37
|
-
// Check the prop type of the entry function
|
|
38
|
-
if ('GET' in entry) {
|
|
39
|
-
checkFields<
|
|
40
|
-
Diff<
|
|
41
|
-
ParamCheck<Request | NextRequest>,
|
|
42
|
-
{
|
|
43
|
-
__tag__: 'GET'
|
|
44
|
-
__param_position__: 'first'
|
|
45
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
46
|
-
},
|
|
47
|
-
'GET'
|
|
48
|
-
>
|
|
49
|
-
>()
|
|
50
|
-
checkFields<
|
|
51
|
-
Diff<
|
|
52
|
-
ParamCheck<RouteContext>,
|
|
53
|
-
{
|
|
54
|
-
__tag__: 'GET'
|
|
55
|
-
__param_position__: 'second'
|
|
56
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
57
|
-
},
|
|
58
|
-
'GET'
|
|
59
|
-
>
|
|
60
|
-
>()
|
|
61
|
-
|
|
62
|
-
checkFields<
|
|
63
|
-
Diff<
|
|
64
|
-
{
|
|
65
|
-
__tag__: 'GET',
|
|
66
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
__tag__: 'GET',
|
|
70
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
71
|
-
},
|
|
72
|
-
'GET'
|
|
73
|
-
>
|
|
74
|
-
>()
|
|
75
|
-
}
|
|
76
|
-
// Check the prop type of the entry function
|
|
77
|
-
if ('HEAD' in entry) {
|
|
78
|
-
checkFields<
|
|
79
|
-
Diff<
|
|
80
|
-
ParamCheck<Request | NextRequest>,
|
|
81
|
-
{
|
|
82
|
-
__tag__: 'HEAD'
|
|
83
|
-
__param_position__: 'first'
|
|
84
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
85
|
-
},
|
|
86
|
-
'HEAD'
|
|
87
|
-
>
|
|
88
|
-
>()
|
|
89
|
-
checkFields<
|
|
90
|
-
Diff<
|
|
91
|
-
ParamCheck<RouteContext>,
|
|
92
|
-
{
|
|
93
|
-
__tag__: 'HEAD'
|
|
94
|
-
__param_position__: 'second'
|
|
95
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
96
|
-
},
|
|
97
|
-
'HEAD'
|
|
98
|
-
>
|
|
99
|
-
>()
|
|
100
|
-
|
|
101
|
-
checkFields<
|
|
102
|
-
Diff<
|
|
103
|
-
{
|
|
104
|
-
__tag__: 'HEAD',
|
|
105
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
__tag__: 'HEAD',
|
|
109
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
110
|
-
},
|
|
111
|
-
'HEAD'
|
|
112
|
-
>
|
|
113
|
-
>()
|
|
114
|
-
}
|
|
115
|
-
// Check the prop type of the entry function
|
|
116
|
-
if ('OPTIONS' in entry) {
|
|
117
|
-
checkFields<
|
|
118
|
-
Diff<
|
|
119
|
-
ParamCheck<Request | NextRequest>,
|
|
120
|
-
{
|
|
121
|
-
__tag__: 'OPTIONS'
|
|
122
|
-
__param_position__: 'first'
|
|
123
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
124
|
-
},
|
|
125
|
-
'OPTIONS'
|
|
126
|
-
>
|
|
127
|
-
>()
|
|
128
|
-
checkFields<
|
|
129
|
-
Diff<
|
|
130
|
-
ParamCheck<RouteContext>,
|
|
131
|
-
{
|
|
132
|
-
__tag__: 'OPTIONS'
|
|
133
|
-
__param_position__: 'second'
|
|
134
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
135
|
-
},
|
|
136
|
-
'OPTIONS'
|
|
137
|
-
>
|
|
138
|
-
>()
|
|
139
|
-
|
|
140
|
-
checkFields<
|
|
141
|
-
Diff<
|
|
142
|
-
{
|
|
143
|
-
__tag__: 'OPTIONS',
|
|
144
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
__tag__: 'OPTIONS',
|
|
148
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
149
|
-
},
|
|
150
|
-
'OPTIONS'
|
|
151
|
-
>
|
|
152
|
-
>()
|
|
153
|
-
}
|
|
154
|
-
// Check the prop type of the entry function
|
|
155
|
-
if ('POST' in entry) {
|
|
156
|
-
checkFields<
|
|
157
|
-
Diff<
|
|
158
|
-
ParamCheck<Request | NextRequest>,
|
|
159
|
-
{
|
|
160
|
-
__tag__: 'POST'
|
|
161
|
-
__param_position__: 'first'
|
|
162
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
163
|
-
},
|
|
164
|
-
'POST'
|
|
165
|
-
>
|
|
166
|
-
>()
|
|
167
|
-
checkFields<
|
|
168
|
-
Diff<
|
|
169
|
-
ParamCheck<RouteContext>,
|
|
170
|
-
{
|
|
171
|
-
__tag__: 'POST'
|
|
172
|
-
__param_position__: 'second'
|
|
173
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
174
|
-
},
|
|
175
|
-
'POST'
|
|
176
|
-
>
|
|
177
|
-
>()
|
|
178
|
-
|
|
179
|
-
checkFields<
|
|
180
|
-
Diff<
|
|
181
|
-
{
|
|
182
|
-
__tag__: 'POST',
|
|
183
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
__tag__: 'POST',
|
|
187
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
188
|
-
},
|
|
189
|
-
'POST'
|
|
190
|
-
>
|
|
191
|
-
>()
|
|
192
|
-
}
|
|
193
|
-
// Check the prop type of the entry function
|
|
194
|
-
if ('PUT' in entry) {
|
|
195
|
-
checkFields<
|
|
196
|
-
Diff<
|
|
197
|
-
ParamCheck<Request | NextRequest>,
|
|
198
|
-
{
|
|
199
|
-
__tag__: 'PUT'
|
|
200
|
-
__param_position__: 'first'
|
|
201
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
202
|
-
},
|
|
203
|
-
'PUT'
|
|
204
|
-
>
|
|
205
|
-
>()
|
|
206
|
-
checkFields<
|
|
207
|
-
Diff<
|
|
208
|
-
ParamCheck<RouteContext>,
|
|
209
|
-
{
|
|
210
|
-
__tag__: 'PUT'
|
|
211
|
-
__param_position__: 'second'
|
|
212
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
213
|
-
},
|
|
214
|
-
'PUT'
|
|
215
|
-
>
|
|
216
|
-
>()
|
|
217
|
-
|
|
218
|
-
checkFields<
|
|
219
|
-
Diff<
|
|
220
|
-
{
|
|
221
|
-
__tag__: 'PUT',
|
|
222
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
__tag__: 'PUT',
|
|
226
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
227
|
-
},
|
|
228
|
-
'PUT'
|
|
229
|
-
>
|
|
230
|
-
>()
|
|
231
|
-
}
|
|
232
|
-
// Check the prop type of the entry function
|
|
233
|
-
if ('DELETE' in entry) {
|
|
234
|
-
checkFields<
|
|
235
|
-
Diff<
|
|
236
|
-
ParamCheck<Request | NextRequest>,
|
|
237
|
-
{
|
|
238
|
-
__tag__: 'DELETE'
|
|
239
|
-
__param_position__: 'first'
|
|
240
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
241
|
-
},
|
|
242
|
-
'DELETE'
|
|
243
|
-
>
|
|
244
|
-
>()
|
|
245
|
-
checkFields<
|
|
246
|
-
Diff<
|
|
247
|
-
ParamCheck<RouteContext>,
|
|
248
|
-
{
|
|
249
|
-
__tag__: 'DELETE'
|
|
250
|
-
__param_position__: 'second'
|
|
251
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
252
|
-
},
|
|
253
|
-
'DELETE'
|
|
254
|
-
>
|
|
255
|
-
>()
|
|
256
|
-
|
|
257
|
-
checkFields<
|
|
258
|
-
Diff<
|
|
259
|
-
{
|
|
260
|
-
__tag__: 'DELETE',
|
|
261
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
__tag__: 'DELETE',
|
|
265
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
266
|
-
},
|
|
267
|
-
'DELETE'
|
|
268
|
-
>
|
|
269
|
-
>()
|
|
270
|
-
}
|
|
271
|
-
// Check the prop type of the entry function
|
|
272
|
-
if ('PATCH' in entry) {
|
|
273
|
-
checkFields<
|
|
274
|
-
Diff<
|
|
275
|
-
ParamCheck<Request | NextRequest>,
|
|
276
|
-
{
|
|
277
|
-
__tag__: 'PATCH'
|
|
278
|
-
__param_position__: 'first'
|
|
279
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
280
|
-
},
|
|
281
|
-
'PATCH'
|
|
282
|
-
>
|
|
283
|
-
>()
|
|
284
|
-
checkFields<
|
|
285
|
-
Diff<
|
|
286
|
-
ParamCheck<RouteContext>,
|
|
287
|
-
{
|
|
288
|
-
__tag__: 'PATCH'
|
|
289
|
-
__param_position__: 'second'
|
|
290
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
291
|
-
},
|
|
292
|
-
'PATCH'
|
|
293
|
-
>
|
|
294
|
-
>()
|
|
295
|
-
|
|
296
|
-
checkFields<
|
|
297
|
-
Diff<
|
|
298
|
-
{
|
|
299
|
-
__tag__: 'PATCH',
|
|
300
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
__tag__: 'PATCH',
|
|
304
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
305
|
-
},
|
|
306
|
-
'PATCH'
|
|
307
|
-
>
|
|
308
|
-
>()
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
312
|
-
if ('generateStaticParams' in entry) {
|
|
313
|
-
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
314
|
-
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export interface PageProps {
|
|
318
|
-
params?: Promise<SegmentParams>
|
|
319
|
-
searchParams?: Promise<any>
|
|
320
|
-
}
|
|
321
|
-
export interface LayoutProps {
|
|
322
|
-
children?: React.ReactNode
|
|
323
|
-
|
|
324
|
-
params?: Promise<SegmentParams>
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// =============
|
|
328
|
-
// Utility types
|
|
329
|
-
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
330
|
-
|
|
331
|
-
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
332
|
-
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
333
|
-
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
334
|
-
|
|
335
|
-
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
336
|
-
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
337
|
-
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
338
|
-
|
|
339
|
-
type ParamCheck<T> = {
|
|
340
|
-
__tag__: string
|
|
341
|
-
__param_position__: string
|
|
342
|
-
__param_type__: T
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
346
|
-
|
|
347
|
-
// https://github.com/sindresorhus/type-fest
|
|
348
|
-
type Numeric = number | bigint
|
|
349
|
-
type Zero = 0 | 0n
|
|
350
|
-
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
351
|
-
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
// File: /home/runner/work/beacon/beacon/app/api/feedback/route.ts
|
|
2
|
-
import * as entry from '../../../../../app/api/feedback/route.js'
|
|
3
|
-
import type { NextRequest } from 'next/server.js'
|
|
4
|
-
|
|
5
|
-
import type { InstantConfigForTypeCheckInternal } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
-
|
|
7
|
-
type TEntry = typeof import('../../../../../app/api/feedback/route.js')
|
|
8
|
-
|
|
9
|
-
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
|
-
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
11
|
-
: T
|
|
12
|
-
|
|
13
|
-
// Check that the entry is a valid entry
|
|
14
|
-
checkFields<Diff<{
|
|
15
|
-
GET?: Function
|
|
16
|
-
HEAD?: Function
|
|
17
|
-
OPTIONS?: Function
|
|
18
|
-
POST?: Function
|
|
19
|
-
PUT?: Function
|
|
20
|
-
DELETE?: Function
|
|
21
|
-
PATCH?: Function
|
|
22
|
-
config?: {}
|
|
23
|
-
generateStaticParams?: Function
|
|
24
|
-
unstable_instant?: InstantConfigForTypeCheckInternal
|
|
25
|
-
unstable_dynamicStaleTime?: number
|
|
26
|
-
revalidate?: RevalidateRange<TEntry> | false
|
|
27
|
-
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
28
|
-
dynamicParams?: boolean
|
|
29
|
-
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
30
|
-
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
31
|
-
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
32
|
-
maxDuration?: number
|
|
33
|
-
|
|
34
|
-
}, TEntry, ''>>()
|
|
35
|
-
|
|
36
|
-
type RouteContext = { params: Promise<SegmentParams> }
|
|
37
|
-
// Check the prop type of the entry function
|
|
38
|
-
if ('GET' in entry) {
|
|
39
|
-
checkFields<
|
|
40
|
-
Diff<
|
|
41
|
-
ParamCheck<Request | NextRequest>,
|
|
42
|
-
{
|
|
43
|
-
__tag__: 'GET'
|
|
44
|
-
__param_position__: 'first'
|
|
45
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
46
|
-
},
|
|
47
|
-
'GET'
|
|
48
|
-
>
|
|
49
|
-
>()
|
|
50
|
-
checkFields<
|
|
51
|
-
Diff<
|
|
52
|
-
ParamCheck<RouteContext>,
|
|
53
|
-
{
|
|
54
|
-
__tag__: 'GET'
|
|
55
|
-
__param_position__: 'second'
|
|
56
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
57
|
-
},
|
|
58
|
-
'GET'
|
|
59
|
-
>
|
|
60
|
-
>()
|
|
61
|
-
|
|
62
|
-
checkFields<
|
|
63
|
-
Diff<
|
|
64
|
-
{
|
|
65
|
-
__tag__: 'GET',
|
|
66
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
__tag__: 'GET',
|
|
70
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
71
|
-
},
|
|
72
|
-
'GET'
|
|
73
|
-
>
|
|
74
|
-
>()
|
|
75
|
-
}
|
|
76
|
-
// Check the prop type of the entry function
|
|
77
|
-
if ('HEAD' in entry) {
|
|
78
|
-
checkFields<
|
|
79
|
-
Diff<
|
|
80
|
-
ParamCheck<Request | NextRequest>,
|
|
81
|
-
{
|
|
82
|
-
__tag__: 'HEAD'
|
|
83
|
-
__param_position__: 'first'
|
|
84
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
85
|
-
},
|
|
86
|
-
'HEAD'
|
|
87
|
-
>
|
|
88
|
-
>()
|
|
89
|
-
checkFields<
|
|
90
|
-
Diff<
|
|
91
|
-
ParamCheck<RouteContext>,
|
|
92
|
-
{
|
|
93
|
-
__tag__: 'HEAD'
|
|
94
|
-
__param_position__: 'second'
|
|
95
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
96
|
-
},
|
|
97
|
-
'HEAD'
|
|
98
|
-
>
|
|
99
|
-
>()
|
|
100
|
-
|
|
101
|
-
checkFields<
|
|
102
|
-
Diff<
|
|
103
|
-
{
|
|
104
|
-
__tag__: 'HEAD',
|
|
105
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
__tag__: 'HEAD',
|
|
109
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
110
|
-
},
|
|
111
|
-
'HEAD'
|
|
112
|
-
>
|
|
113
|
-
>()
|
|
114
|
-
}
|
|
115
|
-
// Check the prop type of the entry function
|
|
116
|
-
if ('OPTIONS' in entry) {
|
|
117
|
-
checkFields<
|
|
118
|
-
Diff<
|
|
119
|
-
ParamCheck<Request | NextRequest>,
|
|
120
|
-
{
|
|
121
|
-
__tag__: 'OPTIONS'
|
|
122
|
-
__param_position__: 'first'
|
|
123
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
124
|
-
},
|
|
125
|
-
'OPTIONS'
|
|
126
|
-
>
|
|
127
|
-
>()
|
|
128
|
-
checkFields<
|
|
129
|
-
Diff<
|
|
130
|
-
ParamCheck<RouteContext>,
|
|
131
|
-
{
|
|
132
|
-
__tag__: 'OPTIONS'
|
|
133
|
-
__param_position__: 'second'
|
|
134
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
135
|
-
},
|
|
136
|
-
'OPTIONS'
|
|
137
|
-
>
|
|
138
|
-
>()
|
|
139
|
-
|
|
140
|
-
checkFields<
|
|
141
|
-
Diff<
|
|
142
|
-
{
|
|
143
|
-
__tag__: 'OPTIONS',
|
|
144
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
__tag__: 'OPTIONS',
|
|
148
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
149
|
-
},
|
|
150
|
-
'OPTIONS'
|
|
151
|
-
>
|
|
152
|
-
>()
|
|
153
|
-
}
|
|
154
|
-
// Check the prop type of the entry function
|
|
155
|
-
if ('POST' in entry) {
|
|
156
|
-
checkFields<
|
|
157
|
-
Diff<
|
|
158
|
-
ParamCheck<Request | NextRequest>,
|
|
159
|
-
{
|
|
160
|
-
__tag__: 'POST'
|
|
161
|
-
__param_position__: 'first'
|
|
162
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
163
|
-
},
|
|
164
|
-
'POST'
|
|
165
|
-
>
|
|
166
|
-
>()
|
|
167
|
-
checkFields<
|
|
168
|
-
Diff<
|
|
169
|
-
ParamCheck<RouteContext>,
|
|
170
|
-
{
|
|
171
|
-
__tag__: 'POST'
|
|
172
|
-
__param_position__: 'second'
|
|
173
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
174
|
-
},
|
|
175
|
-
'POST'
|
|
176
|
-
>
|
|
177
|
-
>()
|
|
178
|
-
|
|
179
|
-
checkFields<
|
|
180
|
-
Diff<
|
|
181
|
-
{
|
|
182
|
-
__tag__: 'POST',
|
|
183
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
__tag__: 'POST',
|
|
187
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
188
|
-
},
|
|
189
|
-
'POST'
|
|
190
|
-
>
|
|
191
|
-
>()
|
|
192
|
-
}
|
|
193
|
-
// Check the prop type of the entry function
|
|
194
|
-
if ('PUT' in entry) {
|
|
195
|
-
checkFields<
|
|
196
|
-
Diff<
|
|
197
|
-
ParamCheck<Request | NextRequest>,
|
|
198
|
-
{
|
|
199
|
-
__tag__: 'PUT'
|
|
200
|
-
__param_position__: 'first'
|
|
201
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
202
|
-
},
|
|
203
|
-
'PUT'
|
|
204
|
-
>
|
|
205
|
-
>()
|
|
206
|
-
checkFields<
|
|
207
|
-
Diff<
|
|
208
|
-
ParamCheck<RouteContext>,
|
|
209
|
-
{
|
|
210
|
-
__tag__: 'PUT'
|
|
211
|
-
__param_position__: 'second'
|
|
212
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
213
|
-
},
|
|
214
|
-
'PUT'
|
|
215
|
-
>
|
|
216
|
-
>()
|
|
217
|
-
|
|
218
|
-
checkFields<
|
|
219
|
-
Diff<
|
|
220
|
-
{
|
|
221
|
-
__tag__: 'PUT',
|
|
222
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
__tag__: 'PUT',
|
|
226
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
227
|
-
},
|
|
228
|
-
'PUT'
|
|
229
|
-
>
|
|
230
|
-
>()
|
|
231
|
-
}
|
|
232
|
-
// Check the prop type of the entry function
|
|
233
|
-
if ('DELETE' in entry) {
|
|
234
|
-
checkFields<
|
|
235
|
-
Diff<
|
|
236
|
-
ParamCheck<Request | NextRequest>,
|
|
237
|
-
{
|
|
238
|
-
__tag__: 'DELETE'
|
|
239
|
-
__param_position__: 'first'
|
|
240
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
241
|
-
},
|
|
242
|
-
'DELETE'
|
|
243
|
-
>
|
|
244
|
-
>()
|
|
245
|
-
checkFields<
|
|
246
|
-
Diff<
|
|
247
|
-
ParamCheck<RouteContext>,
|
|
248
|
-
{
|
|
249
|
-
__tag__: 'DELETE'
|
|
250
|
-
__param_position__: 'second'
|
|
251
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
252
|
-
},
|
|
253
|
-
'DELETE'
|
|
254
|
-
>
|
|
255
|
-
>()
|
|
256
|
-
|
|
257
|
-
checkFields<
|
|
258
|
-
Diff<
|
|
259
|
-
{
|
|
260
|
-
__tag__: 'DELETE',
|
|
261
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
__tag__: 'DELETE',
|
|
265
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
266
|
-
},
|
|
267
|
-
'DELETE'
|
|
268
|
-
>
|
|
269
|
-
>()
|
|
270
|
-
}
|
|
271
|
-
// Check the prop type of the entry function
|
|
272
|
-
if ('PATCH' in entry) {
|
|
273
|
-
checkFields<
|
|
274
|
-
Diff<
|
|
275
|
-
ParamCheck<Request | NextRequest>,
|
|
276
|
-
{
|
|
277
|
-
__tag__: 'PATCH'
|
|
278
|
-
__param_position__: 'first'
|
|
279
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
280
|
-
},
|
|
281
|
-
'PATCH'
|
|
282
|
-
>
|
|
283
|
-
>()
|
|
284
|
-
checkFields<
|
|
285
|
-
Diff<
|
|
286
|
-
ParamCheck<RouteContext>,
|
|
287
|
-
{
|
|
288
|
-
__tag__: 'PATCH'
|
|
289
|
-
__param_position__: 'second'
|
|
290
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
291
|
-
},
|
|
292
|
-
'PATCH'
|
|
293
|
-
>
|
|
294
|
-
>()
|
|
295
|
-
|
|
296
|
-
checkFields<
|
|
297
|
-
Diff<
|
|
298
|
-
{
|
|
299
|
-
__tag__: 'PATCH',
|
|
300
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
__tag__: 'PATCH',
|
|
304
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
305
|
-
},
|
|
306
|
-
'PATCH'
|
|
307
|
-
>
|
|
308
|
-
>()
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
312
|
-
if ('generateStaticParams' in entry) {
|
|
313
|
-
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
314
|
-
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export interface PageProps {
|
|
318
|
-
params?: Promise<SegmentParams>
|
|
319
|
-
searchParams?: Promise<any>
|
|
320
|
-
}
|
|
321
|
-
export interface LayoutProps {
|
|
322
|
-
children?: React.ReactNode
|
|
323
|
-
|
|
324
|
-
params?: Promise<SegmentParams>
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// =============
|
|
328
|
-
// Utility types
|
|
329
|
-
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
330
|
-
|
|
331
|
-
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
332
|
-
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
333
|
-
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
334
|
-
|
|
335
|
-
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
336
|
-
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
337
|
-
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
338
|
-
|
|
339
|
-
type ParamCheck<T> = {
|
|
340
|
-
__tag__: string
|
|
341
|
-
__param_position__: string
|
|
342
|
-
__param_type__: T
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
346
|
-
|
|
347
|
-
// https://github.com/sindresorhus/type-fest
|
|
348
|
-
type Numeric = number | bigint
|
|
349
|
-
type Zero = 0 | 0n
|
|
350
|
-
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
351
|
-
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|