@baique/pi-web-sky 0.1.39 → 0.1.41
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 -1
- package/.next/app-path-routes-manifest.json +7 -12
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +51 -51
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +3 -45
- package/.next/server/app/_global-error/page.js +2 -2
- 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/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- 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 +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/agent/[id]/bash-output/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/route.js +2 -2
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/auth/all-providers/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/boards/[id]/reconcile/route.js +1 -0
- package/.next/server/app/api/boards/[id]/reconcile/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/boards/[id]/route.js +1 -1
- package/.next/server/app/api/boards/purge-orphans/route.js +1 -1
- package/.next/server/app/api/boards/reorder/route.js +1 -1
- package/.next/server/app/api/boards/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js +2 -2
- package/.next/server/app/api/default-cwd/route.js +2 -2
- package/.next/server/app/api/file-index/route.js +2 -2
- package/.next/server/app/api/files/[...path]/route.js +3 -3
- package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/git/diff/route.js +1 -1
- package/.next/server/app/api/git/status/route.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/mcp/route.js +1 -1
- package/.next/server/app/api/models/route.js +2 -2
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +2 -2
- package/.next/server/app/api/project-trust/route.js +2 -2
- package/.next/server/app/api/quota/route.js +1 -1
- package/.next/server/app/api/search/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +3 -3
- package/.next/server/app/api/sessions/[id]/context/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/todos/route.js +2 -2
- package/.next/server/app/api/sessions/route.js +2 -2
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/install/route.js +2 -2
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/task-card-questions/[id]/answer/route.js +1 -1
- package/.next/server/app/api/task-card-questions/route.js +1 -1
- package/.next/server/app/api/task-cards/[id]/route.js +1 -1
- package/.next/server/app/api/task-cards/route.js +1 -1
- package/.next/server/app/api/task-scheduler/status/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/board/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/route.js +1 -1
- package/.next/server/app/api/tasks/reorder/route.js +1 -1
- package/.next/server/app/api/tasks/route.js +1 -1
- package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
- package/.next/server/app/api/terminal/[id]/route.js +2 -2
- package/.next/server/app/api/terminal/route.js +2 -2
- package/.next/server/app/api/worktrees/route.js +2 -2
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/page.js +7 -7
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +7 -12
- package/.next/server/chunks/1094.js +2 -2
- package/.next/server/chunks/1601.js +1 -1
- package/.next/server/chunks/1860.js +1 -1
- package/.next/server/chunks/2075.js +1 -1
- package/.next/server/chunks/2169.js +1 -1
- package/.next/server/chunks/2404.js +1 -1
- package/.next/server/chunks/2524.js +1 -0
- package/.next/server/chunks/3012.js +1 -1
- package/.next/server/chunks/{5760.js → 3379.js} +1 -1
- package/.next/server/chunks/3500.js +1 -1
- package/.next/server/chunks/4226.js +5 -2
- package/.next/server/chunks/4267.js +1 -1
- package/.next/server/chunks/4563.js +1 -1
- package/.next/server/chunks/5318.js +1 -1
- package/.next/server/chunks/542.js +3 -44
- package/.next/server/chunks/5794.js +1 -1
- package/.next/server/chunks/6052.js +1 -1
- package/.next/server/chunks/6253.js +1 -1
- package/.next/server/chunks/6288.js +1 -1
- package/.next/server/chunks/6366.js +1 -1
- package/.next/server/chunks/673.js +1 -1
- package/.next/server/chunks/6916.js +2 -2
- package/.next/server/chunks/7128.js +43 -0
- package/.next/server/chunks/7265.js +2 -2
- package/.next/server/chunks/7799.js +1 -1
- package/.next/server/chunks/8106.js +1 -1
- package/.next/server/chunks/8333.js +1 -1
- package/.next/server/chunks/8604.js +1 -1
- package/.next/server/chunks/861.js +1 -0
- package/.next/server/chunks/8713.js +1 -1
- package/.next/server/chunks/8782.js +2 -2
- package/.next/server/chunks/898.js +1 -1
- package/.next/server/chunks/922.js +2 -2
- package/.next/server/chunks/9280.js +6 -6
- package/.next/server/chunks/9510.js +1 -1
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.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.json +1 -1
- package/.next/static/chunks/{103.23142a67b02246a8.js → 103.6c91a059aa01d92c.js} +2 -2
- package/.next/static/chunks/{1032.12b382a9096ab2a4.js → 1032.9e8f793d46f463f8.js} +1 -1
- package/.next/static/chunks/{1063.775c442bdbeef08b.js → 1063.470df8a037dc8409.js} +1 -1
- package/.next/static/chunks/1a258343.f4fc2c133917ded8.js +2 -0
- package/.next/static/chunks/{1ba63609.b2ae90f43319a29e.js → 1ba63609.569928c7234f832c.js} +1 -1
- package/.next/static/chunks/{2181.ba21239d3ac39f81.js → 2181.b8dda21843ef5e74.js} +1 -1
- package/.next/static/chunks/{2325.23caf22075e51aa5.js → 2325.23e538886331cf64.js} +1 -1
- package/.next/static/chunks/{2356.523277bb8c6bf72a.js → 2356.b7312589c345edec.js} +1 -1
- package/.next/static/chunks/{268.72794ee2773c2060.js → 268.a1d90aca268be18a.js} +1 -1
- package/.next/static/chunks/{2695.6f49435bae1e6f33.js → 2695.5624aa3aae540e87.js} +1 -1
- package/.next/static/chunks/{2703.495a65ed14b2f094.js → 2703.097bc88286733740.js} +1 -1
- package/.next/static/chunks/{2821.934bcf60fbdc28c6.js → 2821.d2392a93d192fe92.js} +1 -1
- package/.next/static/chunks/3308.2cd6f20e6c0f4e92.js +73 -0
- package/.next/static/chunks/{3336.a76f9485fe7cb762.js → 3336.9b1dc9ec3507d64f.js} +1 -1
- package/.next/static/chunks/3546.779d2c7646aa77cc.js +1 -0
- package/.next/static/chunks/{370.8e8f3cf8eb0e29dd.js → 370.cde2a84caa84054f.js} +1 -1
- package/.next/static/chunks/{3716.72bf4c9d7325debd.js → 3716.5bac496cea32ca8f.js} +1 -1
- package/.next/static/chunks/{3995.eca0f5bef1fc3ae5.js → 3995.cd112debcd64c610.js} +1 -1
- package/.next/static/chunks/{4004.74b9bcf5478b1663.js → 4004.a8f79ef62f32aa30.js} +2 -2
- package/.next/static/chunks/{4202.8440832386f023c7.js → 4202.96f5b1beb8b3e3f5.js} +1 -1
- package/.next/static/chunks/{4238.6f102dcbcf2ae339.js → 4238.28efbf9aa0c82d90.js} +1 -1
- package/.next/static/chunks/{4405.7a19458960a1058e.js → 4405.cda46a596a02aef7.js} +1 -1
- package/.next/static/chunks/54a60aa6.5e4421e7afde4de8.js +78 -0
- package/.next/static/chunks/{6121.eb9023b1cbc78ee2.js → 6121.5e650e714b402b6f.js} +1 -1
- package/.next/static/chunks/{6195.1153369f5f8b13a2.js → 6195.1b7f9dc127381bbc.js} +1 -1
- package/.next/static/chunks/6380.d148a8e2c701ad78.js +68 -0
- package/.next/static/chunks/6582.fb2c709abc2c5981.js +1 -0
- package/.next/static/chunks/6be7e44c.00d0163f409986f0.js +1 -0
- package/.next/static/chunks/{7331.2add3c4e125a2dba.js → 7331.4afa66d6353c8e07.js} +1 -1
- package/.next/static/chunks/752.a05a2904b96af4d0.js +1 -0
- package/.next/static/chunks/{8200.a36b9f8c983c6b9e.js → 8200.350d650649b977eb.js} +1 -1
- package/.next/static/chunks/{8885.cf60cac98bf8b70c.js → 8885.2c060cb45c85547b.js} +1 -1
- package/.next/static/chunks/{918.6a9bbe564e4a2d0f.js → 918.593eb466d35cb8ad.js} +1 -1
- package/.next/static/chunks/{9698.4d09a99b9d99f3e5.js → 9698.758755d0387e0e22.js} +2 -2
- package/.next/static/chunks/97.fb73c551e14b3612.js +2 -0
- package/.next/static/chunks/{993e5495.8797001fcfcf2889.js → 993e5495.12cdfbc3af5c79e9.js} +1 -1
- package/.next/static/chunks/{9974.9a0f79beca65e8c4.js → 9974.5ee982e074ad047e.js} +1 -1
- package/.next/static/chunks/app/_global-error/page-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/boards/[id]/reconcile/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/boards/[id]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/boards/purge-orphans/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/boards/reorder/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/boards/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/home/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/models/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/quota/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/search/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/todos/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/skills/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/task-card-questions/[id]/answer/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/task-card-questions/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/task-cards/[id]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/task-cards/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/task-scheduler/status/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/board/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/tasks/reorder/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/{layout-7761e430ed68b347.js → layout-2bec2662143a3d1b.js} +1 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/app/page-e38c6cf3174fa143.js +89 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-bb8f79f321e26750.js +1 -0
- package/.next/static/chunks/webpack-b4924d2a22ad3650.js +1 -0
- package/.next/static/css/0c7244f7214af81f.css +1 -0
- package/.next/static/css/12456255969ac8de.css +31 -0
- package/.next/trace +8 -49
- package/.next/trace-build +1 -1
- package/.next/types/app/api/boards/[id]/{reconcile-task-edges → reconcile}/route.ts +3 -3
- package/.next/types/routes.d.ts +2 -7
- package/.next/types/validator.ts +3 -48
- package/README.md +6 -9
- package/THIRD_PARTY_NOTICES.md +10 -82
- package/bin/pi-web-sky.js +3 -3
- package/lib/board-reconcile-scheduler.ts +56 -0
- package/lib/board-reconcile.test.mjs +252 -0
- package/lib/board-reconcile.ts +421 -0
- package/lib/board-store.test.mjs +26 -4
- package/lib/board-store.ts +44 -6
- package/lib/board-types.ts +7 -2
- package/lib/i18n/messages/en.ts +1 -1
- package/lib/i18n/messages/zh-CN.ts +1 -1
- package/lib/session-delete.ts +5 -0
- package/lib/sqlite-db.ts +13 -1
- package/lib/task-card-store.test.mjs +16 -1
- package/lib/task-card-store.ts +37 -1
- package/lib/task-scheduler.test.mjs +79 -0
- package/lib/task-scheduler.ts +195 -21
- package/lib/yjs-room-server.mjs +139 -0
- package/package.json +12 -9
- package/server.mjs +7 -7
- package/.next/server/app/api/boards/[id]/canvas/route.js +0 -1
- package/.next/server/app/api/boards/[id]/canvas/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/boards/[id]/edges/[eid]/route.js +0 -1
- package/.next/server/app/api/boards/[id]/edges/[eid]/route.js.nft.json +0 -1
- package/.next/server/app/api/boards/[id]/edges/[eid]/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/boards/[id]/edges/route.js +0 -1
- package/.next/server/app/api/boards/[id]/edges/route.js.nft.json +0 -1
- package/.next/server/app/api/boards/[id]/edges/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/boards/[id]/nodes/[nid]/route.js +0 -1
- package/.next/server/app/api/boards/[id]/nodes/[nid]/route.js.nft.json +0 -1
- package/.next/server/app/api/boards/[id]/nodes/[nid]/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/boards/[id]/nodes/route.js +0 -1
- package/.next/server/app/api/boards/[id]/nodes/route.js.nft.json +0 -1
- package/.next/server/app/api/boards/[id]/nodes/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/boards/[id]/reconcile-task-edges/route.js +0 -1
- package/.next/server/app/api/boards/[id]/reconcile-task-edges/route.js.nft.json +0 -1
- package/.next/server/app/api/boards/[id]/reconcile-task-edges/route_client-reference-manifest.js +0 -1
- package/.next/static/chunks/3308.857c554428b3294e.js +0 -73
- package/.next/static/chunks/333.bf0651c789b2eb33.js +0 -1
- package/.next/static/chunks/5315.dba7515ae6e139ae.js +0 -4
- package/.next/static/chunks/54a60aa6.0e43cde7298ebcb7.js +0 -78
- package/.next/static/chunks/7999.879d5a20e8641752.js +0 -259
- package/.next/static/chunks/app/_global-error/page-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/canvas/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/edges/[eid]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/edges/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/nodes/[nid]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/nodes/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/reconcile-task-edges/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/purge-orphans/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/reorder/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/boards/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/home/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/mcp/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/models/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/quota/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/search/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/todos/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/skills/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/task-card-questions/[id]/answer/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/task-card-questions/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/task-cards/[id]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/task-cards/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/task-scheduler/status/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/board/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/tasks/reorder/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/tasks/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/app/page-2c87c41e7f848f45.js +0 -89
- package/.next/static/chunks/e3e7ddb2.a35db430b3564999.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-d6f52627eddf9119.js +0 -1
- package/.next/static/chunks/webpack-4bbf04891e910713.js +0 -1
- package/.next/static/css/80c818c5781fbadc.css +0 -4
- package/.next/static/css/d3a2b5077b52c727.css +0 -1
- package/.next/types/app/api/boards/[id]/canvas/route.ts +0 -353
- package/.next/types/app/api/boards/[id]/edges/[eid]/route.ts +0 -353
- package/.next/types/app/api/boards/[id]/edges/route.ts +0 -353
- package/.next/types/app/api/boards/[id]/nodes/[nid]/route.ts +0 -353
- package/.next/types/app/api/boards/[id]/nodes/route.ts +0 -353
- package/lib/board-search.test.mjs +0 -110
- package/lib/board-search.ts +0 -63
- package/lib/file-explorer-state.test.mjs +0 -63
- package/lib/file-explorer-state.ts +0 -36
- package/lib/sync-room-server.mjs +0 -137
- /package/.next/server/app/api/boards/[id]/{canvas → reconcile}/route.js.nft.json +0 -0
- /package/.next/static/{IzmOG04jJst1VpUvr_fr5 → 8V884w_cp5HEp_rRpjnCR}/_buildManifest.js +0 -0
- /package/.next/static/{IzmOG04jJst1VpUvr_fr5 → 8V884w_cp5HEp_rRpjnCR}/_ssgManifest.js +0 -0
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
// File: /home/wa/project/pi-web-sky/app/api/boards/[id]/edges/[eid]/route.ts
|
|
2
|
-
import * as entry from '../../../../../../../../app/api/boards/[id]/edges/[eid]/route.js'
|
|
3
|
-
import type { NextRequest } from 'next/server.js'
|
|
4
|
-
|
|
5
|
-
import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
-
|
|
7
|
-
type TEntry = typeof import('../../../../../../../../app/api/boards/[id]/edges/[eid]/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
|
-
instant?: InstantConfigForTypeCheckInternal
|
|
25
|
-
prefetch?: Prefetch
|
|
26
|
-
unstable_dynamicStaleTime?: number
|
|
27
|
-
revalidate?: RevalidateRange<TEntry> | false
|
|
28
|
-
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
29
|
-
dynamicParams?: boolean
|
|
30
|
-
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
31
|
-
/** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
|
|
32
|
-
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
33
|
-
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
34
|
-
maxDuration?: number
|
|
35
|
-
|
|
36
|
-
}, TEntry, ''>>()
|
|
37
|
-
|
|
38
|
-
type RouteContext = { params: Promise<SegmentParams> }
|
|
39
|
-
// Check the prop type of the entry function
|
|
40
|
-
if ('GET' in entry) {
|
|
41
|
-
checkFields<
|
|
42
|
-
Diff<
|
|
43
|
-
ParamCheck<Request | NextRequest>,
|
|
44
|
-
{
|
|
45
|
-
__tag__: 'GET'
|
|
46
|
-
__param_position__: 'first'
|
|
47
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
48
|
-
},
|
|
49
|
-
'GET'
|
|
50
|
-
>
|
|
51
|
-
>()
|
|
52
|
-
checkFields<
|
|
53
|
-
Diff<
|
|
54
|
-
ParamCheck<RouteContext>,
|
|
55
|
-
{
|
|
56
|
-
__tag__: 'GET'
|
|
57
|
-
__param_position__: 'second'
|
|
58
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
59
|
-
},
|
|
60
|
-
'GET'
|
|
61
|
-
>
|
|
62
|
-
>()
|
|
63
|
-
|
|
64
|
-
checkFields<
|
|
65
|
-
Diff<
|
|
66
|
-
{
|
|
67
|
-
__tag__: 'GET',
|
|
68
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
__tag__: 'GET',
|
|
72
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
73
|
-
},
|
|
74
|
-
'GET'
|
|
75
|
-
>
|
|
76
|
-
>()
|
|
77
|
-
}
|
|
78
|
-
// Check the prop type of the entry function
|
|
79
|
-
if ('HEAD' in entry) {
|
|
80
|
-
checkFields<
|
|
81
|
-
Diff<
|
|
82
|
-
ParamCheck<Request | NextRequest>,
|
|
83
|
-
{
|
|
84
|
-
__tag__: 'HEAD'
|
|
85
|
-
__param_position__: 'first'
|
|
86
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
87
|
-
},
|
|
88
|
-
'HEAD'
|
|
89
|
-
>
|
|
90
|
-
>()
|
|
91
|
-
checkFields<
|
|
92
|
-
Diff<
|
|
93
|
-
ParamCheck<RouteContext>,
|
|
94
|
-
{
|
|
95
|
-
__tag__: 'HEAD'
|
|
96
|
-
__param_position__: 'second'
|
|
97
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
98
|
-
},
|
|
99
|
-
'HEAD'
|
|
100
|
-
>
|
|
101
|
-
>()
|
|
102
|
-
|
|
103
|
-
checkFields<
|
|
104
|
-
Diff<
|
|
105
|
-
{
|
|
106
|
-
__tag__: 'HEAD',
|
|
107
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
__tag__: 'HEAD',
|
|
111
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
112
|
-
},
|
|
113
|
-
'HEAD'
|
|
114
|
-
>
|
|
115
|
-
>()
|
|
116
|
-
}
|
|
117
|
-
// Check the prop type of the entry function
|
|
118
|
-
if ('OPTIONS' in entry) {
|
|
119
|
-
checkFields<
|
|
120
|
-
Diff<
|
|
121
|
-
ParamCheck<Request | NextRequest>,
|
|
122
|
-
{
|
|
123
|
-
__tag__: 'OPTIONS'
|
|
124
|
-
__param_position__: 'first'
|
|
125
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
126
|
-
},
|
|
127
|
-
'OPTIONS'
|
|
128
|
-
>
|
|
129
|
-
>()
|
|
130
|
-
checkFields<
|
|
131
|
-
Diff<
|
|
132
|
-
ParamCheck<RouteContext>,
|
|
133
|
-
{
|
|
134
|
-
__tag__: 'OPTIONS'
|
|
135
|
-
__param_position__: 'second'
|
|
136
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
137
|
-
},
|
|
138
|
-
'OPTIONS'
|
|
139
|
-
>
|
|
140
|
-
>()
|
|
141
|
-
|
|
142
|
-
checkFields<
|
|
143
|
-
Diff<
|
|
144
|
-
{
|
|
145
|
-
__tag__: 'OPTIONS',
|
|
146
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
__tag__: 'OPTIONS',
|
|
150
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
151
|
-
},
|
|
152
|
-
'OPTIONS'
|
|
153
|
-
>
|
|
154
|
-
>()
|
|
155
|
-
}
|
|
156
|
-
// Check the prop type of the entry function
|
|
157
|
-
if ('POST' in entry) {
|
|
158
|
-
checkFields<
|
|
159
|
-
Diff<
|
|
160
|
-
ParamCheck<Request | NextRequest>,
|
|
161
|
-
{
|
|
162
|
-
__tag__: 'POST'
|
|
163
|
-
__param_position__: 'first'
|
|
164
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
165
|
-
},
|
|
166
|
-
'POST'
|
|
167
|
-
>
|
|
168
|
-
>()
|
|
169
|
-
checkFields<
|
|
170
|
-
Diff<
|
|
171
|
-
ParamCheck<RouteContext>,
|
|
172
|
-
{
|
|
173
|
-
__tag__: 'POST'
|
|
174
|
-
__param_position__: 'second'
|
|
175
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
176
|
-
},
|
|
177
|
-
'POST'
|
|
178
|
-
>
|
|
179
|
-
>()
|
|
180
|
-
|
|
181
|
-
checkFields<
|
|
182
|
-
Diff<
|
|
183
|
-
{
|
|
184
|
-
__tag__: 'POST',
|
|
185
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
__tag__: 'POST',
|
|
189
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
190
|
-
},
|
|
191
|
-
'POST'
|
|
192
|
-
>
|
|
193
|
-
>()
|
|
194
|
-
}
|
|
195
|
-
// Check the prop type of the entry function
|
|
196
|
-
if ('PUT' in entry) {
|
|
197
|
-
checkFields<
|
|
198
|
-
Diff<
|
|
199
|
-
ParamCheck<Request | NextRequest>,
|
|
200
|
-
{
|
|
201
|
-
__tag__: 'PUT'
|
|
202
|
-
__param_position__: 'first'
|
|
203
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
204
|
-
},
|
|
205
|
-
'PUT'
|
|
206
|
-
>
|
|
207
|
-
>()
|
|
208
|
-
checkFields<
|
|
209
|
-
Diff<
|
|
210
|
-
ParamCheck<RouteContext>,
|
|
211
|
-
{
|
|
212
|
-
__tag__: 'PUT'
|
|
213
|
-
__param_position__: 'second'
|
|
214
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
215
|
-
},
|
|
216
|
-
'PUT'
|
|
217
|
-
>
|
|
218
|
-
>()
|
|
219
|
-
|
|
220
|
-
checkFields<
|
|
221
|
-
Diff<
|
|
222
|
-
{
|
|
223
|
-
__tag__: 'PUT',
|
|
224
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
__tag__: 'PUT',
|
|
228
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
229
|
-
},
|
|
230
|
-
'PUT'
|
|
231
|
-
>
|
|
232
|
-
>()
|
|
233
|
-
}
|
|
234
|
-
// Check the prop type of the entry function
|
|
235
|
-
if ('DELETE' in entry) {
|
|
236
|
-
checkFields<
|
|
237
|
-
Diff<
|
|
238
|
-
ParamCheck<Request | NextRequest>,
|
|
239
|
-
{
|
|
240
|
-
__tag__: 'DELETE'
|
|
241
|
-
__param_position__: 'first'
|
|
242
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
243
|
-
},
|
|
244
|
-
'DELETE'
|
|
245
|
-
>
|
|
246
|
-
>()
|
|
247
|
-
checkFields<
|
|
248
|
-
Diff<
|
|
249
|
-
ParamCheck<RouteContext>,
|
|
250
|
-
{
|
|
251
|
-
__tag__: 'DELETE'
|
|
252
|
-
__param_position__: 'second'
|
|
253
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
254
|
-
},
|
|
255
|
-
'DELETE'
|
|
256
|
-
>
|
|
257
|
-
>()
|
|
258
|
-
|
|
259
|
-
checkFields<
|
|
260
|
-
Diff<
|
|
261
|
-
{
|
|
262
|
-
__tag__: 'DELETE',
|
|
263
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
__tag__: 'DELETE',
|
|
267
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
268
|
-
},
|
|
269
|
-
'DELETE'
|
|
270
|
-
>
|
|
271
|
-
>()
|
|
272
|
-
}
|
|
273
|
-
// Check the prop type of the entry function
|
|
274
|
-
if ('PATCH' in entry) {
|
|
275
|
-
checkFields<
|
|
276
|
-
Diff<
|
|
277
|
-
ParamCheck<Request | NextRequest>,
|
|
278
|
-
{
|
|
279
|
-
__tag__: 'PATCH'
|
|
280
|
-
__param_position__: 'first'
|
|
281
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
282
|
-
},
|
|
283
|
-
'PATCH'
|
|
284
|
-
>
|
|
285
|
-
>()
|
|
286
|
-
checkFields<
|
|
287
|
-
Diff<
|
|
288
|
-
ParamCheck<RouteContext>,
|
|
289
|
-
{
|
|
290
|
-
__tag__: 'PATCH'
|
|
291
|
-
__param_position__: 'second'
|
|
292
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
293
|
-
},
|
|
294
|
-
'PATCH'
|
|
295
|
-
>
|
|
296
|
-
>()
|
|
297
|
-
|
|
298
|
-
checkFields<
|
|
299
|
-
Diff<
|
|
300
|
-
{
|
|
301
|
-
__tag__: 'PATCH',
|
|
302
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
__tag__: 'PATCH',
|
|
306
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
307
|
-
},
|
|
308
|
-
'PATCH'
|
|
309
|
-
>
|
|
310
|
-
>()
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
314
|
-
if ('generateStaticParams' in entry) {
|
|
315
|
-
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
316
|
-
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface PageProps {
|
|
320
|
-
params?: Promise<SegmentParams>
|
|
321
|
-
searchParams?: Promise<any>
|
|
322
|
-
}
|
|
323
|
-
export interface LayoutProps {
|
|
324
|
-
children?: React.ReactNode
|
|
325
|
-
|
|
326
|
-
params?: Promise<SegmentParams>
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
// =============
|
|
330
|
-
// Utility types
|
|
331
|
-
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
332
|
-
|
|
333
|
-
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
334
|
-
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
335
|
-
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
336
|
-
|
|
337
|
-
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
338
|
-
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
339
|
-
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
340
|
-
|
|
341
|
-
type ParamCheck<T> = {
|
|
342
|
-
__tag__: string
|
|
343
|
-
__param_position__: string
|
|
344
|
-
__param_type__: T
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
348
|
-
|
|
349
|
-
// https://github.com/sindresorhus/type-fest
|
|
350
|
-
type Numeric = number | bigint
|
|
351
|
-
type Zero = 0 | 0n
|
|
352
|
-
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
353
|
-
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
// File: /home/wa/project/pi-web-sky/app/api/boards/[id]/edges/route.ts
|
|
2
|
-
import * as entry from '../../../../../../../app/api/boards/[id]/edges/route.js'
|
|
3
|
-
import type { NextRequest } from 'next/server.js'
|
|
4
|
-
|
|
5
|
-
import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
-
|
|
7
|
-
type TEntry = typeof import('../../../../../../../app/api/boards/[id]/edges/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
|
-
instant?: InstantConfigForTypeCheckInternal
|
|
25
|
-
prefetch?: Prefetch
|
|
26
|
-
unstable_dynamicStaleTime?: number
|
|
27
|
-
revalidate?: RevalidateRange<TEntry> | false
|
|
28
|
-
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
29
|
-
dynamicParams?: boolean
|
|
30
|
-
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
31
|
-
/** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
|
|
32
|
-
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
33
|
-
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
34
|
-
maxDuration?: number
|
|
35
|
-
|
|
36
|
-
}, TEntry, ''>>()
|
|
37
|
-
|
|
38
|
-
type RouteContext = { params: Promise<SegmentParams> }
|
|
39
|
-
// Check the prop type of the entry function
|
|
40
|
-
if ('GET' in entry) {
|
|
41
|
-
checkFields<
|
|
42
|
-
Diff<
|
|
43
|
-
ParamCheck<Request | NextRequest>,
|
|
44
|
-
{
|
|
45
|
-
__tag__: 'GET'
|
|
46
|
-
__param_position__: 'first'
|
|
47
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
48
|
-
},
|
|
49
|
-
'GET'
|
|
50
|
-
>
|
|
51
|
-
>()
|
|
52
|
-
checkFields<
|
|
53
|
-
Diff<
|
|
54
|
-
ParamCheck<RouteContext>,
|
|
55
|
-
{
|
|
56
|
-
__tag__: 'GET'
|
|
57
|
-
__param_position__: 'second'
|
|
58
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
59
|
-
},
|
|
60
|
-
'GET'
|
|
61
|
-
>
|
|
62
|
-
>()
|
|
63
|
-
|
|
64
|
-
checkFields<
|
|
65
|
-
Diff<
|
|
66
|
-
{
|
|
67
|
-
__tag__: 'GET',
|
|
68
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
__tag__: 'GET',
|
|
72
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
73
|
-
},
|
|
74
|
-
'GET'
|
|
75
|
-
>
|
|
76
|
-
>()
|
|
77
|
-
}
|
|
78
|
-
// Check the prop type of the entry function
|
|
79
|
-
if ('HEAD' in entry) {
|
|
80
|
-
checkFields<
|
|
81
|
-
Diff<
|
|
82
|
-
ParamCheck<Request | NextRequest>,
|
|
83
|
-
{
|
|
84
|
-
__tag__: 'HEAD'
|
|
85
|
-
__param_position__: 'first'
|
|
86
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
87
|
-
},
|
|
88
|
-
'HEAD'
|
|
89
|
-
>
|
|
90
|
-
>()
|
|
91
|
-
checkFields<
|
|
92
|
-
Diff<
|
|
93
|
-
ParamCheck<RouteContext>,
|
|
94
|
-
{
|
|
95
|
-
__tag__: 'HEAD'
|
|
96
|
-
__param_position__: 'second'
|
|
97
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
98
|
-
},
|
|
99
|
-
'HEAD'
|
|
100
|
-
>
|
|
101
|
-
>()
|
|
102
|
-
|
|
103
|
-
checkFields<
|
|
104
|
-
Diff<
|
|
105
|
-
{
|
|
106
|
-
__tag__: 'HEAD',
|
|
107
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
__tag__: 'HEAD',
|
|
111
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
112
|
-
},
|
|
113
|
-
'HEAD'
|
|
114
|
-
>
|
|
115
|
-
>()
|
|
116
|
-
}
|
|
117
|
-
// Check the prop type of the entry function
|
|
118
|
-
if ('OPTIONS' in entry) {
|
|
119
|
-
checkFields<
|
|
120
|
-
Diff<
|
|
121
|
-
ParamCheck<Request | NextRequest>,
|
|
122
|
-
{
|
|
123
|
-
__tag__: 'OPTIONS'
|
|
124
|
-
__param_position__: 'first'
|
|
125
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
126
|
-
},
|
|
127
|
-
'OPTIONS'
|
|
128
|
-
>
|
|
129
|
-
>()
|
|
130
|
-
checkFields<
|
|
131
|
-
Diff<
|
|
132
|
-
ParamCheck<RouteContext>,
|
|
133
|
-
{
|
|
134
|
-
__tag__: 'OPTIONS'
|
|
135
|
-
__param_position__: 'second'
|
|
136
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
137
|
-
},
|
|
138
|
-
'OPTIONS'
|
|
139
|
-
>
|
|
140
|
-
>()
|
|
141
|
-
|
|
142
|
-
checkFields<
|
|
143
|
-
Diff<
|
|
144
|
-
{
|
|
145
|
-
__tag__: 'OPTIONS',
|
|
146
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
__tag__: 'OPTIONS',
|
|
150
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
151
|
-
},
|
|
152
|
-
'OPTIONS'
|
|
153
|
-
>
|
|
154
|
-
>()
|
|
155
|
-
}
|
|
156
|
-
// Check the prop type of the entry function
|
|
157
|
-
if ('POST' in entry) {
|
|
158
|
-
checkFields<
|
|
159
|
-
Diff<
|
|
160
|
-
ParamCheck<Request | NextRequest>,
|
|
161
|
-
{
|
|
162
|
-
__tag__: 'POST'
|
|
163
|
-
__param_position__: 'first'
|
|
164
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
165
|
-
},
|
|
166
|
-
'POST'
|
|
167
|
-
>
|
|
168
|
-
>()
|
|
169
|
-
checkFields<
|
|
170
|
-
Diff<
|
|
171
|
-
ParamCheck<RouteContext>,
|
|
172
|
-
{
|
|
173
|
-
__tag__: 'POST'
|
|
174
|
-
__param_position__: 'second'
|
|
175
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
176
|
-
},
|
|
177
|
-
'POST'
|
|
178
|
-
>
|
|
179
|
-
>()
|
|
180
|
-
|
|
181
|
-
checkFields<
|
|
182
|
-
Diff<
|
|
183
|
-
{
|
|
184
|
-
__tag__: 'POST',
|
|
185
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
__tag__: 'POST',
|
|
189
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
190
|
-
},
|
|
191
|
-
'POST'
|
|
192
|
-
>
|
|
193
|
-
>()
|
|
194
|
-
}
|
|
195
|
-
// Check the prop type of the entry function
|
|
196
|
-
if ('PUT' in entry) {
|
|
197
|
-
checkFields<
|
|
198
|
-
Diff<
|
|
199
|
-
ParamCheck<Request | NextRequest>,
|
|
200
|
-
{
|
|
201
|
-
__tag__: 'PUT'
|
|
202
|
-
__param_position__: 'first'
|
|
203
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
204
|
-
},
|
|
205
|
-
'PUT'
|
|
206
|
-
>
|
|
207
|
-
>()
|
|
208
|
-
checkFields<
|
|
209
|
-
Diff<
|
|
210
|
-
ParamCheck<RouteContext>,
|
|
211
|
-
{
|
|
212
|
-
__tag__: 'PUT'
|
|
213
|
-
__param_position__: 'second'
|
|
214
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
215
|
-
},
|
|
216
|
-
'PUT'
|
|
217
|
-
>
|
|
218
|
-
>()
|
|
219
|
-
|
|
220
|
-
checkFields<
|
|
221
|
-
Diff<
|
|
222
|
-
{
|
|
223
|
-
__tag__: 'PUT',
|
|
224
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
__tag__: 'PUT',
|
|
228
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
229
|
-
},
|
|
230
|
-
'PUT'
|
|
231
|
-
>
|
|
232
|
-
>()
|
|
233
|
-
}
|
|
234
|
-
// Check the prop type of the entry function
|
|
235
|
-
if ('DELETE' in entry) {
|
|
236
|
-
checkFields<
|
|
237
|
-
Diff<
|
|
238
|
-
ParamCheck<Request | NextRequest>,
|
|
239
|
-
{
|
|
240
|
-
__tag__: 'DELETE'
|
|
241
|
-
__param_position__: 'first'
|
|
242
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
243
|
-
},
|
|
244
|
-
'DELETE'
|
|
245
|
-
>
|
|
246
|
-
>()
|
|
247
|
-
checkFields<
|
|
248
|
-
Diff<
|
|
249
|
-
ParamCheck<RouteContext>,
|
|
250
|
-
{
|
|
251
|
-
__tag__: 'DELETE'
|
|
252
|
-
__param_position__: 'second'
|
|
253
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
254
|
-
},
|
|
255
|
-
'DELETE'
|
|
256
|
-
>
|
|
257
|
-
>()
|
|
258
|
-
|
|
259
|
-
checkFields<
|
|
260
|
-
Diff<
|
|
261
|
-
{
|
|
262
|
-
__tag__: 'DELETE',
|
|
263
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
__tag__: 'DELETE',
|
|
267
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
268
|
-
},
|
|
269
|
-
'DELETE'
|
|
270
|
-
>
|
|
271
|
-
>()
|
|
272
|
-
}
|
|
273
|
-
// Check the prop type of the entry function
|
|
274
|
-
if ('PATCH' in entry) {
|
|
275
|
-
checkFields<
|
|
276
|
-
Diff<
|
|
277
|
-
ParamCheck<Request | NextRequest>,
|
|
278
|
-
{
|
|
279
|
-
__tag__: 'PATCH'
|
|
280
|
-
__param_position__: 'first'
|
|
281
|
-
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
282
|
-
},
|
|
283
|
-
'PATCH'
|
|
284
|
-
>
|
|
285
|
-
>()
|
|
286
|
-
checkFields<
|
|
287
|
-
Diff<
|
|
288
|
-
ParamCheck<RouteContext>,
|
|
289
|
-
{
|
|
290
|
-
__tag__: 'PATCH'
|
|
291
|
-
__param_position__: 'second'
|
|
292
|
-
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
293
|
-
},
|
|
294
|
-
'PATCH'
|
|
295
|
-
>
|
|
296
|
-
>()
|
|
297
|
-
|
|
298
|
-
checkFields<
|
|
299
|
-
Diff<
|
|
300
|
-
{
|
|
301
|
-
__tag__: 'PATCH',
|
|
302
|
-
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
__tag__: 'PATCH',
|
|
306
|
-
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
307
|
-
},
|
|
308
|
-
'PATCH'
|
|
309
|
-
>
|
|
310
|
-
>()
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
314
|
-
if ('generateStaticParams' in entry) {
|
|
315
|
-
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
316
|
-
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface PageProps {
|
|
320
|
-
params?: Promise<SegmentParams>
|
|
321
|
-
searchParams?: Promise<any>
|
|
322
|
-
}
|
|
323
|
-
export interface LayoutProps {
|
|
324
|
-
children?: React.ReactNode
|
|
325
|
-
|
|
326
|
-
params?: Promise<SegmentParams>
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
// =============
|
|
330
|
-
// Utility types
|
|
331
|
-
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
332
|
-
|
|
333
|
-
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
334
|
-
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
335
|
-
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
336
|
-
|
|
337
|
-
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
338
|
-
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
339
|
-
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
340
|
-
|
|
341
|
-
type ParamCheck<T> = {
|
|
342
|
-
__tag__: string
|
|
343
|
-
__param_position__: string
|
|
344
|
-
__param_type__: T
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
348
|
-
|
|
349
|
-
// https://github.com/sindresorhus/type-fest
|
|
350
|
-
type Numeric = number | bigint
|
|
351
|
-
type Zero = 0 | 0n
|
|
352
|
-
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
353
|
-
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|