cuelo 0.10.37 → 0.10.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +9 -13
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -51
  5. package/.next/react-loadable-manifest.json +3 -14
  6. package/.next/required-server-files.js +1 -1
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/routes-manifest.json +0 -26
  9. package/.next/server/app/_global-error/page.js +2 -2
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/.next/server/app/_not-found/page.js +2 -2
  20. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/_not-found.html +1 -1
  22. package/.next/server/app/_not-found.rsc +3 -3
  23. package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  24. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  26. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  29. package/.next/server/app/api/agent/[id]/account/route.js +1 -1
  30. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  31. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  32. package/.next/server/app/api/agent/[id]/route.js +1 -1
  33. package/.next/server/app/api/agent/new/route.js +1 -1
  34. package/.next/server/app/api/agent/running/route.js +1 -1
  35. package/.next/server/app/api/attachment-settings/route.js +1 -1
  36. package/.next/server/app/api/attachments/[id]/transcription/route.js +2 -2
  37. package/.next/server/app/api/attachments/draft/route.js +1 -1
  38. package/.next/server/app/api/attachments/route.js +3 -3
  39. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  40. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  41. package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
  42. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  43. package/.next/server/app/api/auth/providers/route.js +1 -1
  44. package/.next/server/app/api/cwd/browse/route.js +1 -1
  45. package/.next/server/app/api/cwd/validate/route.js +1 -1
  46. package/.next/server/app/api/default-cwd/route.js +1 -1
  47. package/.next/server/app/api/display-settings/route.js +1 -1
  48. package/.next/server/app/api/document-text/route.js +1 -1
  49. package/.next/server/app/api/experiments/route.js +1 -1
  50. package/.next/server/app/api/file-index/route.js +1 -1
  51. package/.next/server/app/api/files/[...path]/route.js +1 -1
  52. package/.next/server/app/api/git/diff/route.js +1 -1
  53. package/.next/server/app/api/git/status/route.js +1 -1
  54. package/.next/server/app/api/github/projects/route.js +1 -1
  55. package/.next/server/app/api/gpt6/handles/route.js +1 -1
  56. package/.next/server/app/api/gpt6/reply/route.js +1 -1
  57. package/.next/server/app/api/gpt6/token/route.js +1 -1
  58. package/.next/server/app/api/gpt6/web6-session/route.js +1 -1
  59. package/.next/server/app/api/home/route.js +1 -1
  60. package/.next/server/app/api/live/call/[callId]/route.js +1 -1
  61. package/.next/server/app/api/live/events/route.js +2 -2
  62. package/.next/server/app/api/live/interpret/route.js +2 -2
  63. package/.next/server/app/api/live/offer/route.js +1 -1
  64. package/.next/server/app/api/live/voices/route.js +1 -1
  65. package/.next/server/app/api/mcp/route.js +1 -1
  66. package/.next/server/app/api/model-roles/route.js +1 -1
  67. package/.next/server/app/api/models/route.js +1 -1
  68. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  69. package/.next/server/app/api/models-config/discover/route.js +1 -1
  70. package/.next/server/app/api/models-config/route.js +3 -3
  71. package/.next/server/app/api/models-config/test/route.js +1 -1
  72. package/.next/server/app/api/plugins/route.js +1 -1
  73. package/.next/server/app/api/project-docs/route.js +1 -1
  74. package/.next/server/app/api/project-trust/route.js +1 -1
  75. package/.next/server/app/api/projects/route.js +1 -1
  76. package/.next/server/app/api/runs/[runId]/prelude/route.js +1 -1
  77. package/.next/server/app/api/runs/[runId]/route.js +1 -1
  78. package/.next/server/app/api/runs/[runId]/turns/route.js +1 -1
  79. package/.next/server/app/api/runs/route.js +1 -1
  80. package/.next/server/app/api/sessions/[id]/auto-name/route.js +1 -1
  81. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  82. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  83. package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
  84. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  85. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  86. package/.next/server/app/api/sessions/route.js +1 -1
  87. package/.next/server/app/api/sessions/search/route.js +1 -1
  88. package/.next/server/app/api/settings/route.js +1 -1
  89. package/.next/server/app/api/sidecars/[service]/[...path]/route.js +1 -1
  90. package/.next/server/app/api/skills/check/route.js +1 -1
  91. package/.next/server/app/api/skills/install/route.js +2 -2
  92. package/.next/server/app/api/skills/route.js +1 -1
  93. package/.next/server/app/api/skills/search/route.js +1 -1
  94. package/.next/server/app/api/skills/update/route.js +1 -1
  95. package/.next/server/app/api/subagents/eta/route.js +1 -1
  96. package/.next/server/app/api/theme/route.js +1 -1
  97. package/.next/server/app/api/tool-image/route.js +1 -1
  98. package/.next/server/app/api/update-maintenance/route.js +3 -3
  99. package/.next/server/app/api/updates/route.js +1 -1
  100. package/.next/server/app/api/web-access/recovery/route.js +1 -1
  101. package/.next/server/app/api/web-access/route.js +1 -1
  102. package/.next/server/app/api/web6/consults/route.js +1 -1
  103. package/.next/server/app/api/worktrees/route.js +1 -1
  104. package/.next/server/app/favicon.ico/route.js +1 -1
  105. package/.next/server/app/index.html +1 -1
  106. package/.next/server/app/index.rsc +5 -6
  107. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -4
  108. package/.next/server/app/index.segments/_full.segment.rsc +5 -6
  109. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  110. package/.next/server/app/index.segments/_index.segment.rsc +3 -3
  111. package/.next/server/app/index.segments/_tree.segment.rsc +2 -3
  112. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  113. package/.next/server/app/page.js +32 -2
  114. package/.next/server/app/page.js.nft.json +1 -1
  115. package/.next/server/app/page_client-reference-manifest.js +1 -1
  116. package/.next/server/app/recover/page.js +2 -2
  117. package/.next/server/app/recover/page_client-reference-manifest.js +1 -1
  118. package/.next/server/app/recover.html +1 -1
  119. package/.next/server/app/recover.rsc +3 -3
  120. package/.next/server/app/recover.segments/_full.segment.rsc +3 -3
  121. package/.next/server/app/recover.segments/_head.segment.rsc +1 -1
  122. package/.next/server/app/recover.segments/_index.segment.rsc +3 -3
  123. package/.next/server/app/recover.segments/_tree.segment.rsc +2 -2
  124. package/.next/server/app/recover.segments/recover/__PAGE__.segment.rsc +1 -1
  125. package/.next/server/app/recover.segments/recover.segment.rsc +1 -1
  126. package/.next/server/app-paths-manifest.json +9 -13
  127. package/.next/server/functions-config-manifest.json +0 -4
  128. package/.next/server/middleware-build-manifest.js +1 -1
  129. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  130. package/.next/server/middleware.js +4 -4
  131. package/.next/server/pages/404.html +1 -1
  132. package/.next/server/pages/500.html +1 -1
  133. package/.next/server/server-reference-manifest.json +1 -1
  134. package/.next/static/Hnj-vLLVhpk85eE5EC5YJ/_buildManifest.js +1 -0
  135. package/.next/static/chunks/2619.9aac8983f30c7c8a.js +1 -0
  136. package/.next/static/chunks/{3308.8b94b38809d1b8b6.js → 3308.34ea31e24088c85f.js} +1 -1
  137. package/.next/static/chunks/52733464.3870f99cc446f9ff.js +1 -0
  138. package/.next/static/chunks/app/_global-error/page-0975ca1ea02edd84.js +1 -0
  139. package/.next/static/chunks/app/api/agent/[id]/account/route-0975ca1ea02edd84.js +1 -0
  140. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-0975ca1ea02edd84.js +1 -0
  141. package/.next/static/chunks/app/api/agent/[id]/events/route-0975ca1ea02edd84.js +1 -0
  142. package/.next/static/chunks/app/api/agent/[id]/route-0975ca1ea02edd84.js +1 -0
  143. package/.next/static/chunks/app/api/agent/new/route-0975ca1ea02edd84.js +1 -0
  144. package/.next/static/chunks/app/api/agent/running/route-0975ca1ea02edd84.js +1 -0
  145. package/.next/static/chunks/app/api/attachment-settings/route-0975ca1ea02edd84.js +1 -0
  146. package/.next/static/chunks/app/api/attachments/[id]/transcription/route-0975ca1ea02edd84.js +1 -0
  147. package/.next/static/chunks/app/api/attachments/draft/route-0975ca1ea02edd84.js +1 -0
  148. package/.next/static/chunks/app/api/attachments/route-0975ca1ea02edd84.js +1 -0
  149. package/.next/static/chunks/app/api/auth/all-providers/route-0975ca1ea02edd84.js +1 -0
  150. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-0975ca1ea02edd84.js +1 -0
  151. package/.next/static/chunks/app/api/auth/login/[provider]/route-0975ca1ea02edd84.js +1 -0
  152. package/.next/static/chunks/app/api/auth/logout/[provider]/route-0975ca1ea02edd84.js +1 -0
  153. package/.next/static/chunks/app/api/auth/providers/route-0975ca1ea02edd84.js +1 -0
  154. package/.next/static/chunks/app/api/cwd/browse/route-0975ca1ea02edd84.js +1 -0
  155. package/.next/static/chunks/app/api/cwd/validate/route-0975ca1ea02edd84.js +1 -0
  156. package/.next/static/chunks/app/api/default-cwd/route-0975ca1ea02edd84.js +1 -0
  157. package/.next/static/chunks/app/api/display-settings/route-0975ca1ea02edd84.js +1 -0
  158. package/.next/static/chunks/app/api/document-text/route-0975ca1ea02edd84.js +1 -0
  159. package/.next/static/chunks/app/api/experiments/route-0975ca1ea02edd84.js +1 -0
  160. package/.next/static/chunks/app/api/file-index/route-0975ca1ea02edd84.js +1 -0
  161. package/.next/static/chunks/app/api/files/[...path]/route-0975ca1ea02edd84.js +1 -0
  162. package/.next/static/chunks/app/api/git/diff/route-0975ca1ea02edd84.js +1 -0
  163. package/.next/static/chunks/app/api/git/status/route-0975ca1ea02edd84.js +1 -0
  164. package/.next/static/chunks/app/api/github/projects/route-0975ca1ea02edd84.js +1 -0
  165. package/.next/static/chunks/app/api/gpt6/handles/route-0975ca1ea02edd84.js +1 -0
  166. package/.next/static/chunks/app/api/gpt6/reply/route-0975ca1ea02edd84.js +1 -0
  167. package/.next/static/chunks/app/api/gpt6/token/route-0975ca1ea02edd84.js +1 -0
  168. package/.next/static/chunks/app/api/gpt6/web6-session/route-0975ca1ea02edd84.js +1 -0
  169. package/.next/static/chunks/app/api/home/route-0975ca1ea02edd84.js +1 -0
  170. package/.next/static/chunks/app/api/live/call/[callId]/route-0975ca1ea02edd84.js +1 -0
  171. package/.next/static/chunks/app/api/live/events/route-0975ca1ea02edd84.js +1 -0
  172. package/.next/static/chunks/app/api/live/interpret/route-0975ca1ea02edd84.js +1 -0
  173. package/.next/static/chunks/app/api/live/offer/route-0975ca1ea02edd84.js +1 -0
  174. package/.next/static/chunks/app/api/live/voices/route-0975ca1ea02edd84.js +1 -0
  175. package/.next/static/chunks/app/api/mcp/route-0975ca1ea02edd84.js +1 -0
  176. package/.next/static/chunks/app/api/model-roles/route-0975ca1ea02edd84.js +1 -0
  177. package/.next/static/chunks/app/api/models/route-0975ca1ea02edd84.js +1 -0
  178. package/.next/static/chunks/app/api/models-config/catalog/route-0975ca1ea02edd84.js +1 -0
  179. package/.next/static/chunks/app/api/models-config/discover/route-0975ca1ea02edd84.js +1 -0
  180. package/.next/static/chunks/app/api/models-config/route-0975ca1ea02edd84.js +1 -0
  181. package/.next/static/chunks/app/api/models-config/test/route-0975ca1ea02edd84.js +1 -0
  182. package/.next/static/chunks/app/api/plugins/route-0975ca1ea02edd84.js +1 -0
  183. package/.next/static/chunks/app/api/project-docs/route-0975ca1ea02edd84.js +1 -0
  184. package/.next/static/chunks/app/api/project-trust/route-0975ca1ea02edd84.js +1 -0
  185. package/.next/static/chunks/app/api/projects/route-0975ca1ea02edd84.js +1 -0
  186. package/.next/static/chunks/app/api/runs/[runId]/prelude/route-0975ca1ea02edd84.js +1 -0
  187. package/.next/static/chunks/app/api/runs/[runId]/route-0975ca1ea02edd84.js +1 -0
  188. package/.next/static/chunks/app/api/runs/[runId]/turns/route-0975ca1ea02edd84.js +1 -0
  189. package/.next/static/chunks/app/api/runs/route-0975ca1ea02edd84.js +1 -0
  190. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-0975ca1ea02edd84.js +1 -0
  191. package/.next/static/chunks/app/api/sessions/[id]/context/route-0975ca1ea02edd84.js +1 -0
  192. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-0975ca1ea02edd84.js +1 -0
  193. package/.next/static/chunks/app/api/sessions/[id]/export/route-0975ca1ea02edd84.js +1 -0
  194. package/.next/static/chunks/app/api/sessions/[id]/route-0975ca1ea02edd84.js +1 -0
  195. package/.next/static/chunks/app/api/sessions/[id]/state/route-0975ca1ea02edd84.js +1 -0
  196. package/.next/static/chunks/app/api/sessions/route-0975ca1ea02edd84.js +1 -0
  197. package/.next/static/chunks/app/api/sessions/search/route-0975ca1ea02edd84.js +1 -0
  198. package/.next/static/chunks/app/api/settings/route-0975ca1ea02edd84.js +1 -0
  199. package/.next/static/chunks/app/api/sidecars/[service]/[...path]/route-0975ca1ea02edd84.js +1 -0
  200. package/.next/static/chunks/app/api/skills/check/route-0975ca1ea02edd84.js +1 -0
  201. package/.next/static/chunks/app/api/skills/install/route-0975ca1ea02edd84.js +1 -0
  202. package/.next/static/chunks/app/api/skills/route-0975ca1ea02edd84.js +1 -0
  203. package/.next/static/chunks/app/api/skills/search/route-0975ca1ea02edd84.js +1 -0
  204. package/.next/static/chunks/app/api/skills/update/route-0975ca1ea02edd84.js +1 -0
  205. package/.next/static/chunks/app/api/subagents/eta/route-0975ca1ea02edd84.js +1 -0
  206. package/.next/static/chunks/app/api/theme/route-0975ca1ea02edd84.js +1 -0
  207. package/.next/static/chunks/app/api/tool-image/route-0975ca1ea02edd84.js +1 -0
  208. package/.next/static/chunks/app/api/update-maintenance/route-0975ca1ea02edd84.js +1 -0
  209. package/.next/static/chunks/app/api/updates/route-0975ca1ea02edd84.js +1 -0
  210. package/.next/static/chunks/app/api/web-access/recovery/route-0975ca1ea02edd84.js +1 -0
  211. package/.next/static/chunks/app/api/web-access/route-0975ca1ea02edd84.js +1 -0
  212. package/.next/static/chunks/app/api/web6/consults/route-0975ca1ea02edd84.js +1 -0
  213. package/.next/static/chunks/app/api/worktrees/route-0975ca1ea02edd84.js +1 -0
  214. package/.next/static/chunks/app/{layout-22c6797cb59f5311.js → layout-b55ad6b60182cd98.js} +1 -1
  215. package/.next/static/chunks/app/manifest.webmanifest/route-0975ca1ea02edd84.js +1 -0
  216. package/.next/static/chunks/app/page-b358723ff38b0fd2.js +26 -0
  217. package/.next/static/chunks/{framework-e405bc515d75023a.js → framework-32a7466d5cae4a81.js} +1 -1
  218. package/.next/static/chunks/{main-26b32c580fb6231f.js → main-1ddb405481ce21f6.js} +3 -3
  219. package/.next/static/chunks/next/dist/client/components/builtin/app-error-0975ca1ea02edd84.js +1 -0
  220. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-0975ca1ea02edd84.js +1 -0
  221. package/.next/static/chunks/next/dist/client/components/builtin/not-found-0975ca1ea02edd84.js +1 -0
  222. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-0975ca1ea02edd84.js +1 -0
  223. package/.next/static/chunks/webpack-5e1ebce946df08c7.js +1 -0
  224. package/.next/static/css/{bd5a7fe85955c5e5.css → f9ae9aa15286f229.css} +1 -1
  225. package/.next/trace +107 -108
  226. package/.next/trace-build +1 -1
  227. package/.next/types/routes.d.ts +2 -6
  228. package/.next/types/validator.ts +0 -36
  229. package/README.md +1 -5
  230. package/Tools/CUELO_Setup/files/native-runtime-patch.js +1 -1
  231. package/Tools/OMP_Global_Config/agent/AGENTS.md +1 -1
  232. package/Tools/OMP_Global_Config/agent/extensions/cross-review.ts +4 -2
  233. package/Tools/OMP_Global_Config/agent/extensions/korean-reply-guard.ts +34 -22
  234. package/Tools/OMP_Global_Config/agent/extensions/lib/cross-review.ts +261 -42
  235. package/Tools/OMP_Global_Config/agent/extensions/lib/maker-routing.ts +5 -3
  236. package/Tools/OMP_Global_Config/agent/extensions/lib/routing-ledger.ts +31 -1
  237. package/Tools/OMP_Global_Config/agent/extensions/report-chart-guard.ts +102 -0
  238. package/Tools/OMP_Global_Config/agent/prompt-copies/AGENTS.en.md +2 -2
  239. package/Tools/OMP_Global_Config/agent/rules/harness-policy.json +36 -3
  240. package/Tools/OMP_Global_Config/agent/rules/subagent.md +38 -3
  241. package/Tools/OMP_Global_Config/patches/apply-core-patch.mjs +135 -2
  242. package/package.json +1 -5
  243. package/.next/server/app/api/office-avatars/[id]/route.js +0 -1
  244. package/.next/server/app/api/office-avatars/[id]/route.js.nft.json +0 -1
  245. package/.next/server/app/api/office-avatars/[id]/route_client-reference-manifest.js +0 -1
  246. package/.next/server/app/api/office-avatars/route.js +0 -1
  247. package/.next/server/app/api/office-avatars/route.js.nft.json +0 -1
  248. package/.next/server/app/api/office-avatars/route_client-reference-manifest.js +0 -1
  249. package/.next/server/app/office/page.js +0 -2
  250. package/.next/server/app/office/page.js.nft.json +0 -1
  251. package/.next/server/app/office/page_client-reference-manifest.js +0 -1
  252. package/.next/server/app/office-preview/page.js +0 -2
  253. package/.next/server/app/office-preview/page.js.nft.json +0 -1
  254. package/.next/server/app/office-preview/page_client-reference-manifest.js +0 -1
  255. package/.next/server/app/office-preview.html +0 -1
  256. package/.next/server/app/office-preview.meta +0 -16
  257. package/.next/server/app/office-preview.rsc +0 -21
  258. package/.next/server/app/office-preview.segments/_full.segment.rsc +0 -21
  259. package/.next/server/app/office-preview.segments/_head.segment.rsc +0 -6
  260. package/.next/server/app/office-preview.segments/_index.segment.rsc +0 -8
  261. package/.next/server/app/office-preview.segments/_tree.segment.rsc +0 -5
  262. package/.next/server/app/office-preview.segments/office-preview/__PAGE__.segment.rsc +0 -7
  263. package/.next/server/app/office-preview.segments/office-preview.segment.rsc +0 -5
  264. package/.next/server/app/office.html +0 -1
  265. package/.next/server/app/office.meta +0 -15
  266. package/.next/server/app/office.rsc +0 -24
  267. package/.next/server/app/office.segments/_full.segment.rsc +0 -24
  268. package/.next/server/app/office.segments/_head.segment.rsc +0 -6
  269. package/.next/server/app/office.segments/_index.segment.rsc +0 -8
  270. package/.next/server/app/office.segments/_tree.segment.rsc +0 -7
  271. package/.next/server/app/office.segments/office/__PAGE__.segment.rsc +0 -10
  272. package/.next/server/app/office.segments/office.segment.rsc +0 -5
  273. package/.next/server/chunks/5489.js +0 -25
  274. package/.next/server/chunks/6137.js +0 -7
  275. package/.next/server/chunks/6432.js +0 -353
  276. package/.next/server/chunks/7362.js +0 -1
  277. package/.next/static/chunks/52733464.85a1551044fef357.js +0 -1
  278. package/.next/static/chunks/6110-0762189a59a0ff14.js +0 -1
  279. package/.next/static/chunks/726.66a45469e1fb0093.js +0 -1
  280. package/.next/static/chunks/9304.1f940d490ea5c972.js +0 -1
  281. package/.next/static/chunks/9575-ec11fee3e3e9227a.js +0 -26
  282. package/.next/static/chunks/9703.36cc00cc10e10f45.js +0 -1
  283. package/.next/static/chunks/app/_global-error/page-ee0da967a5fed113.js +0 -1
  284. package/.next/static/chunks/app/api/agent/[id]/account/route-ee0da967a5fed113.js +0 -1
  285. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-ee0da967a5fed113.js +0 -1
  286. package/.next/static/chunks/app/api/agent/[id]/events/route-ee0da967a5fed113.js +0 -1
  287. package/.next/static/chunks/app/api/agent/[id]/route-ee0da967a5fed113.js +0 -1
  288. package/.next/static/chunks/app/api/agent/new/route-ee0da967a5fed113.js +0 -1
  289. package/.next/static/chunks/app/api/agent/running/route-ee0da967a5fed113.js +0 -1
  290. package/.next/static/chunks/app/api/attachment-settings/route-ee0da967a5fed113.js +0 -1
  291. package/.next/static/chunks/app/api/attachments/[id]/transcription/route-ee0da967a5fed113.js +0 -1
  292. package/.next/static/chunks/app/api/attachments/draft/route-ee0da967a5fed113.js +0 -1
  293. package/.next/static/chunks/app/api/attachments/route-ee0da967a5fed113.js +0 -1
  294. package/.next/static/chunks/app/api/auth/all-providers/route-ee0da967a5fed113.js +0 -1
  295. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-ee0da967a5fed113.js +0 -1
  296. package/.next/static/chunks/app/api/auth/login/[provider]/route-ee0da967a5fed113.js +0 -1
  297. package/.next/static/chunks/app/api/auth/logout/[provider]/route-ee0da967a5fed113.js +0 -1
  298. package/.next/static/chunks/app/api/auth/providers/route-ee0da967a5fed113.js +0 -1
  299. package/.next/static/chunks/app/api/cwd/browse/route-ee0da967a5fed113.js +0 -1
  300. package/.next/static/chunks/app/api/cwd/validate/route-ee0da967a5fed113.js +0 -1
  301. package/.next/static/chunks/app/api/default-cwd/route-ee0da967a5fed113.js +0 -1
  302. package/.next/static/chunks/app/api/display-settings/route-ee0da967a5fed113.js +0 -1
  303. package/.next/static/chunks/app/api/document-text/route-ee0da967a5fed113.js +0 -1
  304. package/.next/static/chunks/app/api/experiments/route-ee0da967a5fed113.js +0 -1
  305. package/.next/static/chunks/app/api/file-index/route-ee0da967a5fed113.js +0 -1
  306. package/.next/static/chunks/app/api/files/[...path]/route-ee0da967a5fed113.js +0 -1
  307. package/.next/static/chunks/app/api/git/diff/route-ee0da967a5fed113.js +0 -1
  308. package/.next/static/chunks/app/api/git/status/route-ee0da967a5fed113.js +0 -1
  309. package/.next/static/chunks/app/api/github/projects/route-ee0da967a5fed113.js +0 -1
  310. package/.next/static/chunks/app/api/gpt6/handles/route-ee0da967a5fed113.js +0 -1
  311. package/.next/static/chunks/app/api/gpt6/reply/route-ee0da967a5fed113.js +0 -1
  312. package/.next/static/chunks/app/api/gpt6/token/route-ee0da967a5fed113.js +0 -1
  313. package/.next/static/chunks/app/api/gpt6/web6-session/route-ee0da967a5fed113.js +0 -1
  314. package/.next/static/chunks/app/api/home/route-ee0da967a5fed113.js +0 -1
  315. package/.next/static/chunks/app/api/live/call/[callId]/route-ee0da967a5fed113.js +0 -1
  316. package/.next/static/chunks/app/api/live/events/route-ee0da967a5fed113.js +0 -1
  317. package/.next/static/chunks/app/api/live/interpret/route-ee0da967a5fed113.js +0 -1
  318. package/.next/static/chunks/app/api/live/offer/route-ee0da967a5fed113.js +0 -1
  319. package/.next/static/chunks/app/api/live/voices/route-ee0da967a5fed113.js +0 -1
  320. package/.next/static/chunks/app/api/mcp/route-ee0da967a5fed113.js +0 -1
  321. package/.next/static/chunks/app/api/model-roles/route-ee0da967a5fed113.js +0 -1
  322. package/.next/static/chunks/app/api/models/route-ee0da967a5fed113.js +0 -1
  323. package/.next/static/chunks/app/api/models-config/catalog/route-ee0da967a5fed113.js +0 -1
  324. package/.next/static/chunks/app/api/models-config/discover/route-ee0da967a5fed113.js +0 -1
  325. package/.next/static/chunks/app/api/models-config/route-ee0da967a5fed113.js +0 -1
  326. package/.next/static/chunks/app/api/models-config/test/route-ee0da967a5fed113.js +0 -1
  327. package/.next/static/chunks/app/api/office-avatars/[id]/route-ee0da967a5fed113.js +0 -1
  328. package/.next/static/chunks/app/api/office-avatars/route-ee0da967a5fed113.js +0 -1
  329. package/.next/static/chunks/app/api/plugins/route-ee0da967a5fed113.js +0 -1
  330. package/.next/static/chunks/app/api/project-docs/route-ee0da967a5fed113.js +0 -1
  331. package/.next/static/chunks/app/api/project-trust/route-ee0da967a5fed113.js +0 -1
  332. package/.next/static/chunks/app/api/projects/route-ee0da967a5fed113.js +0 -1
  333. package/.next/static/chunks/app/api/runs/[runId]/prelude/route-ee0da967a5fed113.js +0 -1
  334. package/.next/static/chunks/app/api/runs/[runId]/route-ee0da967a5fed113.js +0 -1
  335. package/.next/static/chunks/app/api/runs/[runId]/turns/route-ee0da967a5fed113.js +0 -1
  336. package/.next/static/chunks/app/api/runs/route-ee0da967a5fed113.js +0 -1
  337. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-ee0da967a5fed113.js +0 -1
  338. package/.next/static/chunks/app/api/sessions/[id]/context/route-ee0da967a5fed113.js +0 -1
  339. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-ee0da967a5fed113.js +0 -1
  340. package/.next/static/chunks/app/api/sessions/[id]/export/route-ee0da967a5fed113.js +0 -1
  341. package/.next/static/chunks/app/api/sessions/[id]/route-ee0da967a5fed113.js +0 -1
  342. package/.next/static/chunks/app/api/sessions/[id]/state/route-ee0da967a5fed113.js +0 -1
  343. package/.next/static/chunks/app/api/sessions/route-ee0da967a5fed113.js +0 -1
  344. package/.next/static/chunks/app/api/sessions/search/route-ee0da967a5fed113.js +0 -1
  345. package/.next/static/chunks/app/api/settings/route-ee0da967a5fed113.js +0 -1
  346. package/.next/static/chunks/app/api/sidecars/[service]/[...path]/route-ee0da967a5fed113.js +0 -1
  347. package/.next/static/chunks/app/api/skills/check/route-ee0da967a5fed113.js +0 -1
  348. package/.next/static/chunks/app/api/skills/install/route-ee0da967a5fed113.js +0 -1
  349. package/.next/static/chunks/app/api/skills/route-ee0da967a5fed113.js +0 -1
  350. package/.next/static/chunks/app/api/skills/search/route-ee0da967a5fed113.js +0 -1
  351. package/.next/static/chunks/app/api/skills/update/route-ee0da967a5fed113.js +0 -1
  352. package/.next/static/chunks/app/api/subagents/eta/route-ee0da967a5fed113.js +0 -1
  353. package/.next/static/chunks/app/api/theme/route-ee0da967a5fed113.js +0 -1
  354. package/.next/static/chunks/app/api/tool-image/route-ee0da967a5fed113.js +0 -1
  355. package/.next/static/chunks/app/api/update-maintenance/route-ee0da967a5fed113.js +0 -1
  356. package/.next/static/chunks/app/api/updates/route-ee0da967a5fed113.js +0 -1
  357. package/.next/static/chunks/app/api/web-access/recovery/route-ee0da967a5fed113.js +0 -1
  358. package/.next/static/chunks/app/api/web-access/route-ee0da967a5fed113.js +0 -1
  359. package/.next/static/chunks/app/api/web6/consults/route-ee0da967a5fed113.js +0 -1
  360. package/.next/static/chunks/app/api/worktrees/route-ee0da967a5fed113.js +0 -1
  361. package/.next/static/chunks/app/manifest.webmanifest/route-ee0da967a5fed113.js +0 -1
  362. package/.next/static/chunks/app/office/page-a237492b750463b7.js +0 -1
  363. package/.next/static/chunks/app/office-preview/page-d11ce602c2d80ddd.js +0 -1
  364. package/.next/static/chunks/app/page-756dbb8ce3c1cb9e.js +0 -1
  365. package/.next/static/chunks/b536a0f1.f7e390612229faa9.js +0 -342
  366. package/.next/static/chunks/bd904a5c.b74776e0b23d0607.js +0 -1
  367. package/.next/static/chunks/c9cb82ce.18c8cafa64d76bc3.js +0 -1
  368. package/.next/static/chunks/f5ef5e1c.14b6095722ff4f0b.js +0 -12
  369. package/.next/static/chunks/next/dist/client/components/builtin/app-error-ee0da967a5fed113.js +0 -1
  370. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-ee0da967a5fed113.js +0 -1
  371. package/.next/static/chunks/next/dist/client/components/builtin/not-found-ee0da967a5fed113.js +0 -1
  372. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ee0da967a5fed113.js +0 -1
  373. package/.next/static/chunks/webpack-2bdefe555a609a48.js +0 -1
  374. package/.next/static/css/8cdfcac889e08fd3.css +0 -1
  375. package/.next/static/pfQaxPnAiAJ4YIe8Fr0ft/_buildManifest.js +0 -1
  376. package/.next/types/app/api/office-avatars/[id]/route.ts +0 -351
  377. package/.next/types/app/api/office-avatars/route.ts +0 -351
  378. package/.next/types/app/office/page.ts +0 -87
  379. package/.next/types/app/office-preview/page.ts +0 -87
  380. package/public/office3d/ASSETS.md +0 -55
  381. package/public/office3d/office-kit.glb +0 -0
  382. /package/.next/static/{pfQaxPnAiAJ4YIe8Fr0ft → Hnj-vLLVhpk85eE5EC5YJ}/_ssgManifest.js +0 -0
@@ -1,351 +0,0 @@
1
- // File: D:\a\CUELO\CUELO\app\api\office-avatars\[id]\route.ts
2
- import * as entry from '../../../../../../app/api/office-avatars/[id]/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/office-avatars/[id]/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: D:\a\CUELO\CUELO\app\api\office-avatars\route.ts
2
- import * as entry from '../../../../../app/api/office-avatars/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/office-avatars/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__'